How to trigger a stuck timer from a process instance running in business-central for JBoss BPM Suite 6.4.x?
Environment
- Red Hat JBoss BPM Suite (BPMS) 6.4.x
- Business-central as execution server;
Issue
- How to trigger a stuck timer from a process instance running in business-central for JBoss BPM Suite 6.4.x?
- After looking at the tables, it looks like process instance entered the timer node and it's never exited it;
Resolution
It is possible to set a timer as triggered. This way the process instance will continue the execution right after the timer. A sample project can be found attached, however, bear in mind that the attached project is supposed to be only a sample and that we don't provide support for it.
This sample project uses Java 8, so business-central must run with java 8. It is based on BxMS 6.4.2 (Maven library version: 6.5.0.Final-redhat-7). In order to run it, please apply the following steps:
- Build the project with
mvn clean package - Copy the jar from target dir to
business-central.war/WEB-INF/lib -
Start the server and make a request in Jobs page to start a job that will run the custom command. Provide the
processInstanceIdandidentifier(deployment_id where process instance is running), for example:3.1 Go to Deployments -> Job page;
3.2 Create a New Job;Name: TriggerMyStuckTimer Type: example.executor_update_timer.commands.SetTimerAsTriggeredCommand3.3 In Advanced tab add parameters:
identifier - example:Test:1.0 (deployment_id where your process is running) processInstanceId - 1
You should see the command being executed and the process instance continue its execution after it.
NOTE: The attached project is supposed to be only a sample and that means we do NOT provide support for it. We recommend to check the code to build your own project.
Attachments
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
