We are currently facing an issue where flow is not awaiting at wait shape.
Basically, 1 min timer has been defined on wait shape in a flow which is called from utility.
We observed on tracer that flow remains idle but utility ends so system continues to next step in the stage which is a resolution stage. It has completion email in last step. System send the completion email and workobject gets closed.
We want flow to await for the given time and then only it should send email which is configured in the next step of the resolution stage.
We added one more wait shape in next step but that didnt help.
Yes, flow is not waiting in the given stage for the defined time. As per implementation, after wait shape, system downloads file from AWS S3 and attaches to case. So we are able to see this in audit after 1min, system attaching file.
We want flow to wait until this file attachment is completed and then only email is sent. As this email has link to this file. Since system doesnt wait for file to be attached, email does not have the file.
We are using Pega 8.1.4.
I was able to see on tracer that flow becomes idle when it reaches wait shape. But utility ends after that which calls this flow. Thus system continues to next step in stage and thus email is sent.
Kindly help let know how we can make system to wait until document is attached to case.
We were able to resolve the issue by doing changes in the flow. We are calling an extension flow from the Wait shape calling flow only after file is attached on case and from this extension flow we're calling the flow which is used to send notification. This way problem was resolved.