How to prevent an activity from completing until all slots have been completed

  • 24 February 2022
  • 0 replies
  • 4 views

Userlevel 3
Badge +8
 

How to prevent an activity from completing until all slots have been completed

KB000048

DOWNLOADS
DOWNLOADS
PRODUCT
K2.net 2003
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

This article explains how to prevent an activity from completing until all activity slots have been completed.

 

Scenario
•   An activity in your process has more than one slot.
•   The line rule that follows this activity evaluates an activity data field for all slots.
 
Problem
•   The problem is that as soon as the first worklist item in an activity has been completed, the activity itself is deemed complete and so K2 Server starts to evaluate the line rule, even though the other worklist items had not yet been opened.
•   The following Line Rule evaluates the activity data of each slot, which is not what is required, for only one destination had an opportunity to supply activity data, leaving all other worklist items to expire before those slots could be addressed.
 
Refer to the zip file “KB000048 Download.zip” for an example of this process.

Resolution
•   Add a succeeding rule to the activity, (Activity 1 in the attached example), to evaluate the Activity.Status for all slots, as illustrated below. Use the drop-down list provided to select K2.Activity.Status as the “First Variable”.
 
 
•   This succeeding rule will ensure that the activity is not completed until all slots of the activity event have been completed.
•   Once all slots of the activity event have been completed, the succeeding rule will evaluate to true and the process will continue with the line rule.

 


0 replies

Be the first to reply!

Reply