I have a very simple app so far. There's no database or external process. Just a few interfaces, with one that shows the content of a folder, given a folder ID. I added a button to that interface that should send the user to a form where more files can be uploaded to the folder. I created the below process model, which I'm calling with the below code. When I execute this code, the process stopped at the Document Upload without showing the actual interface. No errors popped up either. What am I doing wrong?
a!buttonWidget( label: "Add Documents", icon: "plus", saveInto: { folderId: ri!folderId, a!startProcessLink( processModel: cons!DSU_PM_DOCUMENT_UPLOAD, ) }, style: "PRIMARY", )
Discussion posts and replies are publicly visible
Hello michael,is your assignment fine?If yes, do you have tasks?Why do you try to archive that with a "startprocesslink" and not via submiting with a follow up form in the original process?
You need to have Activity Chaining enabled from the Start Node to the User Input Task in order for the user to be actually taken to the task when they click the Start Process Link.
Excellent question, Richard! There's no "original process" in this case. It's just an interface with the button. But your question is very relevant to my current situation, as I modified the startProcessLink to add the parameters expected by the process model. But I'm currently getting an error. It all takes me to the starting point, which is to configure that button/startProcessLink correctly in the first place. Below is the error I'm getting as well as the updated buttonWidget. Another key detail is that the error is preventing me from entering the process.
a!buttonWidget( label: "Add Documents", icon: "plus", saveInto: { a!startProcessLink( processModel: cons!DSU_PM_DOCUMENT_UPLOAD, processParameters: { cancel: ri!cancel, folderId: 122184, uploadedFiles: ri!uploadedFiles } ) }, style: "PRIMARY" )
You cannot put a link into a button. Did you try to go through the basic tutorials?
docs.appian.com/.../Tutorials.html
Unknown said:You cannot put a link into a button
Oof, I didn't even notice that issue in the OP - i saw "start process link" and glossed over the rest from there.
i oversaw that. Stefan is absolutly right as usual. as the name says: "processLINK". you can use a button for submitting. You can kind of use a cardlayout for example to archive a button functionality. But first of all:-> where is the interface located? site, record summary, report? -> why do you want to start it from there?
That was the key to getting it working. Thank you!