Skip to main content
jBPM supports server commands that you can send to KIE Server for server-related or container-related operations, such as retrieving server information or creating or deleting a container. The full list of supported KIE Server configuration commands is located in the org.kie.server.api.commands package in your jBPM instance. In the KIE Server REST API, you use the org.kie.server.api.commands commands as the request body for POST requests to http://SERVER:PORT/kie-server/services/rest/server/config. 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 use the corresponding method in the parent KieServicesClient Java client as an embedded API request in your Java application. All KIE Server commands are executed by methods provided in the Java client API, so you do not need to embed the actual KIE Server commands in your Java application. For more information about using the KIE Server Java client API, see KIE Server Java client API for KIE containers and business assets.

Sample KIE Server and KIE container commands

The following are sample KIE Server commands that you can use with the KIE Server REST API or Java client API for server-related or container-related operations in KIE Server:
  • GetServerInfoCommand
  • GetServerStateCommand
  • CreateContainerCommand
  • GetContainerInfoCommand
  • ListContainersCommand
  • CallContainerCommand
  • DisposeContainerCommand
  • GetScannerInfoCommand
  • UpdateScannerCommand
  • UpdateReleaseIdCommand
For the full list of supported KIE Server configuration and management commands, see the org.kie.server.api.commands package in your jBPM instance. You can run KIE Server commands individually or together as a batch REST API request or batch Java API request:
Batch REST API request to create, call, and dispose a KIE container (JSON)
Batch Java API request to retrieve, dispose, and re-create a KIE container
Each command in this section includes a REST request body example (JSON) for the KIE Server REST API and an embedded method example from the KieServicesClient Java client for the KIE Server Java client API. GetServerInfoCommand Returns information about this KIE Server instance.
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
GetServerStateCommand Returns information about the current state and configurations of this KIE Server instance.
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
CreateContainerCommand Creates a KIE container in the KIE Server. Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
GetContainerInfoCommand Returns information about a specified KIE container in KIE Server. Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
ListContainersCommand Returns a list of KIE containers that have been created in this KIE Server instance. Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
CallContainerCommand Calls a KIE container and executes one or more runtime commands. For information about jBPM runtime commands, see Runtime commands in jBPM. Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
DisposeContainerCommand Disposes a specified KIE container in the KIE Server. Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
GetScannerInfoCommand Returns information about the KIE scanner used for automatic updates in a specified KIE container, if applicable. Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
UpdateScannerCommand Starts or stops a KIE scanner that controls polling for updated KIE container deployments.
Avoid using a KIE scanner with business processes. Using a KIE scanner with processes can lead to unforeseen updates that can then cause errors in long-running processes when changes are not compatible with running process instances.
Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)
UpdateReleaseIdCommand Updates the release ID data (group ID, artifact ID, version) for a specified KIE container. Command attributes
Example REST request body (JSON)
Example Java client method
Example server response (JSON)