GotoActivity overloads

  • 1 December 2009
  • 1 reply
  • 2 views

Badge +5

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)?


1 reply

Badge +5

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.

Reply