As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test"> <process id="wfsleep" name="WfSleep" isExecutable="true"> <startEvent id="startevent1" name="Start"></startEvent> <endEvent id="endevent1" name="End"></endEvent> <scriptTask id="scripttask1" name="1" scriptFormat="groovy"> <script><![CDATA[System.out.println("script task 1");]]></script> </scriptTask> <scriptTask id="scripttask2" name="Script Task" scriptFormat="groovy"> <script><![CDATA[System.out.println("script task 2");]]></script> </scriptTask> <intermediateCatchEvent id="timerintermediatecatchevent1" name="TimerCatchEvent"> <timerEventDefinition> <timeDuration>PT5S</timeDuration> </timerEventDefinition> </intermediateCatchEvent> … </process> … </definitions>
<br>ProcessEngine eng = ProcessEngineConfiguration<br> .createStandaloneInMemProcessEngineConfiguration()<br> .buildProcessEngine();<br>
<br>setJobExecutorActivate(true)<br>