What does the Sync parameter do on WorklistItem.GotoActivity(string Activity, bool Sync)?
In other words, what's the difference between calling
MyK2WorklistItem.GotoActivity("MyK2Activity")
and
MyK2WorklistItem.GotoActivity("MyK2Activity",true)?
What does the Sync parameter do on WorklistItem.GotoActivity(string Activity, bool Sync)?
In other words, what's the difference between calling
MyK2WorklistItem.GotoActivity("MyK2Activity")
and
MyK2WorklistItem.GotoActivity("MyK2Activity",true)?
I think I've found it. Assuming it's the same in blackpearl, the book Professional K2 blackpearl states on p. 101 that passing a Sync parameter of true to StartProcessInstance ensures that the method does not return until the instance has reached a stable state (client event, end of process, or error). I would assume the Sync parameter has a similar meaning on other methods. This is great for testing (their example was an automated test); most production code would execute asynchronously, though.
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.