Camunda 8 - Forever Running Processes

I have a use case, where I might have a process (representing a business project), which might run eternally. The project itself, as a business entity, might reach the “Completed” state, but it can always be amended with additional information, therefore the actual process instance must remain open, always listening for message events.

Questions:

  1. Is this a bad practice?
  2. Are there any design alternatives you suggest?
  3. Could it be possible for the process instance to actually end when it reaches the “Completed” business state, but somehow keep listening for messages and re-awake once new messages arrive?

Hi @Nikos_M

A process that stays open forever just to wait for possible future updates is not a good idea.

Better options:

  1. End the process when the project is completed.
  2. If new information comes later, start a new process instance using a dedicated message start event. Send the project’s ID and needed data in the message and the new instance should follow the amendment path.
  3. If amendments have completely different steps, put them in a separate process model with a message start event.