Tuesday, September 24, 2013

Delegate API to reassign a workflow taskto another user

If you are the assigned user of a workflow task,you can only reassign the task if the performer_flag for thecorresponding dm_activity is set to 1 or 3. However, if you areworkflow supervisor or a user with either Sysadmin or Superuserprivileges you can use the Delegate API to reassign a workflow taskto another user.

delegate,c,<workitem_id>,<user_name>

The user_name can be either a user name or a group name. Ifthe user_name is a group, only one member of the group can acquirethe dmi_workitem. The server will reassign the dmi_workitem andchange it's status to dormant.

Note that the dmi_workitem must be in the acquired statebefore you can delegate it to another user. If it is not you canuse the Acquire API as follows:

acquire,c,<workitem_id>

You can check the r_runtime_state attribute of thedmi_workitem to see what it's current state is.

No comments:

Post a Comment