Set Status for Workflow

  • 5 February 2007
  • 3 replies
  • 0 views

Badge +1
Hi all,
Our team are working with K2.
We have 2 solutions to set status for K2:
1/ When We make a decision from asp.net application, we pass the status into workflow(it will be the line rule also) and return that status to asp.net application.
2/ On the top of each activity, we use a server action to set status, when we make a decision from asp.net application, we must access to K2Log database to get new status and return that status to asp.net application.

which should we choose?
Thanks,
Dau Quang Thanh
FPT Software JSC - Viet Nam

3 replies

Badge +13
1) How are you going to return status back to ASP .NET in real time?

Workflow in general is an asynchronous process, if you are waiting for some kind of real time response back you might want to use a web service to query the status.
Badge +8
Are you trying to do a 'page flow' type application, where a user completes one ASP.net page, a workflow is started and the user is then directed to another ASP.net page according to the rules or soem processing performed in the workflow? In this case, have a look at the following post which covers Synchronous processing n K2.net:

http://forum.k2workflow.com/viewtopic.php?t=808

You can also have server events between these client events, but I'd be wary of long-running server events since you do not want to keep your user waiting for too long for a response.
Badge +1
"Peter Yao" wrote:
1) How are you going to return status back to ASP .NET in real time?

Workflow in general is an asynchronous process, if you are waiting for some kind of real time response back you might want to use a web service to query the status.

Hi Peter Yao,
In the first case, when user click "Approve" or "Reject" button on asp.net page, following workflow, we know the next status of flow (e.g. "Pending For Technical Approval"), so we use this status to insert into application database.
In this case, K2 only use for direction, sending mail to notify and doing escalation.

Thanks

Reply