Data360 Analyze

 View Only
  • 1.  How to trigger http node conditionally

    Posted 03-21-2023 09:34

    Hi, 

    I'm looking for a way to trigger http node/API call based on a previous node result. In particular, if the column in the database query is empty (any predefined value), then don't trigger http node and subsequent flow. So far I didn't find the method or node which can be passed as an argument to the http node as a trigger. I know there is another way through scheduler where one scheduler can be invoked on success of another flow, but I need to do this within one flow.

    Thanks,

    IC



    ------------------------------
    Irakli Chitishvili
    Degroof Petercam SA/NV
    ------------------------------


  • 2.  RE: How to trigger http node conditionally

    Employee
    Posted 03-21-2023 10:14

    You could use the Meta Check Node.

    Insert a Transform node after the node that is returning the result to be checked and configure it with some logic that only outputs a record if the required condition is met. e.g. given the following Test Results output

    The following logic in the Transform node only outputs a single record if the test condition is met:

    The Meta Check node is configured to expect a minimum of one input records for the test to be successful and to enable node(s) connected to it's output clock pin if the test is successful:

    A Run Dependency is used to specify when the HTTP node should run:



    ------------------------------
    Adrian Williams
    Precisely Software Inc.
    ------------------------------



  • 3.  RE: How to trigger http node conditionally

    Posted 03-21-2023 13:41

    This is great, thank you!



    ------------------------------
    Irakli Chitishvili
    Degroof Petercam SA/NV
    ------------------------------