Handling commands and events in camunda

  1. In camunda, which command handler handles the commands like update/delete/create which are sent by client applications? For example, update task, signal event, complete task, etc. are commands to the engine.

  2. Events are published as spring events, and these events are published after the command is been successfully executed and the state of an entity is flushed to the runtime tables?

  3. HistoryEventStreamHandler will handle the events in the same transaction which is used to perform transaction on runtime tables?

  4. How do we handle process engine internal events?

  5. Are we following CQRS pattern for command(writing to runtime tables) and query(history tables)?