The Import Actions from .NET Assembly wizard allows you to import the actions definitions from a .NET assembly. Using introspection into a .NET assembly, this wizard will create the actions you specified according to the signature of the .NET methods.
This wizard is only available in a .NET or (Both) application server. Note that when using the (Both) application server, you must decide how these imported actions are handled in J2EE.
How to import actions from a .NET assembly:
Do one of the following operations:
and select the Import Actions from .NET Assembly option.
The Action editor allows you to later change the action properties.
The steps of the Import Actions from a .NET Assembly wizard are presented below.
Welcome to the Import Actions from .NET Assembly wizard.
In this step you must select the .NET Assembly from which you want to import the actions.
You can select the assembly from the "Available Assemblies to Import" box, if this assembly was added previously as a resource of the extension; or you can type the file name or press the "Browse" button, to specify the .NET assembly.
If this .NET assembly has dependencies that are not resources of the extension and could not be resolved automatically, Integration Studio launches the "Missing Assembly Reference" window. In this window you have to specify the location of the assembly that is missing.
This step presents all the classes and their members as defined in the .NET assembly you selected in the previous step. Each class is identified by its full name space. Inside each class folder you might find the following .NET member types:
Constructor: The icon associated is . Each constructor is identified by its name and signature.
Methods: The icon associated is . Each method is identified by its name and signature.
Properties: The icon associated is . Each property is identified by its name.
Simply check the tree node you want to import. If the node has children inside, all the children nodes are automatically checked.
In this step you have a complete list with the actions and resources that will be added to your extension, according to your selection, as explained below.
Actions: The actions are created based on the type of members selected in the previous step. How?
Resources: The .NET assembly you specified in step 2 and all its recursive references are added as resources of your extension, together with the DotNetAction.ico, if it hasn't been added already.
In this step, you have the possibility of analyzing how the actions will be created in the extension, through the View Report button. This button displays the report of the actions created and, if necessary, allows you to save it for future analysis.
For each action created by the wizard, the report displays the following information:
Action: Name of the action with the following syntax:
Action <action name>
Target: Indicates which C# member of the assembly will be invoked when this action is called inside your eSpace. The Target syntax is as follows:
<member type> <member name> (<input arguments>) : <output arguments>
Member type is: Constructor, Method, Property, or Field.
Declaring Type: Full name of the class where the member was defined.
Parameters: Input and output parameters of the action created by the wizard. The Parameter syntax is as follows:
<parameter name> (<OutSystems data type> <- <.NET data type>): <additional information>
For each resource created by the wizard, the report displays the following information:
Resource: Name of the resource with the following syntax:
Resource <resource name>: <additional information>
Imported Action Properties | Action Editor | Action Properties | Action Parameters | Resources Tree | Define Extension Actions