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.  Passing Command Line parameters

    Employee
    Posted 08-18-2014 08:20

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

    Originally posted by: davisdo10

    I have a graph that I would like to run against many files. The graph compares the Date File Format to the Data Extract of many files. Is there a simple way to pass these as a command line string.

    For example invoke the graph with <Filename a> <Filename B> where A is the Data File Format and B is the Data Extract file.


  • 2.  RE: Passing Command Line parameters

    Employee
    Posted 08-20-2014 08:15

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

    Originally posted by: ltolleson

    You can do this using the ExecuteBRX node.

    Here are the steps and an attached example for setting this node.

    1) Create a graph that runs your compare process. I'm sure this is the graph you have already created. Setup FileNameA and FileNameB as graph level run parameters and reference their values in your code where needed. Make sure you have 2 runs. One will contain values that can be used to test the graph and the other will contain values used by the BRX to reference those run paramters (ie. {{*FileNameA*}}.

    2) Create a second graph that is the main driver graph. This graph should have a data stream that contains fields for FileNameA and FileNameB that you want to process. Pass this data stream into the ExecuteBRX node. Make sure the fields containing the filenames are the exact same name and case as the graph parameters in your first graph.

    3) Before you run the ExecuteBRX node make sure you have tested both graphs independently.

    4) Lastly you need to create a BRX file from the first graph and store that on your LAE Server. If you are using the Desktop version then you can save the BRX where you save your BRG file. This is the file that gets called from the ExecuteBRX node.

    Hope this helps... See Attached Example. It is very simple, but gives you an idea of how to structure the graphs and your parameters.
    Attachments:
    ExecuteBRXExample.zip


  • 3.  RE: Passing Command Line parameters

    Employee
    Posted 05-11-2015 07:54

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

    Originally posted by: Mario.Maleitzke

    I've implemented my Main-Process-graphs es described in the example. But I'm getting an error while executing the Execute BRX node in Main:

    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: /data/lae/laework/log/controller/controller.log (Permission denied)

    Any idea what's wrong with my implementation?