06-28-2016 11:13 PM
<process id="TimerAutoExec" isExecutable="true">
<documentation>Timer Auto Exec</documentation>
<startEvent id="start">
<timerEventDefinition>
<timeCycle>R3/PT1M</timeCycle>
</timerEventDefinition>
</startEvent>
<sequenceFlow id="flow_start" sourceRef="start" targetRef="retrieve_data"></sequenceFlow>
<serviceTask id="retrieve_data" name="Retrieve New Data" activiti:class="gov.nasa.jpl.analytics.AutoRetrieveData"></serviceTask>
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
System.out.println("AsyncExecutor isActive: "
+ processEngine.getProcessEngineConfiguration().getAsyncExecutor().isActive());
String process_name = "TimerAutoExec";
String proc_id = processEngine.getRuntimeService().startProcessInstanceByKey(process_name).getId();
System.out.println("Spawning Workflow " + proc_id);
while(true)
{
TimeUnit.SECONDS.sleep(60);
System.out.println("Minute has passed, go check tmp!");
}
06-29-2016 05:23 AM
06-29-2016 07:58 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.