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

Welcome Guest ( Login | Register )
      

Home » Skelta BPM.NET 2006 » Skelta BPM.NET 2006 » Workflow Execution » Task status


Task statusExpand / Collapse
Author
Message
Posted Friday, January 11, 2008
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Tuesday, April 08, 2008
Posts: 1, Visits: 12
Hi,

How do I get the task status from a task action in the workflow ? I want to see the task status in the work item list (when i choose a status that is not a task completion maker).
I know how i get the comment ('^'+Action Name+'CommentTaskStatus'), is there the same possibility to get the task status ?

Thanks,

Hilde

Post #293
Posted Saturday, January 12, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Saturday, April 26, 2008
Posts: 128, Visits: 422

Hi,
There are no system variables available for getting these statuses.
Do you want the status to be shown in next action, if it's a non completion maker ?
If the answer is yes then this is what you can try:

1)      The non completion task statuses can be used for conditional routing, for example if you have status1, status2 & status3 as the statuses and status1 & status2 are non completion makers. In this case you can have routing defined from Task1 -> status1 -> action1 & Task1 -> Status2 -> action2. (Attached image: Image1)

2)      Set a Work Item Fields for each of these actions. For action1 the work item field value can be set as status1 and for action2 the work item field value can be set as status2 (See the steps below)

 

When action1 & action2 is shown in work item list you’ll be able to see the status along with them

 

To set a work item field

1)      Go to Settings -> Work Item fields option in Menu bar located on top of Process designer (Image 2 & Image3 )

2)      Click Add New and Add a new Work Item field

3)      Go To action1 or action2 properties

4)      Use the Work Item Fields property and set a value for the work item field (Image4 & Image5)

5)      The field added along with the status will be automatically shown in the work item list

 

The work item filed functionality is available for all human activities

 

Moderator

  Post Attachments 
Image1.png (64 views, 27.50 KB)
Image2.png (61 views, 43.26 KB)
Image3.png (62 views, 85.13 KB)
Image4.png (59 views, 19.85 KB)
Image5.png (56 views, 27.30 KB)

Post #296
Posted Monday, January 14, 2008
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 6:29 AM
Posts: 105, Visits: 556

Hi Hilde,

 

As there is no “Skelta defined variable” to achieve this, another option is to use the “Script” activity.  And you need to implement the Run method .The fifth parameter of Run method, i.e. “inlink”, which is of type string, holds the decision that has been taken up by the previous activity. So please declare a variable of type string in the “Start” activity. E.g.: TaskStatus.

 

I’ve selected CSharp as my scripting language.

 

public class Script1

{

public string Run(int ExecutionId, int ExecutionDetailsId, Workflow.NET.Engine.Context ctx, Action action, string inlink)

{

                ctx.Variables["TaskStatus"] = inlink; //Updates the variable that is declared in Start activity

ctx.SaveVariables(); //Save all variable changes

return “”;

}

}

 

And you can use the “TaskStatus” variable to show which status has been taken by the “Task” activity.

Regards,

Bineesh E Raghavan

Post #315
« 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 7:40am

 
Execution: 0.141.13 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