Difference between revisions of "Activity:InvokeInterface (Activity)"
(Created page with "The InvokeInterface activity invokes a {{UBIK}} interface component. {{ActivityInfoBox | title = Invoke Interface | name = InvokeInterface | image = | imagecaption = Activi...") |
(→Example) |
||
Line 52: | Line 52: | ||
| ClassName|| <source lang = "vbnet">"TestClass"</source> | | ClassName|| <source lang = "vbnet">"TestClass"</source> | ||
|- align="left" | |- align="left" | ||
− | | Parameters|| <source lang = "vbnet"> | + | | Parameters|| <source lang = "vbnet">New System.Collections.Generic.Dictionary(Of String, String) _ |
− | From {{"parameter1", "value1"}, {"parameter2", "value2"}} | + | From {{"parameter1", "value1"}, {"parameter2", "value2"}}</source> |
|} | |} | ||
Revision as of 07:14, 23 July 2013
The InvokeInterface activity invokes a UBIK® interface component.
Invoke Interface | |
---|---|
Name | InvokeInterface |
Purpose | Invoke a programmed interface |
Category | Control Flow |
Returns | True if successful |
Version | 2.1.14+ |
Contents
Arguments
Argument | Type | Direction | Purpose |
---|---|---|---|
InterfaceFilename | String | In | The full path to the interface assembly file |
ClassName | String | In | The name of the class to instantiate that derives from UBIK.Interface.InterfaceBase |
Parameters | Dictionary<string, string> | In | The parameters to pass to the interface |
ImportInterface | IUBIKImport | Out | The instantiated import component, if implemented by the interface |
ExportInterface | IUBIKExport | Out | The instantiated export component, if implemented by the interface |
Result | Boolean | Out | True if successful, false if failed |
Usage
This activity is used to load and invoke a programmed UBIK® interface component, just like the EnterpriseService would do.
Example
Invoke the class TestClass from the assembly C:\temp\UBIK.Interface.Test.dll and pass two parameters:
Argument | Value |
---|---|
InterfaceFilename | "C:\temp\UBIK.Interface.Test.dll" |
ClassName | "TestClass" |
Parameters | New System.Collections.Generic.Dictionary(Of String, String) _ From {{"parameter1", "value1"}, {"parameter2", "value2"}} |