Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » Skelta BPM.NET 2006 » Skelta BPM.NET 2006 » Application Development » API to determine if a workflow is running


API to determine if a workflow is runningExpand / Collapse
Author
Message
Posted Monday, November 03, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Sunday, August 22, 2010
Posts: 11, Visits: 43
We have a special workflow that runs continuously and creates notifications.
I'd like to check if this workflow is running before allowing the user to launch another instance. Is this available through the API? I'd rather not have to look in the SWExecute table.

thanks
Post #1000
Posted Wednesday, November 05, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, March 17, 2011
Posts: 66, Visits: 73
Hi,

Client.Execute method returns the ExecutionID of the triggered instance of the workflow.

Method GetSingleInstanceDetails of Workflow.Net.Execution returns a dataset with the details of the instance of the workflow. You can check the property InternalStatus to get the current status of the instance.

Alternatively, you can query the SWExecute table and check the internalstatus of the instance. If it is 'FN' then the instance has finished executing.

Regards,

RS

Post #1003
Posted Wednesday, November 05, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Sunday, August 22, 2010
Posts: 11, Visits: 43
The problem is that I don't know the instance id. I'm just trying to determine if there is any instance of that workflow running.

Is there not an API to get a list of all running workflows?
Post #1004
Posted Thursday, November 06, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, March 17, 2011
Posts: 66, Visits: 73
Workflow.net.Execution.GetRunningInstances will return the list of running instances. I think this is available from 2007 version onwards.
Post #1007
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 10:04am

 
Execution: 0.109.10 queries.Compression Enabled.

Copyright © 2002 - 2009 Skelta Software. All rights reserved. Tel: 1 (678) 306 4110 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company