Hello,
we are using Parent and Child flows with solutions. Now we are having a problem with approval denial in the child flow.
Situation:
We have a parent flow where we have few approvals for the requestor where he can choose the type of approval and the class. Afterwards it gets checked by projektmanagement (through an approval: approve/deny). All this are approvals in teams/mail. Then we are switching for the different cases and in each case are a few serial approvals embedded as child flows. In one case we created a child for this branching which leads to having the parent referencing the 1. Child, referencing the 2. child.
Now we always have the problem that, when an approval is rejected the child flow gets adressed multiple times by the parent flow because of the "failure" of the child flow.
What have we tried?
1. using terminate to just not let the child flow end, so that the parent flow will eventually have a runtime error. (which obviously did not work)
2. using the first approach with additional setting the retrypolicy to "none"
3. using the "cancel flow run" functionality. Problem is that we do not always have the same parent (see the child in a child described above). Furthermore we could not figure out where to get the "Run ID" from. (Maybe someone could answer this, just for curiosity...)
4. unfortunately the possiblity with using a condition in the parent flow and checking a value that has been given by the child flow is no option. As you can imagine this would lead to having far to many conditions in the workflow.
Following are some pictures of the flow. If you need more information, do not hesitate to contact me.
Thanks in advance for your effort! 🙂
BR FSP1303