Alisha Posted June 9, 2020 Posted June 9, 2020 Hello, I have a Business Process query. I'd like to have two different resolution outcomes based on the tasks on the previous stage. For example, in the second stage, if a task is completed, I'd like it to move on to the third stage (resolution stage) and automatically resolve the request and send an email to the customer. However, if the task is not completed in the second stage, I want it to move on to the third stage and use a suspend node and wait for a manual resolution. Is that possible please? I've had a look but can't see a way of making it work because the task is not on the third stage. Any ideas on how to achieve this would be gratefully received. Many thanks, Alisha
Victor Posted June 9, 2020 Posted June 9, 2020 @Alisha you can store the result of the task from second stage in a custom field. Then in third stage use the value on this custom field to check how the task from second stage was completed (or not). 1
Alisha Posted June 9, 2020 Author Posted June 9, 2020 @Victor, thank you for responding so quickly. Is there some documentation that I can read that will teach me how to do this please? I've not done this before. Many thanks.
Alisha Posted June 9, 2020 Author Posted June 9, 2020 @Victor, also, we're already using custom fields in the Progressive Capture, do we need to pick different custom fields for the outcomes of the task in the Business Process?
Victor Posted June 9, 2020 Posted June 9, 2020 @Alisha here is an example of how you would implement the above suggestion in the workflow. Upload this test workflow in your instance (use a new temporary test workflow). You can delete it once you had a look and know how it works. test.draft.bpm.txt Regarding what custom field to use to store the outcome: ideally it should be a custom field that you know is not being used anywhere else, either via mapping in PCF or earlier in your workflow. You can also opt to overwrite a custom field but only if you know you won't need that particular value anymore. 1
Victor Posted June 9, 2020 Posted June 9, 2020 Regarding the "Update Request Custom Field" node in the above workflow example: when selecting the value for the custom field, click on the variable selector, navigate to the task, expand it and select the Outcome variable. Like this: Do not copy the value that is in the example workflow because it's referencing task IDs and these IDs are unique per workflow so it will be different in your workflow. This is why you need to do the avobve step to set the value for the custom field. 1
Alisha Posted June 9, 2020 Author Posted June 9, 2020 This worked very well, @Victor, and exactly what we needed. Your example and instructions were very easy to follow and understand. Thanks for all your help, very much appreciated. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now