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

How to pass params?

  • 1.  How to pass params?

    Employee
    Posted 02-04-2015 08:20

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

    Originally posted by: gabygyy

    Hi,
    I'm new with this tool.
    I need help in doing something like this:
    1. I have a configuration table or an csv file that stores different parameters
    2 Inside the graph I have an composite
    3.inside the composite I need some values from the configuration table

    I need to pass a value stored in a column from the table as a parameter to the composite
    At composite level I will define a parameter and select as value an input column from the config table (how I must write this in order to pass the value from that column and not the column name?)
    Inside the composite how can I sue the param in this case (normal like this {{^paramname^}}?)

    thank you


  • 2.  RE: How to pass params?

    Employee
    Posted 02-04-2015 08:57

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

    Originally posted by: stonysmith

    Is there any particular reason it must be a parameter?

    I use such external configuration tables all the time.. Read in the config table, filter down to the specific values I need for a single test, and then use them in a Lookup or Join to filter down to the records desired.


  • 3.  RE: How to pass params?

    Employee
    Posted 02-04-2015 09:08

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

    Originally posted by: gabygyy

    This composite must run the same way but with different params received from the config table. The filter for the config table is done by setting at runtime 1 graph param- for eg
    I want to exclude repeating the same filter of the config table inside the composite.
    The problem is that inside the composite if you want to use lets say a static node (inside this you can see only params -global, but not params that are loaded with values from the input to the composite)


  • 4.  RE: How to pass params?

    Employee
    Posted 02-04-2015 16:10

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

    Originally posted by: ltolleson

    Parameter values in LAE are static and cannot be changed using input data as you are suggesting. What you are attempting to do is not possible with a single graph. You can however use 2 graphs and use the ExecuteBRX node to send the values from one graph as data to the next graph as parameter values.

    Here is a post with an example of how to use the ExecuteBRX node passing in parameter values.


    http://community.lavastorm.com/threa...ght=executebrx

    Hope this helps.


  • 5.  RE: How to pass params?

    Employee
    Posted 02-04-2015 23:55

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

    Originally posted by: gabygyy

    thank you. this is what i want/ now i m trying to use this execute brx and i receive some errors
    "<logEvent id="0" parent="0" chain="0" timestamp="1423118034000" level="ERROR">
    <message xsi:type="rawMessage"><![CDATA[Error pumping node (Traceback (most recent call last):
    File "C:\Program Files (x86)\Lavastorm\LAE 4.6\lib\python\lavastorm\brain\python1.py", line 917, in Run
    while n.pump(quant):"
    The password for execute brx is brain the same like the user?


  • 6.  RE: How to pass params?

    Employee
    Posted 02-05-2015 01:42

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

    Originally posted by: gabygyy

    i'm trying to use execute brx but i'm having some problems/
    I can not execute with success the brx/ I changed the param for continue on error in order to see the output
    "Exception in thread "main" java.lang.NoClassDefFoundError: com/xformation/lmx/LmxException
    at com.lavastorm.brain.controller.Controller.initLice nseManager(Controller.java:1206)
    at com.lavastorm.brain.controller.Controller.<init>(C ontroller.java:212)
    at com.lavastorm.brain.controller.Controller.__myMain (Controller.java:1116)
    at com.lavastorm.brain.controller.Controller.main(Con troller.java:478)
    Caused by: java.lang.ClassNotFoundException: com.xformation.lmx.LmxException
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:4 23)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 56)
    ... 4 more

    "


  • 7.  RE: How to pass params?

    Employee
    Posted 02-05-2015 08:28

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

    Originally posted by: stonysmith

    Unfortunately, the above isn't enough of the error message to be able to determine what is going wrong.
    If you could post the entire message, it'd be a big help.

    You should also look in the server logs - sometimes this message is produced because some parameter can't be found.


  • 8.  RE: How to pass params?

    Employee
    Posted 02-06-2015 01:09

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

    Originally posted by: gabygyy

    HI,
    you can find in the attachment the exactly test brg and brx.
    It is almost similar with an example found on this forum.
    Attachments:
    ExecuteBRXExample.rar


  • 9.  RE: How to pass params?

    Employee
    Posted 02-07-2015 17:40

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

    Originally posted by: ltolleson

    In your main graph you are passing 3 fields (col1, col2, col3), but in your process graph you do not have col1, col2, and col3 setup as graph run parameters. What you tried to do was setup new graph parameters called field1, field,2, and field3, and give them a values of col1, col2, col3. You need to setup 1 graph "RUN" parameter for every field in your input that you want to use as a parameter in your process graph.

    Hope this helps. Please look back at the example in the forum again for how to setup these parameters.


  • 10.  RE: How to pass params?

    Employee
    Posted 02-09-2015 01:32

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

    Originally posted by: gabygyy

    hi,
    I've tried with the exact sample from that thread/ I've just changed the directory folder/ save again as brx and call MainGraph. It's failed again with same eror. Please can somebody test and send me back an zip with one sample that works.
    thx


  • 11.  RE: How to pass params?

    Employee
    Posted 02-09-2015 08:07

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

    Originally posted by: ltolleson

    I suspect you still have a directory path that the graph still cannot find. I have repackaged the example and added a ppt file with instructions on what needs to change. I also moved the data directory that was hard coded in the ProcessGraph as input into the ExecuteBRX node, passing the value as a parameter. You should only have to change a path in 2 places in the MainGraph and should not need to re-compile the BRX for the ProcessGraph. See the PowerPoint slides for how to make these changes.

    Sorry for the confusion... Hope it works for you this time.

    Larry
    Attachments:
    ExecuteBRXExample.zip