How to wait until OnRunFinished is executed
Joined: 29 Dec 2015
Topic: How to wait until OnRunFinished is executed
Posted: 27 Jan 2017 at 12:11pm
I do change taskInstance status onside a loop
while not dataset.eof do
taskInstance.Status := pStatus;
But I have some code on WorkflowStudio.OnRunFinished.
My loop change status faster than WorkflowStudio.OnRunFinished is executed;
How to force my loop to wait until the OnRunFinished event ends?
I tried add boolean variable on OnRunFinished and inside my loop I added empty while loop
while not task_completed do; but the loop blocks my whole application and OnRunFinished event never execute!
Wagner R. Landgraf
Joined: 18 May 2010
|Post Options Quote Reply Posted: 27 Jan 2017 at 12:52pm|
You can't do that currently because the instances are signaled to run and they only execute on main thread (after your loop finished and execution goes idle).
|Forum Jump||Forum Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum