Skip to main content
August 19, 2022
Solved

How to get PV! value to the SAIL form

  • August 19, 2022
  • 21 replies
  • 0 views

Hi,
I have a process model where I have a value in a pv! variable.

Now, I would like to send pv! variable value to the SAIL form from where I triggered the Process Model.

Can someone give me a clue to do this.

Thanks in advance.

Best answer by mikes0011

You can't do this with a!startProcessLink(), but you can do it with a!startProcess() (for an unattended process flow).

As far as I've ever seen, the data flow into "startProcessLink" is one-way only.  That's primarily because the usage pattern is that the link takes you *away from* your original interface, and when the process is done, that interface is loaded again from scratch.  

This is different from a!startProcess(), which starts an asynchronous process instance but allows you to stay on your present interface with all values and variables in-tact.

21 replies

csteward
August 19, 2022

You will need to configure this as a Rule Input on your SAIL Interface.  If this is a Start Form, you can define the PV as the Rule Input value in the Process Model Properties -> Process Start Form tab, or on the User Input task's Forms tab for other interfaces.

hari0002Author
August 19, 2022

Hi,

I am using linkField and startProcessLink to call a process model. In the process model I am generating the document using docs from template. I am storing the filename in the pv! variable.

Now, can I get the pv! value into the ri! which is there in my SAIL form?

a!linkField(
label: "",
links: {a!startProcessLink()}
)

mikes0011
mikes0011Answer
Brainy
August 19, 2022

You can't do this with a!startProcessLink(), but you can do it with a!startProcess() (for an unattended process flow).

As far as I've ever seen, the data flow into "startProcessLink" is one-way only.  That's primarily because the usage pattern is that the link takes you *away from* your original interface, and when the process is done, that interface is loaded again from scratch.  

This is different from a!startProcess(), which starts an asynchronous process instance but allows you to stay on your present interface with all values and variables in-tact.

August 19, 2022

To send any value to SAIL Form from the Outside you have to use the Rule input variable in the interface and while configuring the user input task of this interface send your PV as a value in the user input task.and if you want to save the value of the update field of the variable and use that variable as a Save into parameter as well

mikes0011
Brainy
August 19, 2022
I would like to send pv! variable value to the SAIL form from where I triggered the Process Model.

I think I as well as some other folks here are mistaking your question for something else.

Do you mean you're calling a process model from an existing form, like using a!startProcess()?

In that case, you'll want to utilize the "onSuccess" parameter where you can grab PV data and save it back into local variables in your interface.

hari0002Author
August 19, 2022

I am using "startProcessLink". I don't see any "onSuccess" parameter.
Are you suggesting me to use startProcess instead of startProcessLink?

mikes0011
Brainy
August 19, 2022
Are you suggesting me to use startProcess instead of startProcessLink?

If you want to generate a document in the background and get its ID back into your current interface without interruption, then yes, you have to use a!startProcess().  Note this only works if the generation process is 100% unattended and you activity-chain all the way up to where the new DocId is generated.