Function createArvoResumable

Creates a new ArvoResumable orchestrator instance.

Factory function that constructs a resumable workflow handler with automatic resource locking determination and contract validation. Validates that service contracts have unique URIs and no circular dependencies exist.

When service contracts have duplicate URIs

When circular dependency detected (self contract registered as service)

const resumable = createArvoResumable({
contracts: {
self: myOrchestratorContract,
services: {
userService: userContract.version('1.0.0'),
paymentService: paymentContract.version('1.0.0') }
},
memory: new SimpleMachineMemory(),
handler: {
'1.0.0': async ({ input, service, context }) => {
// Handler implementation
}
},
executionunits: 1
});