Managing Workflow

Nected's workflow automation platform provides an efficient, intuitive solution for configuring and executing custom workflows. With a flexible trigger node system, users can initiate automated processes based on a broad range of input parameters, from basic types like strings and numbers to complex data structures such as JSON objects and lists. This adaptability allows for precise, data-driven automation tailored to unique business requirements.

Setting Up Workflow

  • Log into Nected Dashboard: Start by logging into your Nected account. Access the dashboard to find the tools and options for creating workflows.

  • Navigate to Workflow Option: On the left panel of the dashboard, locate and click on the ‘Workflow’ option. This action takes you to the workflow management section.

  • Create a New Workflow: Click on the ‘Create Workflow’ button. This opens a window where you can define the details of your new workflow.

  • Name your workflow (e.g., “Sample Workflow”) and decide its stage (staging or production). Staging allows you to test the workflow without affecting live data, while production puts the workflow into actual use.

After creating your first workflow, follow this steps to complete the process of creating the workflow:

Configure the Trigger via Trigger Node

  1. In the workflow editor, the start node is your trigger by default.

  2. Click on it to open the trigger configuration.

  3. from the list choose the type of trigger you want. Currently, only the API trigger is available. More triggers {such as events and cron/scheduler} are coming soon.

  1. You can define different types of input parameters for your trigger:

    • String: For alphanumeric data, such as names or addresses.

    • Numeric: For numbers. It could be integers or decimals.

    • Date: For date values without a time component, in the format DD/MM/YYYY.

    • DateTime: For date and time values, in the format DD/MM/YYYY HH:MM.

    • Boolean: For true/false values.

    • JSON: To input raw JSON data.

    • List: To input a list of items, which could be numbers or JSON or any other type.

  2. Click on Add Field, choose the type, and provide a name for each attribute.

  3. Enter example values for these attributes as required for testing purposes. (Example values are compulsory to test the trigger)

  4. Navigate to the Settings tab within the workflow editor.

  5. Here you will find your Workflow API URL which can be copied.

  6. You can also find the Body Params here, which are needed when requesting your workflow API.

  7. Copy the Body Params to be integrated into your system for triggering the workflow.

  8. Setting Up API Authentication (Optional):

    1. Within the Settings tab, you can add an authentication layer to use your API securely by selecting from the available methods.

    2. Once you select the preferred authentication method, configure it according to the requirements.

    3. After setting up, make sure to save your changes.

    4. For more detailed information on authentication methods, please refer to the Nected documentation on API authentication here.

Add Nodes

To add nodes, follow these steps:

  1. Access 'Add Node': Click on the '+' button, to open the “Add node’ panel.

  2. Select the Desired Node Type: From the 'Add Node' modal, browse through the available nodes. You'll see a variety of nodes, each represented by an icon and name, indicating its function.

    1. Action Node: Action Nodes are the primary executors of operations and play a key role in handling data, making decisions, and executing processes.

    2. Control Node: Control Nodes manage how and when actions occur, influencing the workflow’s logic and timing.

    Note: To use the output data in subsequent nodes via tokens, one must test the added node to set up sample output.

After adding a node you need to follow the below steps to configure your node.

By the way, this is a general guide to configuring a node. Configuring specific nodes can be different than each other. So read each node's docs for a more detailed guide.

Configure the Node:

Click on the node to configure it. Fill in the necessary parameters, test it, and set proper settings according to your requirements.

  1. Input Params: The Input Params section looks different for different types of Nodes. In the respective field of nodes, you can feed in respective constant values(like string or number) or map any outcomes from any previous Nodes using tokens available in the dropdown list or can map directly the global variables using tokens.

    Note: Only compatible data-type tokens are available in the dropdown to select.

    In the dropdown, there are three types of tokens you can see:

    • Trigger Nodes: {{ Trigger.attribute_Name }} for example: Trigger.sensor_id

    • Previous Nodes: {{perv_node_Name.attribute_Name}} for example: SetVariable1.output.key_1

    • Global Attributes: {{globalVar.attribute_Name}} for example: globalVar.edtechLeadsBucketD

    By hovering on the specific attribute, you can see the value of that input param. This feature allows you to check the attribute value you're adding to the input param field.

  2. Test Result: Once you've entered the input parameters, you can test the node to ensure it functions as expected by just clicking the 'Test' button. You'll see the following sections:

    • Input section(optional): The Input section is purely optional as it can only appear if the node is a rule node. Else this section will not appear.

    • Output Section: In the output section, same as the rule result tab, you can see the execution result in JSON format, along with the Action name and status(if all conditions are met).

  3. Settings: The Settings section allows you to define broader operational parameters and any additional options controlling the node's workflow behavior. Like timeouts, retrials, limits, etc. Now, the settings tab can also vary according to the node types. Go to the specific node pages for a more detailed overview of specific settings tabs.

  4. Save: After configuring the node, save your node. It's important to test the node before saving the node if you want to use the output of this node in any of the subsequent nodes.

Node Status:

Based on the current configuration of the nodes, it can be in any of the following three states:

  1. Untested:

    • The "Draft/Untested" status is assigned to a node when it is not tested and it will show like the above image.

    • During the drafting phase, you have the flexibility to make changes and adjustments to your node without affecting the environment.

    Note: A node can be kept in untested status, however, the node can affect another ‘child node’ or ’post node’ to be tested. Also, as long as a node is in untested status, the workflow can’t be published.

  2. Tested:

    • After you have completed the editing process or made changes to the node, you can initiate testing by clicking the "Test" button.

    • This action redirects you to the “Test Result” tab, where you can evaluate the node's behavior and performance in a controlled staging environment.

  3. Error:

    • If your node doesn’t execute properly or gets any kind of error, the Node then looks like the above, and its status changes into ‘error’.

    • To fix this, you can try to run the node again by simply clicking the left ▶️ button or can click on the Node to edit the node and fix that if there’s any kind of error.

Test & Publish the Workflow

Nected allows you to test workflows in a staging environment before deploying them to production. This ensures that your rules are working as expected.

Test a Workflow

  1. Test in Staging: Click the "Test in Staging" button to test a workflow.

  2. Input Data: Ensure that proper input data is given to all added nodes.

  3. Test Result Tab: In the "Test Result" tab, you can evaluate the node's behavior and performance in a controlled staging environment.

If the added nodes have an error, then the test in staging will be disabled.

Publish a Workflow

  1. Test All Nodes: Test all the nodes separately or run "Test in Staging" before publishing.

  2. Publish Button: After testing the workflow, click on the "Publish" button to publish the workflow in production.

Please refer to Test & Publish Workflows for more detailed information.

Clone & Delete Workflow:

  1. Click Clone to duplicate the existing workflow. You can modify a cloned rule using the Edit button.

  2. Click Delete to remove a Workflow from your Nected platform. The Delete workflow dialog box opens. Click the Delete button on the dialog box to remove the rule.

  3. You must update a workflow after you delete a workflow if the deleted workflow is being called in that workflow.

Note: On the free plan, you can create up to 2 Workflows.

Versioning:

Every publish creates a new version of the workflow and you can always view the last published version along with the current draft. We are soon rolling out versioning rollback, diffs to see any of the previous versions and able to see the diff as. well as rollback rule to any of the previous versions, as per requirement.

Last updated