Changing Activity Name Dynamically

  • 14 October 2016
  • 1 reply
  • 8 views

Badge +3

Is it possible to dynamically change the activity name based on a Data Field or some other means in a K2 workflow?

I have a scenario like, if the save to App DB from a client event is failed due to any validation,  workitem for rework needs to be created. The Activity name should have a rework label. Rather than using two different activities, can i handle this with a single activity (having different activity names) and loop back?


1 reply

Badge +10

No you can’t change activity names at runtime. 

 

If the reason you want to change the name is to make the task more noticeable to the user that it’s a rework step you could modify the task email notification using the logical IF inline function to determine its been sent for rework, based on some flag or value you’d need to set, and modify the message accordingly.

 

In addition, you could also modify the folio in the K2 Worklist to make the user aware it’s a rework step.

 

In the end it may just be easier to add another Rework activity J.

Reply