Hi Everyone ,
I have a sync start process(Process Id is used to select the Process Model) in my Parent Process.Now I am not able to save the Output. PVs are not shown in pv!.
Discussion posts and replies are publicly visible
Output Variable Configuration:
Process Model Id is configured:
It looks like this is not a configuration issue. I would recommend deleting the PVs from both processes and recreating them. Then save and publish both processes, reopen the main process, and try to configure it again. Let us know if the issue still persists.
The configuration looks fine. Can you open the expression editor besides the ‘Select a Value’ dropdown in the Outputs Section and try to populate the pv from the activity class parameters. You can map the pv within the expression window. Try and share how it goes!
Unfortunately I do not think either of these above answers are correct. The behavior you are seeing is due to the fact that you have "973" as the expression for your process model. When you select a process model by expression, we can not pre-populate the PV dropdown for you. Instead, you need to use ac!processInfo.pv.pvName as an expression in the value column of outputs. This will be evaluated at runtime properly and return your PV successfully. Let me know if this works for you.
I would suggest not using an expression for your process model and instead use the selector to search for the PM name. If you select the Process Model via that method, the dropdowns will populate as you would expect.
Good catch....I missed to notice the 973 there!
Anusuya K Mahalingam If you are configuring process model using expressions then you can try to configure output using the expressions and let me know how it goes. Otherwise try to configure the process model appropriately using constant or selector and then the pv should be available.
Harsha Sharma said: Can you open the expression editor besides the ‘Select a Value’ dropdown in the Outputs Section and try to populate the pv from the activity class parameters. You can map the pv within the expression window. Try and share how it goes!
Here is your answer:
You need to configure the Start Process node to refer directly to the process model, not hardcode a PM ID. Like this, Appian will not be smart enough to know what Process Model you're referring to or to access its available PVs.
(edit to add: I see James Lepone beat me to it - i didn't read down-thread before writing my reply lol)
I would also add: if you MUST populate the process model by expression (or just want to experiment), i would guess your output configuration MIGHT still work if you configure it BY EXPRESSION as I originally suggested way up here. I'd be curious to hear whether it works.
It will work if she configures it as an expression, that would be as designed Mike Schmitt
James Lepone said:configures it as an expression
On a tangential note - I request they add Output variables for Asynchronous Start Process as well. I know PVs would be inaccessible (or pointless as they'd be unchanged from whatever was passed in), but there are times when I'd like to get the Process Instance ID of the launched subprocess (or other things in the pp! domain i guess) and, of course, you just can't, because the config dialog is hidden when the Asynchronous setting is chosen.