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 think you are interpreting this piece of the documentation as two separate evaluations. What it really means is that the default values ARE the node inputs. If we take the example from my last post:

    rule!mySAILrule(input1: ac!NodeInput1, input2: ac!NodeInput2)

    We can see that the default values are equal to the node inputs. So when the node inputs are evaluated, they will evaluate the default values for the form (even if the form has not begun to evaluate yet). But this does not change best practice and should have no affect on pulling back anything from databases on to forms.
Reply
  • I think you are interpreting this piece of the documentation as two separate evaluations. What it really means is that the default values ARE the node inputs. If we take the example from my last post:

    rule!mySAILrule(input1: ac!NodeInput1, input2: ac!NodeInput2)

    We can see that the default values are equal to the node inputs. So when the node inputs are evaluated, they will evaluate the default values for the form (even if the form has not begun to evaluate yet). But this does not change best practice and should have no affect on pulling back anything from databases on to forms.
Children
No Data