Skip to main content

Dears,


Can you please help us with the following issue; as we face a delay when trying  to open a task has been just started using "SourceCode.Workflow.Client" API, then retrieve directly  the work list items related to started process id, unfortunately we have to sleep the code 3-5 seconds as below pseudo code describe ...

can any help? kindly note, that below code retrieve the tasks correctly but if step "3" -thread sleeping- has been removed empty task list would be retrieved.


----------------------------------------------------------------------------------------------------------------------------------


pseudo code:


1. start a process instance.


2. save started instance id in " id" integer variable.


3. sleep the thread for 5 seconds.


4. prepare WorkListCriteria to filter by processID.


5. Open work list item, using previous filter  to retrieve tasks related to started process instance in step (1).


----------------------------------------------------------------------------------------------------------------------------------

Reply