Chapter 10. Deploying projects

Once you have created a project with your Process definition and relevant resources, you need to build it and deploy it to the Process engine. Once deployed, you can create Process instances based on the deployed resources.
To deploy your project from Business Central, do the following:
  1. Open the Project Editor on your project (in Project Explorer navigate to your project and in the top menu, click ToolsProject Editor).
  2. You can define the Kie Base and Kie Session properties. If not, the default kbase and ksession will be used.
  3. On the top menu, click the Build & Deploy button.

Note

From the 6.1 version of Red Hat JBoss BPM Suite, deployment units are stored inside the database instead of the GIT repository. To override this behavior, set the org.kie.git.deployments.enabled property to true.

10.1. Process instances

Once you have modeled and deployed a Process definition along with all the resources it requires, you can create its runtime instance, which will run on the Process engine.
From the Business Central you can further manage the instance during runtime, monitor its execution, and work with the Tasks the instance produces if having the proper roles assigned.

10.1.1. Instantiating a Process

To instantiate a deployed Process definition, do the following:
  1. Display the Process Definitions view: on the top menu, click Process ManagementProcess Definitions.
  2. Look up the Process Definition and in the respective row, click the Instantiate icon .
  3. In the displayed dialog view, enter the properties and input paramaters for the Process instance.

10.1.2. Monitoring a Process instance

You can monitor the progress of a running Process instance from the Business Console:
  1. On the top menu of the Business Central, go to Process ManagementProcess Instances.
  2. In the list on the Process Instances tab, locate the required running Process instance and click the Details button in the instance row.

10.1.3. Aborting a Process instance

You can abort a running Process instance either using the provided API or from the Management Console.

Aborting a Process instance using API

To abort a Process instance using the Kie Session API, use the void abortProcessInstance(long processInstanceId) call on the parent Kie Session.

Aborting a Process instance from the Management Console

To abort a Process instance from the Management Console, do the following:
  1. On the top menu of the Management Console, go to Process ManagementProcess Instances.
  2. In the list on the Process Instances tab, locate the required Process instance and click the Abort button in the instance row.