[-]
 [+]
  
 
[-]
  
  
  
  
  
  
  
  
  
  
  
 
 
Updated on 9/27/2019
Service Designer User's Guide
Start Node
Direct link to topic in this publication:

Start Node

The Start node is the entry point for a flow. Every service or flow should start with a Start node.

When you create a Start node and call the flow, a system-defined object called bh is created. When you create input and local properties in the Start node, they are added to the bh object. Therefore, every input property can be referenced using bh.input.<property> and every local property can be referenced using bh.local.<property> from the node's attributes window. If you want to access the local and input properties outside the flow, you should set them as output variables. See Setting a property as an output variable to learn more.

How to Use

  • Open the Services editor window.
  • Click the Add Service button to add a new service or open an existing service.
  • In the Nodes Palette, drag and drop a Start node to the workspace.
  • Drag and drop other nodes to create a flow.

Associated Attributes

Start node properties
  • Name: Unique name for the node. This field accepts only string values with a length of length 5 - 50 characters.
  • Function Name: This is a read-only field. The function name gets generated based on the label name that you entered in the Name field. To call the flow, you can use this function name in the component where the service is injected.
  • Input Parameters: Use this field to specify input parameters for the flow. These parameters provide input to the flow. After creating these parameters, you can call the flow (from a page or a service) using the function name generated, and pass the parameters to that function. To add an input parameter:
    • Enter an input key
    • Choose the type of value to be associated with the key. You can select string, number, boolean, or null.
    • Enter a value to be associated with the key.
    • If you want the output of the function to return the input parameter, toggle the Output button to true.
    • Click + Add.
  • Local Parameters: If you want to declare local variables within the function, use this field. Local parameters are private to the flow and cannot be accessed outside the flow. If you want to access this variable outside the flow, you should set the variables as output variables. To add a local parameter:
    • Enter a local key
    • Choose the type of value to be associated with the key. You can select stringnumberboolean, or null.
    • Enter a value to be associated with the key.
    • To set the variable as an output variable, toggle the Output button to true.
    • Click +Add.

Example:

See UI Services Example.


Nodes Palette                                                                                                                  Script Node  >