ailtire workflow
Manage workflows, including their creation, retrieval, launching, and visualization.
Synopsis
ailtire workflow <command> [args]
ailtire workflow create --name <string> --package <string>
ailtire workflow generate --id <string> --target <string>
ailtire workflow get --id <string>
ailtire workflow instance --id <string>
ailtire workflow instances
ailtire workflow launch --id <string>
ailtire workflow list
ailtire workflow uml --id <string>
ailtire workflow update --id <string>
Description
The workflow
command provides tools to create, manage, and retrieve workflows and their associated instances. It supports generating outputs, visualizing workflows, and launching workflows in the context of specific use cases.
Commands
create
- Usage:
ailtire workflow create --name <string> --package <string>
- Description: Creates a new workflow with the specified name and package.
generate
- Usage:
ailtire workflow generate --id <string> --target <string>
- Description: Generates a specified target output for the workflow associated with the provided ID.
get
- Usage:
ailtire workflow get --id <string>
- Description: Retrieves detailed information about a specific workflow using its ID.
instance
- Usage:
ailtire workflow instance --id <string>
- Description: Returns a single workflow instance based on the specified workflow ID.
instances
- Usage:
ailtire workflow instances
- Description: Returns all workflow instances available in the system.
launch
- Usage:
ailtire workflow launch --id <string>
- Description: Launches a workflow within a specific use case using the specified workflow ID.
list
- Usage:
ailtire workflow list
- Description: Lists all workflows present in the system.
uml
- Usage:
ailtire workflow uml --id <string>
- Description: Generates a PlantUML diagram representation of the workflow associated with the specified ID.
update
- Usage:
ailtire workflow update --id <string>
- Description: Updates the details of a specific workflow using its ID.
Examples
Example 1: Create a workflow
ailtire workflow create --name "MyWorkflow" --package "com.example"
Example 2: Generate target output for a workflow
ailtire workflow generate --id "workflow123" --target "artifact"
Example 3: Get details of a workflow
ailtire workflow get --id "workflow123"
Example 4: Retrieve a specific workflow instance
ailtire workflow instance --id "workflow123"
Example 5: Get all workflow instances
ailtire workflow instances
Example 6: Launch a workflow for a use case
ailtire workflow launch --id "workflow123"
Example 7: List all workflows
ailtire workflow list
Example 8: Generate a UML diagram for a workflow
ailtire workflow uml --id "workflow123"
Example 9: Update a workflow
ailtire workflow update --id "workflow123"
Notes
- Use the
create
command to define a new workflow with a meaningful name and package location. - The
launch
command executes workflows within specified use cases, which is useful for dynamic or on-demand processes. - The
instances
andinstance
commands are invaluable for managing workflow execution records. - The
uml
command provides a PlantUML diagram, useful for visualization or documentation purposes. - Always ensure proper IDs are passed for commands like
generate
,get
,update
,launch
, anduml
.
See the Command Line Interface for more command documentation.