Skip to main content

Hey Guys,


When i start a new instance of the process using startprocessintance, i want to get the serial of first task that gets created in very next line.


So my code in application would know the serial number right after a new process instance is created


I know there are different way of doing it like pass the serial number from k2 to database once the task is started etc. but i was curious is there any method which could pass me the serial number of first start right after starting the process instance.


Thanks in advance.


 

You should be able to get the ProcessInstanceID right away, but for serial # you would have to code it to store it somewhere from that "next" activity.


Your main application would have to loop and wait till it's available since workflow will be running asynchronously after StartProcess.


If you have multiple destination or parallel routes then you could have multiple serial #s.


Reply