Cannnot retract objects in business central
Issue
-
I have deployed my
rule-project
and createdrestful-endpoint container
using thebusiness-central tool
. I want to execute commands to therestful end-point
using thekie-server-client
maven dependency in ajava client-app
. I want to insert an object, thenfire all rules
and then I want toretract
the object that I inserted. -
I am using
org.kie.internal.command.CommandFactory
class to create my command objects. For example, I can create aInsertObjectCommand
,FireAllRulesCommand
andBatchExecutionCommand
and send these to therule-engine
withKieServicesClient
. -
Unfortunately, I do not know how to send
RetractCommand
in order to remove my insertedfact
object from theknowledge session
. -
According to this documentation, I should be able to create a
RetractCommand
. I noticed that I have to createnew RetractCommand()
instead of usingCommandFactory
, but i cannot find theRetractCommand
class.
Environment
- Red Hat JBoss BPM Suite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.