I have a very basic question:What is difference between passing an input data vs output data in a script task? Or perhaps an example or a scenario where both can be used? Thanks in advance
Discussion posts and replies are publicly visible
Not a huge difference.
I use it mostly to reduce the amount of script tasks in a process, more specifically when I want to store 2 PVs but need the output of 1 PV in order to calculate the 2nd PV. In the Outputs tab, you can access the data from the input by using the ac! notation (Activity Class Parameter).
docs.appian.com/.../Process_and_Report_Data.html
Hope this helps!
Adding to what Mathieu Drouin already explained, it is important to understand that all assignments in the input are evaluated in no specific order, but before any assignments in the output. Assignments in the output also evaluate in no specific order.
Apart from what has already been explained, please know that you cannot use any input variable to derive the value of another input, and the same goes for the output.