Hello Experts,
Kindly help me to understand below Queries.
1: How can we get output from a SubProcess triggered through StartProcess Smart service in a process model.
2: Can we say that a!startProcess() smart function is replica of Start Process Smart Service and onSuccess attribute of a!startProcess() can be used to get the output from the called process.
Discussion posts and replies are publicly visible
In the start process node, you can add an output where you use the value "ac!ProcessInfo.pv." & the PV name from the subprocess, to save to a PV in the calling process. The value will be set to whatever value the PV has when chaining is first broken in the subprocess, so you need to take that into account.
The smart service function is either very similar or uses the same back-end functionality (not sure which), and its output works the same way.
Thanks for the clarification mike,
So if my understanding is correct then AC!ProcessInfo.pv will get the value of process variable from the called process to the main(calling Process), which we can store in the process variable of the main process.?
Unknown said:AC!ProcessInfo.pv will get the value of process variable
you'd need to do a separate one for every PV in the subprocess you want to save back into the parent. Such as if the subprocess has pv!userName, in the parent you'd reference this by ac!ProcessInfo.pv.userName, and so on.