Function createArvoOrchestrator

Creates a new Arvo orchestrator instance with default components. For custom components, use ArvoOrchestrator constructor directly.

The orchestrator's resource locking is enabled if any machine requires it. Locking is needed when:

  • Machine contains parallel states where multiple states can be active simultaneously
  • Race conditions need to be prevented in concurrent processing
  • State consistency must be maintained across distributed executions
const orchestrator = createArvoOrchestrator({
memory: new MyMemoryImplementation(),
executionunits: 1,
machines: [machineA, machineB]
});