Table of contents


Official Content

This article provides solutions to assign a Workitem to a user using the Workflow Data Types.

  • If the Workitem has not been assigned yet, then you can use the following code:
&workitem.Assign(&user)
commit
return

Where the data types variables are:

&workitem – WorkflowWorkitem
&user – WorkflowUser
  • If the Workitem has already been assigned, you can use the following code to assign it to another user:
&workitem.Reassign(&SourceUser,&TargetUser)
commit
return

Where the data types variables are:

&workitem – WorkflowWorkitem
&SourceUser – WorkflowUser
&TargetUser - WorkflowUser

For further information about the Workflow API, go to Workflow Data Types.

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant