Cannnot retract objects in business central

Solution Verified - Updated -

Issue

  • I have deployed my rule-project and created restful-endpoint container using the business-central tool. I want to execute commands to the restful end-point using the kie-server-client maven dependency in a java client-app. I want to insert an object, then fire all rules and then I want to retract the object that I inserted.

  • I am using org.kie.internal.command.CommandFactory class to create my command objects. For example, I can create a InsertObjectCommand, FireAllRulesCommand and BatchExecutionCommand and send these to the rule-engine with KieServicesClient.

  • Unfortunately, I do not know how to send RetractCommand in order to remove my inserted fact object from the knowledge session.

  • According to this documentation, I should be able to create a RetractCommand. I noticed that I have to create new RetractCommand() instead of using CommandFactory, but i cannot find the RetractCommand class.

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.

Current Customers and Partners

Log in for full access

Log In