Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Hello community,
is it possible to set/change the value of a process variable in a scripttask/expression for example when a condition is true other than node output is stored as.
I know how to set a value of a processvariable in the node output, but can it be done in like setting the value of a localvariable?example:if(pv!fruit="Apple",pv!color:"green","")
Kind Regars,
Erik
Discussion posts and replies are publicly visible
No, you cannot achieve this as in your code posted above - process variables will be updated on the data tab, node input or outputs. What is your use case / where are you attempting to run this expression?
Hi Chris,
Thanks for you answer.Now I know that there is no other way, I will use the node outputs in a scripttask to set the variables based on the expression with the condition.
Kind Regards.