====== Check subprocess result on exit ======
{{tag>subprocess gateway}}
===== ✔ How to =====
Flow_017eh8n
Flow_1gmtur1
Flow_1gmtur1
Flow_0znuxn6
Flow_0eaj2kq
Flow_0znuxn6
Flow_1pbytyb
Flow_0eaj2kq
Flow_017eh8n
Flow_1pbytyb
===== ✘ How NOT to =====
Flow_014fv7m
Flow_15xjhk7
Flow_15xjhk7
Flow_1pveezk
Flow_1pveezk
Flow_014fv7m
===== Notes =====
* If a subprocess isn't followed by a gateway then it is assumed that the subprocess is always successful which usually isn't the case. A subprocess not followed by a gateway may be not a mistake but should raise question whether we anticipate the possibility of unsuccessful subprocess completion.
* This rule is applicable to embedded subprocesses and call activities calling a process, collapsed and expanded subprocesses.
===== Exceptions =====
* Deal negotiation in the "How not to" diagram above may be always successful if it's concluded between affilated parties, e.g. a business unit company and a shared services company belonging to a single group. No need for a gateway in this case.
===== See also =====
* [[en:rule:business_exception_error]]
* [[en:rule:human_decision]]
===== Author(s) =====
--- //[[user:bell|Anatoly Belaychuk]] 2023-08-06 14:41//