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.  Disable and enabling nodes

    Employee
    Posted 04-28-2014 07:38

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

    Originally posted by: dialpemo

    Hi,

    Is there the a way of disabling a node based on an input_parameter. I want to create a process where I can choose the path based on a number of records. I haven't been able to disable a node without human input. Any help would be very appreciate it. I have attached a snap of of my graph and how far I have got to. I would appreciate any help.
    Attachments:
    path.brg


  • 2.  RE: Disable and enabling nodes

    Employee
    Posted 04-28-2014 11:59

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

    Originally posted by: ltolleson

    The only way I know to currently accomplish this is to use 2 graphs with an ExecuteBRX node. From the first graph you pass any type of integer or boolean value through a parameter into the second graph and continue your processing.

    See this link from another forum post that shows an example of using the ExecuteBRX node.


    Thanks,
    Larry


  • 3.  RE: Disable and enabling nodes

    Employee
    Posted 05-12-2014 11:02

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

    Originally posted by: ejones

    Another idea, depending on what you need, could be to allow the all the nodes to run, but make the input data stream to your composite contain zero records unless the number of records is what you want.

    To make the data stream contain zero records you could use a Lookup node. Pass the record count into the second input and in the BrainScript only pass the data through "where '2:record_count' >= 21"