cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Delays in Process flow

venkataprasath
Champ in-the-making
Champ in-the-making
Hi,

I have a requirement to include a delay say 2 mins in between the two Service Tasks in Activiti BPMN flow. I tried to use Intermediate Timer Event with the delay configured as below, but it didn't work.

<blockcode>
   <intermediateCatchEvent id="timerintermediatecatchevent1" name="TimerCatchEvent">
      <timerEventDefinition>
        <timeDuration>PT2M</timeDuration>
      </timerEventDefinition>
    </intermediateCatchEvent>
</blockcode>

Please help

Regards,
Venkat
3 REPLIES 3

venkataprasath
Champ in-the-making
Champ in-the-making
I am using stand alone java client to test the process by using startProcessInstanceByKey method.

trademak
Star Contributor
Star Contributor
Hi Venkat,

What do you mean with it didn't work? Do you see the second service task getting executed immediately?
If so, please create a unit test showing the issue and create a JIRA issue.

Best regards,

Hi,

I found it is working. There was a class file used by one of the service task hasn't been part of jar file deployed. Thats my bad.
Apologies.

Thanks
Venkat