Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We will be using the node “Check Dataflow Status“ on the “Onesait Platform Dataflows““ category

...

 

Let's see how we you can use that node. To do this, we will follow the following steps:

  1. Select the "FlowEngine Management" option from the menu:

     

    Image Modified
  2. Select the domain

...

  1. you want to work on:

    Image Modified

     

  2. Once you are in the domain, drag a node of type "Check Dataflow Status" to the flow and double click on it to see its configuration properties.

    Image Modified


    The following are the base properties:

    1. Name: The name that you want the node to have when viewing it within the flow.

    2. Dataflows available: List of dataflows availables by the user

    3. Dataflow: Dataflow selected in the previous box. This

...

    1. is the

...

    1. dataflow whose status will be

...

    1. checked. If msg.dataflowIdentification exists in the incoming message and it has content,

...

    1. its value will be used insted of the base property.

    2. Wait until Status: It

...

    1. allows you to configure whether you want a status check to run when receiving messages, or a scheduled check by polling. The available options are:

      1. none: Default behavior of the node

...

      1. . It will check the status

...

      1. of the selected DataFlow when a message is received.

      2. interval: It will check the status automatically every x time

...

      1. since the

...

      1. node changes are deployed.

        Image Modified

      2. interval between times: It

...

      1. will launch the status checks in a planned manner as if it were a crontab.

        Image Modified

      2. at specific time: It

...

      1. schedules the status check

...

      1. for a

...

      1. specific time.

        Image Modified


        If

...

      1. an option other than "none2 is chosen, two new properties will appear

...

      1. .

      2. Status: It

...

      1. indicates the status you are expecting when checking. If the DataFlow status matches the one marked in this field, an output message will be generated.

      2. Restart checking status after receiving a message

...

      1. : If marked as active,

...

      1. the

...

      1. health check will be performed every time an incoming message is received from the node. Otherwise, planning will be carried out after performing a "deploy".

      2. Stop after first match

...

      1. : If enabled, it will stop the

...

      1. scheduled health check run when the first match occurs. You will be able to tell whether the desired state has been found or not by looking at the state of the node in the flow as follows:

        1. Waiting for indicated status/

...

        1. active planning:

          Image Modified

        2. Status

...

        1. matching the indicated/scheduling disabled:

          Image Modified


  1. Run the dataflow:

...

  1. Every time a message

...

  1. arrives at the node

...

  1. , it will

...

  1. attempt to check the selected DataFlow’s status. The result of the

...

  1. operation, as well as its status, will be

...

  1. returned in the msg.payload:

    Image Modified