org.drools.core.command.runtime package in your jBPM instance.
In the KIE Server REST API, you use the global org.drools.core.command.runtime commands or the rule-specific org.drools.core.command.runtime.rule commands as the request body for POST requests to http://SERVER:PORT/kie-server/services/rest/server/containers/instances/{containerId}. For more information about using the KIE Server REST API, see KIE Server REST API for KIE containers and business assets.
In the KIE Server Java client API, you can embed these commands in your Java application along with the relevant Java client. For example, for rule-related commands, you use the RuleServicesClient Java client with the embedded commands. For more information about using the KIE Server Java client API, see KIE Server Java client API for KIE containers and business assets.
Sample runtime commands in jBPM
The following are sample runtime commands that you can use with the KIE Server REST API or Java client API for asset-related operations in KIE Server:BatchExecutionCommandInsertObjectCommandRetractCommandModifyCommandGetObjectCommandGetObjectsCommandInsertElementsCommandFireAllRulesCommandStartProcessCommandSignalEventCommandCompleteWorkItemCommandAbortWorkItemCommandQueryCommandSetGlobalCommandGetGlobalCommand
org.drools.core.command.runtime package in your jBPM instance.
Each command in this section includes a REST request body example (JSON) for the KIE Server REST API and an embedded Java command example for the KIE Server Java client API. The Java examples use an object org.drools.compiler.test.Person with the fields name (String) and age (Integer).
BatchExecutionCommand
Contains multiple commands to be executed together.
Command attributes
KIE session IDs are in the
kmodule.xml file of your jBPM project. To view or add a KIE session ID in Business Central to use with the lookup command attribute, navigate to the relevant project in Business Central and go to project Settings → KIE bases → KIE sessions. If no KIE bases exist, click Add KIE base → KIE sessions to define the new KIE base and KIE sessions.Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command: Use FactHandleFromString
Example Java command: Use FactHandle from inserted object
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
ksession.getWorkItemManager().abortWorkItem(workItemId).
Command attributes
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)
Example JSON request body
Example Java command
Example server response (JSON)