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.  How to get a graph to poll

    Employee
    Posted 08-26-2012 15:20

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

    Originally posted by: xathras

    Hi All,

    Just wondering if anyone has done this before. Is it possible to have a run and check a condition and loop until a condition occurs.
    E.g. Lets say we get a file which is sent to us via SFTP, we want to continously pull to see if one is there, if it is then trigger some Nodes, otherwise loop for a period of time.

    I'm thinking it would need two graphs with an execute BRX?

    Samples/suggestions would be appreciated.

    Regards
    Wayne


  • 2.  RE: How to get a graph to poll

    Employee
    Posted 08-27-2012 09:21

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

    Originally posted by: ltolleson

    Wayne,

    LAE is not able to loop on a node or set of nodes directly. You are correct that you can use two graphs with the Execute BRX node to kind of simulate a conditional scenario, but you still cannot enforce a loop. If you want to trigger something to occur when a file is SFTP'd then you would also want some type of trigger file to alert when the transmission is complete, since if you have a large file there is no way to know if the file has completed transferring.

    If you are planning to run this from the server as a scheduled BRX, then you can build some logic into your run script that checks for the file and runs the BRX accordingly. You can also schedule your graph to run every X number of minutes and if the file exist then run the graph, otherwise stop processing the graph. Once the file does exist (or the trigger file exist) then the graph would run.

    Hope this helps...

    Larry