Jump to: navigation, search

Changes


Activity:InvokeWorkflow (Activity)

2,090 bytes added, 07:30, 23 July 2013
Created page with "The InvokeWorkflow activity invokes a {{UBIK}} [[Workflow|workflow]]. {{ActivityInfoBox | title = Invoke Workflow | name = InvokeWorkflow | image = | imagecaption = Activit..."
The InvokeWorkflow activity invokes a {{UBIK}} [[Workflow|workflow]].


{{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|| 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|| In|| True to show workflow errors on the UI, false to suppress them
|- align="left"
| InArguments|| Dictionary<string, object>|| In|| A list with arguments to pass to the workflow
|- align="left"
| OutArguments|| Dictionary<string, object>|| Out|| A list of arguments returned from the workflow, empty if none are returned
|- align="left"
| 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 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>
|}

==See also==
* [[Workflow Designer]]
* [[InvokeInterface (Activity)]]

[[Category:Workflows]] [[Category:Activities]]