| | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, March 05, 2008 Posts: 80, Visits: 277 |
| Hi there,
I have a user or group of users that at any time can see which workflows are currently executing and can submit items if they wish.
I would like to do this without including them in design time, in every activity I have.
So I was wondering If it is possible in runtime (trough API) to get which workflows are currently running and afterwards, based on their execution id obtain their current activities.
Thanks so much for any input you can provide.
Best regards,
Rui
EDIT: Trough API |
| | | | Supreme Being
       
Group: Forum Members Last Login: Today @ 12:17 AM Posts: 136, Visits: 600 |
| | Hi, You can achieve the same using BAM.
Regards, Bineesh E Raghavan |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, June 04, 2008 Posts: 131, Visits: 423 |
| | | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, March 05, 2008 Posts: 80, Visits: 277 |
| I'm sorry, I meant trough API.
I edited the initial post.
Thanks for your help.
Best regards,
Rui |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, June 04, 2008 Posts: 131, Visits: 423 |
| Hi, You can make use of the WorkItemCollection object to get all active workitems.
Ref : Skelta.HWS and Workflow.NET.NET2
/// Creates an instance of WorkItemCollection. /// Params Application object, Queue unique id (empty if not required),Appened to base query, can be used to set query order by (ASC or DESC).
Skelta.HWS.WorkItemCollection workItemCollection = new Skelta.HWS.WorkItemCollection(new Skelta.Core.ApplicationObject("DemoApp"), Guid.Empty, ""); foreach (Skelta.HWS.WorkItem workItem in workItemCollection.Items) { Console.WriteLine( workItem.ActivityDisplayName +", Status:" + workItem.Status); }
Take a look at this Post too: http://www.skelta.com/forum/Topic412-46-1.aspx
Regards,
Moderator |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, March 05, 2008 Posts: 80, Visits: 277 |
| Hi there,
Thanks for the reply.
What if I have the execution Id and only want the related work items?
Is it possible to filter it immediately instead of going trough all the work items?
Thanks for your help.
Best regards,
Rui |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, June 04, 2008 Posts: 131, Visits: 423 |
| Hi, Add this filter as last parameter in collection:
Skelta.HWS.WorkItemCollection workItemCollection = new Skelta.HWS.WorkItemCollection(new Skelta.Core.ApplicationObject("DemoApp"), Guid.Empty, " AND SWE.Id=1");
regards,
Moderator |
| | | | Forum Newbie
       
Group: Forum Members Last Login: Wednesday, March 26, 2008 Posts: 2, Visits: 17 |
| What other filters are available in the WorkItemCollection constructor?
I was interested in obtaining the workitems of the child workflows given the execution id of the parent workfllow.
Is it possible?
Thank you for your time. |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, June 04, 2008 Posts: 131, Visits: 423 |
| Hi, Yes, we do have an API added for getting the workflow information from SKChildWorkflows table. The class which can be used is Skelta.Core.ChildWorkflowInfoCollection. This is part of a recent release.
Using the above object you can find the child workflow instance id and then use the same work item collection API with child workflow instance id regards,
Moderator |
| |
|
|