Get Approver after Redirecting a Task

  • 24 February 2022
  • 0 replies
  • 22 views

Userlevel 5
Badge +20
 

Get Approver after redirecting a Task

kbt134224

PRODUCT
K2 blackpearl
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
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.

Objective

Retrieve the actual actioner of a worklist item by executing the Activity Instance Destination SmartObject.

Before You Begin

Please note that executing the Activity Instance Destination SmartObject on the same activity as the client event may return null, because the relevant tables inside the K2 database may not have been updated yet by the time it reaches the event.

How-to Steps

1. Create a process data field that will store the value of the Activity Instance ID of the activity containing the client event.


Image

2. On the activity where the client event is, add a Data Event at the bottom to transfer the Activity Instance ID to the process data field created in (1).


Image

3. Add a succeeding activity and place the SmartObject Event that will call the Activity Instance Destination SmartObject.


Image
 

 

4. Map the following values to the input parameters below:


Process Instance ID = Object Browser > Process Instance ID
Activity Instance ID = process data field created in (1)

 


Image

Image
 

Get the Destination property returned to retrieve the actual actioner of the task.



5. Configure the Start Rule of the activity to take into account the time it would take for the tables inside the K2 database to be updated, to retrieve the correct results.


Image
 


0 replies

Be the first to reply!

Reply