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
For Outputs, this is the expected configuration of start process mode
Same datatype is passed. Still process variables are not shown.
Can you show the process model you have selected in the SPSS Setup tab (to confirm this is set), the variable list of the selected process model (i.e. The Types of the Variables you are selecting from in ac!processInfo.pv), and the variables of the parent model (i.e. Type of "Response") please?
Anusuya K Mahalingam said:Same datatype is passed.
Are you saying that the data type of "pv!Response" is integer? Because it would need to be that type (specifically) in order for pp!id to show up in your output selection.
I am trying to get the value from pv!
Hi Anusuya in your screenshot the refresh icons are missing which are genrally there on the setup tab. Can you try to delete this start process node and drag a fresh one from the palette to setup this again and see if pv as well as refresh icons are available.
Anusuya K Mahalingam said:I am trying to get the value from pv!
Any return value you hope to directly map from a PV value would need to (Exactly) match in data type with the PV value. However, if you enter a valid expression for the subprocess value, you can access values that don't exactly match 1:1 with the data types in the parent process - this is very useful, but you have to know what you're doing of course or else the result will potentially seem nonsensical.
Are you able to provide screenshots of what I asked for before? That would help pinpoint your issue. If your target process model is selected via an expression, then you must enter the ac!processInfo.pv.myPv as an expression, since we can not populate the PV options when the model to start is selected via expression.
Parent Model
Sync Start Process
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!