On this page
process
Commands for starting and managing workflow processes in SHAR.
Subcommands
start
Starts a new workflow execution.
Usage:
shar process start <process_id> [flags]Arguments:
process_id- The ID of the process to start (as defined in the BPMN)
Flags:
-v, --vars <variables>- Pass variables to the workflow. Format:key:type(value),...- Supported types:
string,int,float,bool
- Supported types:
-d, --debug-trace- Enable debug trace for the workflow execution
Example:
# Start a simple process
shar process start "OrderProcessing"
# Start with variables
shar process start "OrderProcessing" --vars "orderId:int(12345),status:string(pending)"
# Start with debug tracing
shar process start "OrderProcessing" --debug-traceOutput: Returns the ExecutionID and WorkflowID of the newly started execution.
Note:
The SHAR_ZONE variable is automatically set based on the --zone global flag.