Show Table of Contents
8.2. Commands Supported
Currently, the following commands are supported:
- BatchExecutionCommand
- InsertObjectCommand
- RetractCommand
- ModifyCommand
- GetObjectCommand
- InsertElementsCommand
- FireAllRulesCommand
- StartProcessCommand
- SignalEventCommand
- CompleteWorkItemCommand
- AbortWorkItemCommand
- QueryCommand
- SetGlobalCommand
- GetGlobalCommand
- GetObjectsCommand
Note
In the next snippets code we are going to use a POJO org.drools.compiler.test.Person that has two fields
- name: String
- age: Integer
Note
In the next examples, to marshall the commands we have used the next snippet codes:
- XStream
String xml = BatchExecutionHelper.newXStreamMarshaller().toXML(command);
- JSON
String xml = BatchExecutionHelper.newJSonMarshaller().toXML(command);
- JAXB
Marshaller marshaller = jaxbContext.createMarshaller(); StringWriter xml = new StringWriter(); marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); marshaller.marshal(command, xml);

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.