AnsweredAssumed Answered

Please help in my use case. Waiting at receive task for a process variable to become true

Question asked by monika_b on Dec 3, 2013
Latest reply on Dec 5, 2013 by jbarrez
Hi all,

I am using Receive Task with Timer Boundary event that should get cancelled once conditional expression evaluates true.

Need a waiting state in activiti flow that has a java service task(or receive task with java class call in listener possible?) attached that fetches a variable in ACT tables. If variable is found 'false' should proceed with the flow cancelling the wait. Else wait there itself.
Note: This activiti variable will be updated true/false externally anytime/anyday. Based on which our activiti flow should be proceeded after wait.

Q: Do I need a timer event that calls this java service call to consistently check if the act variable value gets changed??
Q: Please guide me how to implement this use case.

I have attached my bpmn20.xml file that is not working currently.
In this, I am having below elements:
I have a sequence flow that goes to receive task which has a listener attached that calls a history table ACT_HI_VARINST to check if variable is true/false. This receive task has a Timer Boundary Event with timecycle(R3/PT2M).   If variable is found 'false' proceed to another java service task and ends of workflow.

Thanks in advance for any help. Please help me with my use case. I understand I can have 'call activiti'. Please in that case, please elaborate how to use it in my case.