{
  "artifactVersion": "loop.plan.artifact/v1",
  "compilerVersion": "loop.plan.compiler/v1",
  "apiVersion": "loop.plan/v1",
  "digest": "sha256:4a521d07ecbe9212d2b42fa81750f59d16d8cb451edad4fd880de75418bf0f45",
  "contracts": {
    "input": [],
    "output": [],
    "state": []
  },
  "entry": {
    "nodeId": "action",
    "port": "in",
    "bindings": []
  },
  "nodes": [
    {
      "id": "action",
      "opcode": "send_message.sent",
      "inputPorts": [
        {
          "name": "in",
          "contract": []
        }
      ],
      "outputPorts": [
        {
          "name": "completed",
          "contract": []
        },
        {
          "name": "failed",
          "contract": []
        }
      ],
      "stateEffects": {
        "reads": [],
        "writes": []
      },
      "scopePath": [],
      "config": {
        "sendMessage": {
          "target": {
            "segments": [
              {
                "kind": "text",
                "text": "#workflow"
              }
            ]
          },
          "text": {
            "segments": [
              {
                "kind": "text",
                "text": "Start the next step"
              }
            ]
          },
          "callbackOutput": [],
          "retry": {
            "maxAttempts": 2,
            "backoffNanos": 500000000
          }
        }
      }
    },
    {
      "id": "failure",
      "opcode": "end.failed",
      "inputPorts": [
        {
          "name": "in",
          "contract": []
        }
      ],
      "outputPorts": [],
      "stateEffects": {
        "reads": [],
        "writes": []
      },
      "scopePath": [],
      "config": {
        "end": {
          "code": "action_failed"
        }
      }
    },
    {
      "id": "success",
      "opcode": "end.succeeded",
      "inputPorts": [
        {
          "name": "in",
          "contract": []
        }
      ],
      "outputPorts": [],
      "stateEffects": {
        "reads": [],
        "writes": []
      },
      "scopePath": [],
      "config": {
        "end": {
          "code": ""
        }
      }
    }
  ],
  "edges": [
    {
      "id": "route_completed",
      "source": {
        "nodeId": "action",
        "port": "completed"
      },
      "target": {
        "nodeId": "success",
        "port": "in"
      },
      "bindings": [],
      "scopeTransitions": []
    },
    {
      "id": "route_failed",
      "source": {
        "nodeId": "action",
        "port": "failed"
      },
      "target": {
        "nodeId": "failure",
        "port": "in"
      },
      "bindings": [],
      "scopeTransitions": []
    }
  ],
  "scopes": []
}
