Start a new topic
Answered

Workflows and Data Validations -- when cancelling a workflow

Hi there, 


My workflow uses a stepper with validations that require fields to be populated.  These validations work great when proceeding through the stepper and creating the record to move to the next step in the workflow.


My issue is when I kick off a workflow, and once Im in the form, i want to provide the user with the option to cancel and end the workflow.


However, if I have validations in place to check for fields that cannot be null, I cannot cancel the workflow.  but I can for example populate values in all of the mandatory fields and then cancel the workflow without incident.  


Do you have any suggestions for how to get around this?


Best Answer

Hello Michael,


You can make a new transition to the first user task which will point to the end step of the workflow to Cancel it-

You need to uncheck the box labeled "User Task Completion Required"  this will help to bypass the stepper validations.

So that when you start the workflow then you have 2 options, one to continue and other one to cancel it or finish it without doing anything.
You can test it and let us know if it helps.
Thanks and have a nice day.

Answer

Hello Michael,


You can make a new transition to the first user task which will point to the end step of the workflow to Cancel it-

You need to uncheck the box labeled "User Task Completion Required"  this will help to bypass the stepper validations.

So that when you start the workflow then you have 2 options, one to continue and other one to cancel it or finish it without doing anything.
You can test it and let us know if it helps.
Thanks and have a nice day.

Thank you for getting back to me.  Unfortunately this does not seem to be working....once i in a workflow, i cant seem to cancel it (ie end it/abort) without hitting the transition validations in the stepper.  do you have any other suggestions, or is there additional information I could provide?

thank you


hello!  after further experimenting, I was able to find a solution.  


within the user task,  in the transition to cancel, I needed to uncheck the box labeled "User Task Completion Required"  this appeared to bypass the stepper validations as it let me out....

Hello Michael,


I forgot to mention that on 'Cancel' transition you need to uncheck the 'User task completion required' which will allow you to bypass the validations.

I appreciate your hard work in finding out this.


Thank you and have a nice day. 

Login to post a comment