Help needed to execute intermediate timer cache event, which is getting executed without waiting from java API

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member

Help needed to execute intermediate timer cache event, which is getting executed without waiting from java API

Jump to solution

Working on the requirement where depending upon the document status from the user task i am triggering mail on document sttaus pending or ending the flow when status is completed.After triggering the mail timer is triggered where it has to wait for certain time and then once again document status user task check will be performed.So the loop will continue till the status get completed.

I have implemented in spring boot where the timer is not waiting upon execution. Upon reading the documentation found that by using managementservice.execute is forces the timer to execute. Where as the timer which is actually a background process which is triggered and run in the background.Is there any way to execute the timer as background process which waits for a time interval.

As of now i have a work around where i am manually making it to sleep by calculating time interval from task start time and job due time.

Please find the source code along with bpm xml file as attchments.

1 Solution

Accepted Solutions
Active Member

Re: Help needed to execute intermediate timer cache event, which is getting executed without waiting from java API

Jump to solution

Found solution, redesigning the flow where we have to use activiti components for our java implementation.

Attaching the bpm flow and from rest layer only need to instantiate the process instance to execute the flow, activiti API will take care of everything by itself.

View solution in original post

1 Reply
Active Member

Re: Help needed to execute intermediate timer cache event, which is getting executed without waiting from java API

Jump to solution

Found solution, redesigning the flow where we have to use activiti components for our java implementation.

Attaching the bpm flow and from rest layer only need to instantiate the process instance to execute the flow, activiti API will take care of everything by itself.

View solution in original post