Passing Global Variable Value BACK from System Command?

 1 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Riverboat Sam
New Member
Posts: 3
New Member
    Is there a way to pass a value BACK to a Global Variable in Process Flow?
    Example: Start declares var1="ONE"
    Then I execute System Command (Unix script) testvar.sh
    In my Unix script I accept the variable:
    variable1=$1
    and then change it:
    variable1="TWO" and 'echo' confirms the change.

    However, when I return to process flow, var1 continues to
    retain the value "ONE".

    (Obviously, "variable1" does not occupy the same location as the passed, global variable, "var1".)
    Is there a way to pass a value BACK? Using var1 or perhaps some OTHER means?
    Thanks!
    Sumanth J
    Basic Member
    Posts: 11
    Basic Member
      Not sure if this works. Can your unix script output 'TWO' for successful execution? If so, may be you can use Assign node to set variable1=NODENAME_outputData. Have you tried this already?