Hi There, I was wondering if I could get some clarification around so

Certified Associate Developer
Hi There,

I was wondering if I could get some clarification around something in the documentation here: forum.appian.com/.../Adding_Node_Inputs_and_Node_Outputs

Specifically this statement:
"Expressions for node input values are evaluated before expressions on the form. If the default values of form fields are mapped to node inputs, then they are evaluated at the same time as the node inputs. Therefore, they must not reference other node inputs."

If I'm understanding this correctly this means that input parameters on forms cannot be used for any default values on any forms - however this goes against what I'd thought were several Appian best practices and causes some very significant technical problems when displaying database data on a form.
Can anyone clarify what, exactly, is meant by the above statement and if I've misinterpretted it?...

OriginalPostID-111545

OriginalPostID-111545

  Discussion posts and replies are publicly visible

Parents
  • I do not believe that is the case.

    The documentation above advises against the following scenario:
    Node Input 1: rule!myQueryRule(),
    Node Input 2: fn!if( isnull(<Node Input1>), true, false)

    The reason for this would be that Node Input 1 and Node Input 2 evaluate at the same time, and therefore Node Input 2 may not return the expected result.

    However, node inputs and form input parameters are not identical things. Node Input 1 and Node Input 2 may both be mapped to form inputs as such without issue regardless of their value:
    rule!mySAILrule(input1: ac!NodeInput1, input2: ac!NodeInput2)
Reply
  • I do not believe that is the case.

    The documentation above advises against the following scenario:
    Node Input 1: rule!myQueryRule(),
    Node Input 2: fn!if( isnull(<Node Input1>), true, false)

    The reason for this would be that Node Input 1 and Node Input 2 evaluate at the same time, and therefore Node Input 2 may not return the expected result.

    However, node inputs and form input parameters are not identical things. Node Input 1 and Node Input 2 may both be mapped to form inputs as such without issue regardless of their value:
    rule!mySAILrule(input1: ac!NodeInput1, input2: ac!NodeInput2)
Children
No Data