Workflow nodes

New Workflow:

Screenshot from 2024-01-14 18-43-40.png
New Workflow
  • Edit name for Workflow

  • Workflow JSON : …..

  • Select ‘Workflow Initial Component’ : ….

  • + Add param
    - Key:
    - Data type:

  • 'Enabled' toggle

1. userDecision [Flexible user decision]

Screenshot from 2024-01-14 18-56-57.png
User Decision Node
  • Component: Web Component Selection

    Assignee User:
    Selection of the person to whom the task will be assigned by choosing a task solution in the Workspace - openTasks section. Only this user will see the creation of the task.

    Assignee Role:
    Only users with the selected role will be assigned to choose a solution for a task in the Workspace - openTasks section.

    Assignee Permission:
    Only users with selected access will be assigned to select a solution for a task in the Workspace -openTasks section.

    Params Key:
    Specify the key in which the data will be displayed when selecting a decision for the open task. By default, it is initialData

    Outport N:
    A solution to the given task that will progress to the next node in the chain.

    • Name: The name of the solution

    • Primary: The button will be painted in the basic color of the platform (oriented towards a positive decision)

    • Danger: The button will be painted in red (oriented towards request rejection)

    • + Add Out Port: Adding additional options for solving the problem

    In: This signifies the connection of the previous node and the transfer of data regarding the task.

    Out Port: This port serves as the departure point for the request to move to the next connected node or exit. Multiple ports may exist, depending on the options created for problem resolution.

  1. actionCall [Call any action of any service]

  • Action: A functionality accessible within the GraphQL endpoint of the project, which can be invoked with the provided parameters.

    Params Key: The key containing the data passed to the function call. Default is initialData.

    Result Key: A key containing data from the function — standard result.

    In: Connects the previous node and transfers data.

    Success: Connects to the next node upon successful execution of the function.

    Error: Connects to the next node when execution fails.

 

  1. CheckPermissions [Check permissions]

  • Params Key: Specifies the key containing the employee's permissions whose access needs to be checked. The default is initialMeta.permissions

    Permissions: Selection of permissions that will determine the transition to the true port.

    In: Connects the previous node and transfers data.

    True: Connects to the next node if the selected accesses match the selected employee's access.

    False: Connects to the next node if the selected accesses do not match the selected employee's access.

  1. checkRoles [Check roles]

  • Params Key: Specifies the key containing the ID of the employee whose roles need to be checked. The default is initialMeta.user.id

    Roles: The selection of roles will determine the transition to the true port.

    In: Connects the previous node and transfers data.

    True: Connects to the next node if the selected roles match the role of the selected user.

    False: Connects to the next node if the selected roles do not match the selected user's role.

  1. copy [Copy data]

  • From: The key containing the data to be copied.

    To: The key where the data to be copied will be located.

    +Add Copy action: Creates additional keys whose data will be copied to other keys.

    In: Connects the previous node and transfers data.

    Out: Connects to the next node and transmits data.

 

  1. delete [Delete values]

  • Delete Item: A key with a value that will be deleted and passed on without this data.

    Add Delete action: Adds fields where the key for deleting data will be specified.

    In: Connects the previous node and transfers data.

    Out: Connects to the next node and transmits data.

 

  1. if [If condition]

  • Condition: Description of the condition under which the connection of the next node will be directed through the true output. For example, wallets.length > 0.

    In: Connects the previous node and transfers data.

    True: Connects to the next node and transfers data when the specified condition is met.

    False: Connects to the next node and transfers data if the specified condition is not fulfilled.

  1. set [Set values]

  • Key: The identifier where the transferred data in the Value field will be stored.

    Type: The data type to be saved:

    • String

    • Number

    • Boolean

    • Expression

    When selecting ‘Expression’, - concatenate strings with values to return a string type. For example, "Create a new currency: " + initialData.id, where initialData.id represents the ID of the new currency. The resulting value might be, for instance, "Create a new currency: USDT".

    Value: The data to be saved.

    Add Set action: Adds another block for setting data.

    In: Connects the previous node and transfers data.

    Out: Connects to the next node and transmits data.

  1. startNode [Starting point of any workflow]

Out: Establishes the connection to the next node and facilitates the transfer of data.

  1. endNode [End point of workflow]

In: Connects the previous node and completes the Workflow execution.