input and output of a 'user input task'

When the same process variable is updated by both the input and output of a 'user input task' what will be the result? From what I have tested, the input takes precedence. As implemented in the attached photo, the initialization set in the output (setting to NULL) does not execute.

  Discussion posts and replies are publicly visible

Parents
  • +1
    Certified Senior Developer

    Hi  ,

    As far I know, The execution order will be 

    1) Value in input

    2) outputs

    3) Save into in inputs

    So first the value are saved in activity class parameters and then outputs are executed and in the save into fields are executed.

    In your example, whatever the value in form is saved into ac!errMsg first, then output is executed i.e, null is saved into pv!errMsg and then again ac!errMsg is saved in pv!errMsg

Reply
  • +1
    Certified Senior Developer

    Hi  ,

    As far I know, The execution order will be 

    1) Value in input

    2) outputs

    3) Save into in inputs

    So first the value are saved in activity class parameters and then outputs are executed and in the save into fields are executed.

    In your example, whatever the value in form is saved into ac!errMsg first, then output is executed i.e, null is saved into pv!errMsg and then again ac!errMsg is saved in pv!errMsg

Children