Invoke Function

This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0

When this task executes, it invokes a custom function. You write the code of a custom function in JavaScript. To know more about a custom function, visit the Creating a Custom Function post. The custom function contains a complex logic or algorithm to perform a function or task on the related application page.

To configure a Invoke Function task:

  1. On the <<task group’s name>> page, find the Task panel.
  2. In the Task panel, search and find the Invoke Function task.
  3. Drag the Invoke Function task from the Task panel to the Execution panel.
  4. Under Invoke Function, a group of boxes comes into view.
  5. In the boxes, configure related properties as follows:
Box/FieldDescriptionMandatory
Reference NameIn this box, enter the name of the task. Also, the system generates a reference name by default.Yes
FunctionUse this property to select the custom function. To select the custom function:
a. In this box, click the application tree icon () to display the Custom Functions panel.
b. The Custom Functions panel displays the list of custom functions.
c. In the list, select a custom function.
d. After you select a custom function, an Info panel comes into view.
e. In the Info panel, click Consume, and the Custom Functions panel displays a list of parameters.

f. In the list of parameters, click in the first parameter to display the smart selector.

g. In the smart selector, select the element that contains the value of person’s height.
h. Perform steps f and g to select another element.
i. After you select all element in the related boxes, click .

When the custom function executes, each parameter picks the value from the selected element in the related box.
No
Output LocationUse this property to select an element so that the selected element displays the output.
a. Click in this box to display a smart selector.
b. In the smart selector, select the element that will display the output.

Yes
Business Rule (Optional Step)In this box, you can configure a business rule to determine the execution of the Enable task. If the user’s action satisfies the condition in the business rule, the Enable task is executed.

To configure the business rule:
–> In the Business Rule box, click the application tree icon (), and the Business Rule panel opens.
–> In the Business Rule panel, click CreateNew to configure the new business rule.
No
  1. After you configure all properties under Invoke Function, click to successfully configure the Invoke Function task.

Was this article helpful?
YesNo