Use the Workflow Console in the Repo Admin Console to manage Activiti workflows, including testing of newly developed workflows. You can also debug current in-flight workflows.
- Open the Repo Admin Console.
-
In the Consoles section, click Workflow
Console.
The Workflow Console page appears.
-
Perform the following commands for managing workflows:
-
Type show file <definitionClassPath> to output
the file contents.
<definitionClassPath> is the path to the workflow definition file.
-
Type deploy <workflowEngine>
<definitionClassPath> to deploy workflow
definitions.
<workflowEngine> is the workflow engine name (e.g., Activiti).
- Type redeploy to redeploy the last workflow definition.
- Type show definitions [all] to list deployed workflow definitions.
-
Type use definition [<workflowDefId>] to use a
specific workflow definition.
Omitting <workflowDefId> shows the current selection.
-
Type undeploy definition <workflowDefId> to
undeploy the latest version.
Terminates all in-flight workflows associated with the definition.
-
Type undeploy definition name <workflowName> to
undeploy all versions.
Terminates associated in-flight workflows.
-
Type show file <definitionClassPath> to output
the file contents.
-
Perform the following commands for managing variables:
Variables are defined automatically at console start and can be modified or deleted.
-
Type var <varName>[*]=<varValue> to define
or update a variable.
- <varName>: variable name
- [*]: collection (if specified)
- <varValue>: variable value
var bpm:assignee*=admin,fred var wf:notifyMe=true -
Type var <varName>[*] person <varValue>
for a cm:person node ref variable.
var bpm:assignee* person admin,fred
-
Type var <varName>[*] group <varValue> for
a usr:authorityContainer node ref variable.
var bpm:groupAssignee group GROUP_Engineering
-
Type var <varName> package <itemCount> for
a bpm:workflowPackage node ref variable.
var bpm:package package 4
- Type var <varName>= to delete an existing variable.
-
Type var <varName>[*]=<varValue> to define
or update a variable.
-
Perform the following commands for managing workflows:
-
Type start [<varName[=varValue>]]* to start a
new workflow.
start bpm:assignee=david wf:predefined
- Type show workflows [all] to display active workflows.
- Type use workflow <workflowId> to select a workflow.
- Type desc workflow <workflowId> to describe a workflow.
- Type show paths [<workflowId>] to display workflow paths.
- Type desc path <pathId> to describe a path.
- Type show transitions [<workflowId>] to display transitions.
- Type signal <pathId> [<transitionName>] to signal a transition.
- Type event <pathId> <eventtype> to fire a custom event.
- Type end workflow <workflowId> to end a workflow.
- Type delete workflow <workflowId> to delete a workflow.
- Type delete all workflows to delete all in-flight workflows.
-
Type start [<varName[=varValue>]]* to start a
new workflow.
-
Perform the following commands for managing workflow timers:
- Type show timers [all] to display active timers.
-
Perform the following commands for managing tasks:
- Type show my tasks to list assigned tasks.
- Type show my completed to list completed tasks.
- Type show my pooled to list tasks in a pool.
- Type show tasks [<pathId>] to list tasks associated with a workflow.
- Type desc task <taskId> to describe a task.
- Type update task <taskId> [<varName[=varValue>]]* to update a task state.
- Type end task <taskId> [<transitionName>] to end a task.
- Type query task [predicate]* to query tasks.