Cannnot retract objects in business central
Issue
-
I have deployed my
rule-projectand createdrestful-endpoint containerusing thebusiness-central tool. I want to execute commands to therestful end-pointusing thekie-server-clientmaven dependency in ajava client-app. I want to insert an object, thenfire all rulesand then I want toretractthe object that I inserted. -
I am using
org.kie.internal.command.CommandFactoryclass to create my command objects. For example, I can create aInsertObjectCommand,FireAllRulesCommandandBatchExecutionCommandand send these to therule-enginewithKieServicesClient. -
Unfortunately, I do not know how to send
RetractCommandin order to remove my insertedfactobject 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 theRetractCommandclass.
Environment
- Red Hat JBoss BPM Suite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
