Is it advisable to do the following on a task script node? It hasn't given me any problems so far.
Suppose I have two variables pv!variable1 and pv!variable 2
In my first custom output I have 1+1 saved in my pv!variable1and in my second output I have pv!variable1 + 5 saved in my pv!variable2 . When using the two variables in my outputs, could there be a problem that it does not finish saving or executing correctly?, assuming that it could be a more complex rule, or a query in my first output.
My specific question is whether these outputs are executed in sequence, always waiting for the first one for the second to begin.Is there any certainty about the order of execution of the inputs and outputs of a script task?
Discussion posts and replies are publicly visible
Hi dylanarreola ,
In Appian documentation AFAIK, there is nowhere mentioned that the Order Of the Output/input will be in the given order. So for this use case, I would suggest to use, input node to save 1+1 and use the ac! and add 5 and save in pv!variable2 and If you want pv!variable1 to be used anywhere in the process later, then save the value 1+1 into the pv!variable1 in inputs tab
I just couldn't find any documentation on this topic, thanks for the recommendation. I usually do it that way, but sometimes when reducing the number of script task nodes I find myself in this situation, where the same pv is called in several outputs.
Thank you very much for your comment and suggestion!
Hi dylanarreola Please refer the note on this page. Only for Input we have the details about the order in execution.
https://docs.appian.com/suite/help/24.3/Process_Node_and_Smart_Service_Properties.htmlThanks!
Hi, Devaprasanth Murugesan Just what I needed, it is clear to me that there is no guarantee on order. I will read more the documentation you shared with me.
Thank you so much!
Inputs before outputs, but for multiple inputs/outputs, there is no order you could rely on.
Thanks for the comment!! it helps me a lot to know that and to affirm this topic.