I would like to ask the community for guidance to understand and try the following:
Assuming I have a process model representing a manufacturing process. While the process is running, there could be events/messages from the environment (e.g. a fire in the factory - these events are raised, no need to worry about this) that needs to be captured by the process engine and act accordingly (e.g. stop or pause the process).
One thought was to put the whole process in a subprocess and put boundary BPMN errors to catch such messages, but I don’t like that idea.
Or use event subprocesses like this suggestion Interrupting event subprocess and resume parent process but then I have to put conditional events everywhere in the main process model and not sure if it still does what I want.
I assume configuring an ActiveMQ integration is better. But I’m not familiar with the concepts there and I would appreciate if anyone can point me simple tutorials. I guess I need something like subscribing in a queue/topic in the beginning of a process and once messages are in the queue, my model should be able to catch them. But any simple examples to look on?