How to Use Direct Access Methods
The following describes how to use components with a method interface. You can also:
To configure a method:
-
In the Studio, create a new flow (or open an existing flow).
-
From the Toolbox pane, drag the required component into the main pane. The component's Properties pane opens.
-
In the Properties pane's Interface property, select Method from the drop-down list.
-
Double-click or right-click on the component and select Configuration from the context menu to open the component's Direct Access Methods configuration dialog box.
-
Click Add to add a new method.
-
You have the option to add a condition to each method. Click to add a condition using the Expression Editor. If you add a condition in this way, you can see the condition in the form of a tooltip, when you park on the relevant column.
-
Enter the values for the parameters that you want to define. Mandatory parameters are listed in bold typeface. The value can consist of any combination of expression, variables, user parameters, and free text. Use the Expression Editor to help in creating a value.
-
Click OK to save the configuration or click Cancel to close the dialog box without saving the configuration.
|
-
You must enter a value for each mandatory parameter (in bold) or the configuration will fail. Entering values for all other parameters is optional.
-
You can enter a value in the Value column directly in the field or you can click the button next to the field.
-
If you enter a value directly in the field, and you select Alpha as the parameter type, Magic xpi automatically enters single quotes around the value you entered. This indicates that the value is an Alpha string. Make sure that the value entered is a valid string. If you want to enter a value that includes functions, you must remove the single quotes from the function. However, if part of the entered value is a valid string you must make sure that the single quotes remain around the string.
-
When you click the button to the right of the Value field, the Expression Editor opens for any parameter that is sent to the method (In). For parameters that are returned from the method (Out), the Variables List is displayed, but it does not include system variables, such as C.sys.ErrorCode.
|
To add additional methods:
-
Click Add to add a new line to the pane.
-
Select a method from the drop-down list in the new line.
-
Enter the values for the parameters as described in step 7 of the operation (above).
To change the order that a method is executed:
Methods are executed in the order they appear in the Methods list. To change the order:
-
Select a method from the list in the left pane of the Direct Access Methods configuration dialog box.
-
Click the up or down arrow to move the selected method up or down in the list.