On this page
workflow
Commands for managing workflow definitions in SHAR.
Subcommands
list
Lists all available workflow definitions.
Usage:
shar workflow listExample:
shar workflow listOutput: Returns a list of all workflow definitions registered in SHAR.
get
Retrieves a specific version of a workflow definition.
Usage:
shar workflow get <workflow_id>Arguments:
workflow_id- The ID of the workflow to retrieve
Example:
shar workflow get wf_abc123Output: Returns the complete workflow definition including metadata and BPMN structure.
getversions
Gets all versions of a specific workflow.
Usage:
shar workflow getversions <workflow_name>Arguments:
workflow_name- The name of the workflow
Example:
shar workflow getversions "MyWorkflow"Output: Returns all versions of the specified workflow.
prune
Prunes (removes) old or unused workflow versions.
Usage:
shar workflow prune <workflow_name>Arguments:
workflow_name- The name of the workflow to prune
Example:
shar workflow prune "MyWorkflow"Output: Confirms the pruning operation.