Difference between revisions of "Activity:InvokeWorkflow (Activity)"
(→Example) |
(→Arguments) |
||
Line 23: | Line 23: | ||
| Workflow|| Workflow|| In || The {{UBIK}} workflow object to invoke | | Workflow|| Workflow|| In || The {{UBIK}} workflow object to invoke | ||
|- align="left" | |- align="left" | ||
− | | WorkflowName|| | + | | WorkflowName|| {{Text}}|| In || The name of the workflow to invoke, overrules the ''Workflow'' argument if set |
|- align="left" | |- align="left" | ||
| UBIKObject|| BaseClass || In || A valid object; this argument is mandatory if ''WorkflowName'' is used | | UBIKObject|| BaseClass || In || A valid object; this argument is mandatory if ''WorkflowName'' is used | ||
Line 29: | Line 29: | ||
| VerboseErrors|| Boolean|| In|| True to show workflow errors on the UI, false to suppress them | | VerboseErrors|| Boolean|| In|| True to show workflow errors on the UI, false to suppress them | ||
|- align="left" | |- align="left" | ||
− | | InArguments|| | + | | InArguments|| IDictionary<string, object>|| In|| A list with arguments to pass to the workflow |
|- align="left" | |- align="left" | ||
| OutArguments|| Dictionary<string, object>|| Out|| A list of arguments returned from the workflow, empty if none are returned | | OutArguments|| Dictionary<string, object>|| Out|| A list of arguments returned from the workflow, empty if none are returned |
Revision as of 07:52, 2 April 2014
Invoke Workflow | |
---|---|
Name | InvokeWorkflow |
Purpose | Invoke a workflow |
Category | Control Flow |
Returns | True if successful |
Version | 2.1.14+ |
The InvokeWorkflow activity invokes a UBIK® Workflow.
Contents
Arguments
Argument | Type | Direction | Purpose |
---|---|---|---|
Workflow | Workflow | In | The UBIK® workflow object to invoke |
WorkflowName | Text | In | The name of the workflow to invoke, overrules the Workflow argument if set |
UBIKObject | BaseClass | In | A valid object; this argument is mandatory if WorkflowName is used |
VerboseErrors | Boolean | In | True to show workflow errors on the UI, false to suppress them |
InArguments | IDictionary<string, object> | In | A list with arguments to pass to the workflow |
OutArguments | Dictionary<string, object> | Out | A list of arguments returned from the workflow, empty if none are returned |
Result | Boolean | Out | True if successful, false if failed |
Usage
This activity is used to load and invoke workflows from within a workflow. It is very useful to split complex workflows into handy and reusable portions and invoke them from other workflows.
Example
Assign an icon to a given object by invoking the workflow WFICON and passing the object stored in the variable UBIKObject as first and only argument:
Argument | Value |
---|---|
WorkflowName | "WFICON" |
UBIKObject | Connect this argument with a variable |
VerboseErrors | True |
InArguments | New System.Collections.Generic.Dictionary(Of String, object) _ From {{"UBIKObject", UBIKObject}} |
OutArguments | connect this argument with a variable of type IDictionary(String, object) outArgs("keyName") |