Start another process in a process and finished immediately

My use case is that

  1. a user task of process instance main-process is finished
  2. main-process will create another process instance another-process
  3. After the another-process has been created successfully, the main-process should end, and be marked as finished (not waiting for the another-process finished).

I know I can use “Call Activity” to start a process instance externally. However, the main-process still waits for the another-process completed. Is it possible to complete the main-process immediately?

I use a simple BPMN for this use case.

main-process


main-process.bpmn (3.2 KB)

another-process
圖片
another-process.bpmn (2.2 KB)

Thanks.

Yes, you can use message events.

1 Like

If the call is the last step then a message end event can be used

2 Likes

Or just use a service task and start the process via a call to the runtimeService (you’ll also have to do it when using a throwing message event).

1 Like

Hi! @hassang. Thanks for your answer! Since I’m not familiar with the message event, can you provide the .bpmn file for your example? I’d like to see how you configure the message events and others.

Also, I’d like to ask if is it possible to separate your sample into two BPMNs (two process definitions).

Thanks!

I will share it later.

Yes, definitely you can

1 Like

Hi @kent010341,

Kindly find attached a working example.

another_process.bpmn (2.5 KB)
main_process.bpmn (3.9 KB)


1 Like

Hi @hassang,

I’ve tested the BPMNs you provided and they work fine!

Thanks for the support!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.