Data360 Analyze

 View Only
  • 1.  Change the value of a run property.. at runtime?

    Posted 05-20-2025 14:02

    is there a way to update/change the value of a run property.. during runtime?

    like..

    node.properties('rundate') = '5/4/202'

    so late when {{^rundate^}} is used it has that date?

    thanks!



    ------------------------------
    Geoff Goldsmith
    Windstream Communications
    Little Rock AR
    ------------------------------


  • 2.  RE: Change the value of a run property.. at runtime?

    Employee
    Posted 05-21-2025 10:07

    Run property values are considered literals / constants and are evaluated at the time the data flow was initialized prior to being executed. The values cannot be updated from within a data flow.

    Obviously, you could create a variable within a node and set it's initial value to that from a Run property and then later update that variable's value. However, the scope of that variable would only be in the node that defined it. You could output the updated value in an output field but there is no way to 'broadcast' the updated value so it is available to other (unconnected) nodes within the data flow.

    You can pass a variable from a Parent data flow into a Child data flow using the Execute Data node. This variable would then be available within the Child data flow as, effectively, a Run property.

    Depending on the situation, you could alternatively write a value to an external data store (DB table, a temporary file (.brd file), etc) and then read in the value as required. 



    ------------------------------
    Adrian Williams
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: Change the value of a run property.. at runtime?

    Posted 05-21-2025 10:27

    yeah, the variables or tables creates the issue of having to pick it out of the data. Would be nice to have a way to create a high level variable - like the run property, but can be changed and referenced the entire flow without having to pass it along with data :)

    for now, i will just use the RunDate_FileSafe :) thanks Adrian!



    ------------------------------
    Geoff Goldsmith
    Windstream Communications
    Little Rock AR
    ------------------------------



  • 4.  RE: Change the value of a run property.. at runtime?

    Employee
    Posted 05-21-2025 11:21

    Just in case this is not clear, and this is not necessarily what you are asking, you can always override the Run Date and Run Time manually in a Schedule that runs the dataflow, and in a Run State.



    ------------------------------
    Ernest Jones
    *Precisely Software Inc.
    PEARL RIVER NY
    ------------------------------



  • 5.  RE: Change the value of a run property.. at runtime?

    Posted 05-21-2025 11:25

    trying to make it so i never have to touch it ;)

    I can do it in a transform and just feed the date i want... its just a pain lol



    ------------------------------
    Geoff Goldsmith
    Windstream Communications
    Little Rock AR
    ------------------------------



  • 6.  RE: Change the value of a run property.. at runtime?

    Employee
    Posted 05-21-2025 11:30

    Ok.  The only current way to set the Run Date automatically is one of the options Adrian mentioned.  You can pass the Run Date as an input to the "Execute Data Flow" node.



    ------------------------------
    Ernest Jones
    *Precisely Software Inc.
    PEARL RIVER NY
    ------------------------------