I am trying to pass the document from interface to process model but in process model I am getting blank value in PV.
Steps:
1. uploading document from file upload.
2. On click of submit button try to send the selected doc to process model
3. Process variable is blank even after sending the doc from interface.
Discussion posts and replies are publicly visible
Have you created the appropriate activity class parameter in the data input section of the user interface node?
Not Exactly. After uploading the image it is getting stored in local variable i.e fileData. Can you please elaborate more like how we can do this with activity class parameter?
You cannot "send" a document to a process. In Appian, documents a only uploaded on a submit action. With the exception of portals.
Make that interface the start form of a process, set the submit parameter on the button to true, and you will find your document in the process.
Hi palasha1583
are you using local variable to send to process model? Create rule input in the interface save the document in the rule input. In process model use an iuser input task map the interface in user input task, & In input tab( user input task) map the input value to process variable ( both variables i.e rule input and process variable should be of same type ) then try uploading
Yes, I am using local variable to send the doc to process model. This interface is one section of the page, so if I am going to call the interface from process model then I wouldn't be able to call the process model on page load to render this section. Do we have any other workaround? or can we able to call process model on page load?
Hi palasha1583 ,
Try saving the document to rule input as mentioned by Abhishek. Then create a process variable in process model matching with your rule input name and type. Also make sure you enable the checkbox "Allow the value for the variable to be provided when starting a process" for process variable.