Hi have a collaboration job with 2 review steps. on the first or second review either reviewer can approve or reject a claim.
I am having a problem when I want to reject a claim in any step. When I get to the process message and I have to define the 'Process Message Submission Step' if I say the first step, A data extract that is new for the review step wont be able to be used in the 'Process message text' as it did not exist in the first step. I am wanting to include in the message a reason for rejection.
Basically I want to be able to reference data extracts from all steps
Is there a way to reference the previous submission step? or will I need to expand my code in have multiple rejection paths?
You are correct I did a code review and some tests. the code is only looking at the values in the "Process Message Submission Step" = "Start". This is correctly set as the start submission is the one you are wanting to update.
You want to get the formDataMap from the previous step.
Can you please log a support ticket for this and I will follow it up and make sure we update the product.
As you suggested you will need to have more end points.
Its good practice to have multiple endpoints instead of just one. If we look at the Multi-step review and approval as per the diagram below
Having the endpoints Terminated Initial, Terminated Additional and Terminated Applicant is a good thing.
When we ask where is my job up to we are really saying what step are we at.
What was the status of a completed job? The last endpoint step.
With the job below its easy to query the jobs that were terminated by the applicant.
WHERE job.status="Completed" AND job.current_step="Terminated Applicant"
Try to use this function stepOrPreviousSubmissionXml