Process Variables in SAIL form

I saw some existing application with existing forms having process variables mentioned as in "pv!some_variable". But, while executing the process which includes the form, there is no exception/error/warning. Shouldn't it be a problem, or did I miss something to check? Any clarification will be a great help.

Thanks in advance

OriginalPostID-261227

  Discussion posts and replies are publicly visible

Parents
  • To add on here - there have been times with PROD maintenance that might require accessing a PV directly from a SAIL form. For example, if you are maintaining an Appian instance that has been in PROD for a long time, there might be forms or expression rules that are called without named parameters (such as rule!testrule(pv!input1, pv!input2) rather than rule!testrule(input1: pv!input1, input2: pv!input2).

    When this happens, adding extra inputs to the expression rule will break any process instances already in PROD, so you can use PV! directly on the SAIL form to access the variable. However, this is not a preferred method of doing it, and as @stefanh mentioned, becomes extremely tedious to maintain in the long-term. Especially for new development / applications not in PROD, the traditional inputs should be the only variables accessed on a form.
Reply
  • To add on here - there have been times with PROD maintenance that might require accessing a PV directly from a SAIL form. For example, if you are maintaining an Appian instance that has been in PROD for a long time, there might be forms or expression rules that are called without named parameters (such as rule!testrule(pv!input1, pv!input2) rather than rule!testrule(input1: pv!input1, input2: pv!input2).

    When this happens, adding extra inputs to the expression rule will break any process instances already in PROD, so you can use PV! directly on the SAIL form to access the variable. However, this is not a preferred method of doing it, and as @stefanh mentioned, becomes extremely tedious to maintain in the long-term. Especially for new development / applications not in PROD, the traditional inputs should be the only variables accessed on a form.
Children
No Data