escalation rules
thanks
Remember, if 'Approver1' user has actioned the item within the 48 hours, the Activity would COMPLETE and NOT expire i.e. the Line to 'Approver2' would be followed and NOT the line to 'Alternate Approver'.
An Escalation will always fire - yes - as long as the Activity exists. Once the Activity completes successfully however, the Escalation on it, will NOT be activated.
Hope this makes sense,
Ockert
[quote user= true or something similar to that?
Sorry for the seemingly asinine questions. Hehehe.
And thanks also for the quick reply :)
I would use 'Expire Activity' with a line rule similar to the screenshot below.
Regards,
Ockert
What I did was to satisfy all the line rules of the line that it should follow by assigning my WorklistItem's data fields (myWorklistItem.ProcessInstance.DataFields["someDataField"] = someVariable) and then calling the Finish method. This way, you can do without the GotoActivity, execute still all the events under your previous activity (if this is what you want to do), satisfy the line rules, and in effect "color" the line.
[P.S. the reason why I had to do this was because the workflow was being instantiated from an outside party (windows service) and not from the normal forms in the worklist]
Thanks to Ockert and Renier for answering all my questions regarding this GotoActivity, the data fields, and the Open & OpenWorklistItem methods before. It all helped a lot in my arriving to that solution. Thanks for the quick replies!
Glad we could help!!
Regards,
Ockert
I too would like to have the lines between activities to be colored after an escalation occurs. If I may ask for some clarification on this.
You are no longer using the GoToActivity in your Escalation Action Rule? But, are setting a DataField variable in which the line rule acts upon after you "finish" the current acitivty?
Hence, I could have a FormStatus variable that represents each of 5 activities from 1 to 5, each linked to all activities above it via lines based upon the FormStaus = n rule. (i.e. 1 linked to 2, 1 to 3, 1 to 4, 1 to 5, 2 to 3, 2 to 4, 2 to 5, 3 to 4, 3 to 5, and 4 to 5). If activity 1 escalates and the FormStatus variable is set to 4, and then call the Finish method to expire the activity, would the flow move from 1 to 4, and color the line between 1 and 4?
Thanks in advance for any reply or clarification you can provide 🙂
I too would like to have the lines between activities to be colored after an escalation occurs. If I may ask for some clarification on this.
You are no longer using the GoToActivity in your Escalation Action Rule? But, are setting a DataField variable in which the line rule acts upon after you "finish" the current acitivty?
Hence, I could have a FormStatus variable that represents each of 5 activities from 1 to 5, each linked to all activities above it via lines based upon the FormStaus = n rule. (i.e. 1 linked to 2, 1 to 3, 1 to 4, 1 to 5, 2 to 3, 2 to 4, 2 to 5, 3 to 4, 3 to 5, and 4 to 5). If activity 1 escalates and the FormStatus variable is set to 4, and then call the Finish method to expire the activity, would the flow move from 1 to 4, and color the line between 1 and 4?
Thanks in advance for any reply or clarification you can provide 🙂
Hi Aitkeneh,
I do not think you would be able to 'Finish' an event from within an Escalation context. I would (within the Escalation Action) make sure that the FormStatus variable is set to 4 and 'Expire' the current Activity - if I remember correctly, the call is something like: K2.ExpireActivity(). If you're line rule are then defined correctly, you should see the line from 1 to 4 colored.
HTH,
Ockert
Thanks for the quick reply Ockert. I'm going to try some of this today. But, before I do perhaps you can further clarify one more thing for me. Am I to expire the activity before I call the GoToActivity method, or expire after the goto?
Anyway, I'm going to try it without the GoTo to see what happens. My hope is that the line rule will pickup on the updated FormStatus variable and move on when the Activity is expired. I've already tried without expiring the Activity = the process doesn't move, as expected.
Thanks again, Jeff
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.