Creating a Workflow
Before initiating an workflow, we need to establish a definition file. Let’s begin by creating a simple one with the provided YAMLmy-workflow.yaml. We can now create the workflow using the following command:
Executing a Workflow
Alright; we have now created our first workflow, but nothing has happened yet within the ledgerflows-demo-001 that we used in the workflow definition. Let’s jump straight to the fun part and execute our workflow as a workflow instance. We can do so using the following command:
Checking a Workflow instance status
Workflow instances are living entities. Their current state of execution and termination can be checked using the following command:Debugging a Workflow instance
If you’re having trouble understanding what a workflow instance is currently doing, you can use the following command to get a detailed view of its current internal state:Using the API for debugging
For more detailed debugging, you can use the API endpoints directly: Get instance history:- The sequence of events that occurred during execution
- Input and output values at each stage
- Error messages and stack traces for failed stages
- Timestamps for each operation