Was this page helpful?-1-4+1

This is an old revision of the document!


Error event depicts business exceptions

Нормальное (или желательное) завершение подпроцесса изобразите простым конечным событием, а бизнес-исключение (нежелательный вариант) - событием-ошибкой. На верхнем уровне воспользуйтесь прикрепленным обработчиком.

  1. Technically, attached event can be omitted - in this case error event would stop the current subprocess, the subprocesses above and the top-level process. Yet if modelled this way, the significant aspects of the process behavior would be hidden so the good practice is to always depict the attached error event.
  2. If the attached event is named then it'd catch only the end error event with the same name. This way each end event can be processed separately. If the attached event is unnamed it'd catch all end error events.

Использование события-ошибки - альтернатива более простой технике проверки результата на выходе из подпроцесса. К плюсу этого способа можно отнести то, что диаграмма получается более компактной, к минусу - то, что в палитру добавляется еще один элемент.

Anatoly Belaychuk 2024-01-11 23:30