{ "schemaVersion": "stellaops.workflow.definition/v1", "workflowName": "UpdateSrPolicyIdSrcAndCopyCovers", "workflowVersion": "1.0.0", "displayName": "Update Policy ID Source and Copy Covers", "startRequest": { "contractName": "StellaOps.Workflow.Engine.Tests.TestUpdateSrPolicyIdSrcAndCopyCoversStartRequest", "schema": { "type": "object", "properties": { "srPolicyId": { "type": "number" } } }, "allowAdditionalProperties": true }, "workflowRoles": [ "DBA" ], "businessReference": { "keyExpression": { "$type": "path", "path": "start.srPolicyId" }, "parts": [ { "name": "policyId", "expression": { "$type": "path", "path": "start.srPolicyId" } } ] }, "start": { "initializeStateExpression": { "$type": "object", "properties": [ { "name": "srPolicyId", "expression": { "$type": "path", "path": "start.srPolicyId" } }, { "name": "shouldContinue", "expression": { "$type": "boolean", "value": true } } ] }, "initialSequence": { "steps": [ { "$type": "call-transport", "stepName": "Update Policy Source", "invocation": { "address": { "$type": "legacy-rabbit", "command": "pas_update_policy_source", "mode": 1 }, "payloadExpression": { "$type": "object", "properties": [ { "name": "srPolicyId", "expression": { "$type": "path", "path": "state.srPolicyId" } } ] } } }, { "$type": "decision", "decisionName": "Continue or end process", "conditionExpression": { "$type": "binary", "operator": "eq", "left": { "$type": "path", "path": "state.shouldContinue" }, "right": { "$type": "boolean", "value": true } }, "whenTrue": { "steps": [ { "$type": "call-transport", "stepName": "Copy Covers", "invocation": { "address": { "$type": "legacy-rabbit", "command": "pas_copy_covers", "mode": 1 }, "payloadExpression": { "$type": "object", "properties": [ { "name": "srPolicyId", "expression": { "$type": "path", "path": "state.srPolicyId" } } ] } } }, { "$type": "complete" } ] }, "whenElse": { "steps": [ { "$type": "complete" } ] } } ] } }, "tasks": [], "requiredModules": [ { "moduleName": "transport.legacy-rabbit", "versionExpression": "\u003E=1.0.0", "optional": false }, { "moduleName": "workflow.dsl.core", "versionExpression": "\u003E=1.0.0", "optional": false } ], "requiredCapabilities": [] }