Search code examples
activitibpmn

How do I implement timer with activiti bpmn


I have a requirement where the a task should wait for a asynchronous request to finish. The process should be verified at regular interval.The activiti workflow should send a request at every 10 min to check if the previous request is being approved.

How do I configure this in activiti BPMN.


Solution

  • A simple possibility would be to use a Service Task (http://activiti.org/userguide/#bpmnJavaServiceTask) to trigger the request and a subsequent Receive Task (http://activiti.org/userguide/#bpmnReceiveTask) waiting to be triggered when the asynchronous response arrives.