Skip to main content
July 5, 2022
Question

Terminate a process from End Event of a sub-process

  • July 5, 2022
  • 2 replies
  • 0 views

Hi,

Let's admit I have 3 process. Process A calls a sup-process B wich calls it self another process C.

If a fonctionnal error is raised from C, is there any way to stop definitively B and A (from C) ?

Or I have to deal with an error code below to push up the information to the parent process of each process ?

Process C met an error, we set pv!error=true and terminate the process

In Process B we test the return value from C, if true, we set pv!error=true and terminate the process

In Process A we test the return value from B, if true, we terminate process

2 replies

stefanhelzle0001
Brainy
July 5, 2022

They way you explained, is the way I would go as well. If a process is interested in the result of a subprocess it called, it needs to implement some logic to check for it and act accordingly.

July 5, 2022

Thank you Stephan.
I just wanted to be sure...