CMDBuild Forum

[Workflow] How assign acitvity to user

configuration: Cmdbuild 2.2.1, TWE 4.4.1, Shark 

 

Hi, i am trying to assign activity to one user. I think it can be possible, because of this is valid <xpdl:ParticipantType Type="HUMAN"/>. Can anyone know how to do it? Or if it is even possible?

 

 

Thanks.

From what I understand, you are trying to manipulate the workflow itself based on a variable? If that's the case, I don't see anyway that is possible, however, I can think of a way that you could accomplish something similar. 
 
You could place the task in a specific group, and then using the CMDBuild workflow API, compare the current_user to the ID of the user that is supposed to be performing the action. If the values are the same, proceed to the next step on "advance", if not, loop back to the beginning of the step that requires the specific user. 
 
There may be a better, cleaner way to accomplish this, however off the top of my head that's all I can think of.
 
 
Previously Juraj wrote:

configuration: Cmdbuild 2.2.1, TWE 4.4.1, Shark 

 

Hi, i am trying to assign activity to one user. I think it can be possible, because of this is valid <xpdl:ParticipantType Type="HUMAN"/>. Can anyone know how to do it? Or if it is even possible?

 

 

Thanks.