2,430 bytes added,
11:27, 6 May 2015 The InvokeWorkflow activity invokes a {{UBIK}} [[Workflow|workflow]].
<tabs>
<tab name="Description">
{{ActivityInfoBox
| title = Invoke Workflow
| name = InvokeWorkflow
| image =
| imagecaption = Activity InvokeWorkflow
| purpose = Invoke a workflow
| category = Control Flow
| returns = True if successful
| version = 2.1.14+
}}
===Arguments===
{| class="wikitable sortable" | width = "50%"
|-
! Argument !! Type !! Direction !! Purpose
|- align="left"
| Workflow|| [[Workflow]]|| In || The {{UBIK}} workflow object to invoke
|- align="left"
| WorkflowName|| {{String_MSDN}}|| In || The name of the workflow to invoke, overrules the ''Workflow'' argument if set
|- align="left"
| UBIKObject|| [[BaseClass]] || In || A valid object; this argument is mandatory if ''WorkflowName'' is used
|- align="left"
| VerboseErrors|| {{Boolean_MSDN}}|| In|| True to show workflow errors on the UI, false to suppress them
|- align="left"
| InArguments|| IDictionary<{{String_MSDN}}, {{Object_MSDN}}>|| In|| A list with arguments to pass to the workflow
|- align="left"
| OutArguments|| Dictionary<{{String_MSDN}}, {{Object_MSDN}}>|| Out|| A list of arguments returned from the workflow, empty if none are returned
|- align="left"
| Result|| {{Boolean_MSDN}}|| 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.
</tab>
<tab name="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:
{| class="wikitable" | width = "50%"
|-
! Argument!! Value
|- align="left"
| WorkflowName|| <source lang = "vbnet">"WFICON"</source>
|- align="left"
| UBIKObject|| Connect this argument with a variable
|- align="left"
| VerboseErrors|| <source lang = "vbnet">True</source>
|- align="left"
| InArguments|| <source lang = "vbnet">New System.Collections.Generic.Dictionary(Of String, object) _
From {{"UBIKObject", UBIKObject}}</source>
|- align="left"
| OutArguments || connect this argument with a variable of type <source lang = "vbnet">IDictionary(String, object)</source> and access the value via <source lang = "vbnet">outArgs("keyName")</source>
|}
</tab<
==See also==
* [[Workflow Designer]]
* [[Activity:InvokeInterface (Activity)]]