Salesforce

How to Use Direct Access Methods (Magic xpi 4.5)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How to Use Direct Access Methods

The following describes how to use components with a method interface. You can also:

Note:

If you dragged the component (not the method) into the flow, follow the procedure on how to add additional methods.

To configure a method:

  1. In the Studio, create a new flow (or open an existing flow).

  2. From the Toolbox pane, drag the required component into the main pane. The component's Properties pane opens.

  3. In the Properties pane's Interface property, select Method from the drop-down list.

  4. 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.

  5. Click Add to add a new method.

  6. 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.

  7. 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.

  8. Click OK to save the configuration or click Cancel to close the dialog box without saving the configuration.

Note:

  • 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:

  1. Click Add to add a new line to the pane.

  2. Select a method from the drop-down list in the new line.

  3. 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:

  1. Select a method from the list in the left pane of the Direct Access Methods configuration dialog box.

  2. Click the up or down arrow to move the selected method up or down in the list.

Reference
Attachment 
Attachment