www.skelta.com
Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » BPM.NET 2007/Sharepoint Accelerator 2007 » BPM.NET 2007/Sharepoint Accelerator 2007 » Application Development » How to get the workitems/activities based on...


How to get the workitems/activities based on...Expand / Collapse
Author
Message
Posted Tuesday, January 22, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #403
Posted Tuesday, January 22, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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

Post #404
Posted Tuesday, January 22, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Wednesday, June 04, 2008
Posts: 131, Visits: 423
Hi,
Check the below post:
http://www.skelta.com/forum/Topic353-17-1.aspx

Regards,

Moderator

Post #405
Posted Tuesday, January 22, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #406
Posted Tuesday, January 22, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #408
Posted Wednesday, January 23, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #415
Posted Wednesday, January 23, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #416
Posted Monday, March 17, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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.
Post #662
Posted Monday, March 17, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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
Post #664
« Prev Topic | Next Topic »


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

All times are GMT -5:00, Time now is 12:49am

 
Execution: 0.203.10 queries.Compression Enabled.

Copyright © 2002 - 2007 Skelta Software. All rights reserved. Tel: 1 (703) 229-6732 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company