LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Node to detect an aborted node and work conditionally

    Employee
    Posted 05-04-2017 11:36

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: rgvenkatesh

    Hi,

    Just wondering if we have Lavastorm node to detect an aborted node and work conditionally (if abort then do this else do this)

    I have been looking into different threads here but couldn't find an answer instead most of them talks about how to prevent an abort scenario instead of handling them at run time.

    In the real world we cannot identify or prevent a scenario which can abort the complete work flow, instead we should have a node to handle an abort smartly and let developers put in cases to handle such aborts.

    Venkatesh


  • 2.  RE: Node to detect an aborted node and work conditionally

    Employee
    Posted 05-04-2017 12:07

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: gmullin

    Do you have a Filter saying something like if <some condition> then abort()?

    You could replace it with a Meta Check node. Attached is a simple example where the Static Data node will only execute if Number1 parameter is greater or equal to Number2 parameter.

    meta_check.brg


  • 3.  RE: Node to detect an aborted node and work conditionally

    Employee
    Posted 05-05-2017 06:21

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: ejones

    If it is completely impossible to detect the error, the answer is probably to wrap that node inside its own graph and then use the Execute BRX node to execute that graph. Set the properties on the Execute BRX to not abort if the executed graph aborts. This graph will need to save the results of running that node so that the main graph can read the output of the node and do the appropriate things.