Workflows and Data Validations -- when cancelling a workflow
M
Michael_bartley
started a topic
3 days ago
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
S
Subham Dixit
said
3 days ago
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 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.
M
Michael_bartley
said
2 days ago
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
M
Michael_bartley
said
2 days ago
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....
S
Subham Dixit
said
2 days ago
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.
Michael_bartley
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?
Hello Michael,
You need to uncheck the box labeled "User Task Completion Required" this will help to bypass the stepper validations.
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstSubham Dixit
Hello Michael,
You need to uncheck the box labeled "User Task Completion Required" this will help to bypass the stepper validations.
Michael_bartley
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
Michael_bartley
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....
Subham Dixit
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.
-
Extend a model with new entities or attributes
-
Data types in xDM
-
Effective date on entities
-
Search using wild cards
-
Export a model from production and import on a development environment
-
"Allow Delete" vs "Allow Removal" privileges
-
LOV label in Named Query
-
Select location on a map and save coordinates
-
Is there a way to set up a master-detail relationship on browse mode?
-
Choose Either a Stepper or A Workflow Based on The User Privileges
See all 280 topics