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.  Enable or Disable a static node based on a Run Parameter

    Employee
    Posted 05-20-2014 16:10

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

    Originally posted by: dkhuon@gogoair.com

    A dummy node has the ability to be enabled or disabled based on a Run parameter. I like to have the same thing for a static data node.

    Reason: I like to use the static data instead of the real data from a database query by just flipping a Run param (say StaticDataMode). I will then use the ByPass node to control the flow.

    Any help will be greatly appreciated. Thanks.
    dave


  • 2.  RE: Enable or Disable a static node based on a Run Parameter

    Employee
    Posted 05-21-2014 01:17

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

    Originally posted by: dsc88dsc88

    Hi Dave,

    The below is a bit clunky but should meet your needs.

    If you configure a run parameter in the graph called "StaticDataMode", and then populate this with either "Y" or "N", then the following will decide whether to run the Static Data node.


    - - - - - - - - copy all text below this line into your graph - - - - - - - -

    node:Dummy_Input
    bretype:core::Dummy Input
    editor:sortkey=537c5ee1220031d4
    output:@40fd2c7452fa204a/=
    prop:Header=A
    prop:NumberOfRecords=1
    editor:XY=190,180
    end:Dummy_Input

    node:Ascertain_whether_to_run_static
    bretype:core::Filter
    editor:Label=Ascertain whether to run static
    editor:sortkey=537c5eeb2e612d8d
    input:@40fd2c74167f1ca2/=Dummy_Input.40fd2c7452fa204a
    output:@40fd2c7420761db6/=
    prop:Script=<<EOX
    valueToRunStatic = "Y"

    emit *
    where valueToRunStatic == "{{^StaticDataMode^}}"
    EOX
    editor:XY=270,180
    end:Ascertain_whether_to_run_static

    node:Decide_whether_to_run_static
    bretype:core::Meta Check
    editor:Label=Decide whether to run static
    editor:sortkey=537c5f3726be177b
    input:@43c285fc347d19f2/=Ascertain_whether_to_run_static.40fd2c7420761db6
    prop:MinimumRecordCount=1
    prop:SuccessAction=Clock
    prop:TerminusAction=Output
    editor:XY=350,180
    end:Decide_whether_to_run_static

    node:Static_Data
    bretype:core::Static Data
    editor:sortkey=537c5f4d0f07723b
    output:@40fe6c55598828e5/=
    inclock:/=Decide_whether_to_run_static
    editor:XY=450,180
    end:Static_Data


  • 3.  RE: Enable or Disable a static node based on a Run Parameter

    Employee
    Posted 05-21-2014 05:48

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

    Originally posted by: dkhuon@gogoair.com

    It works. Thanks for your suggestion.