Unable to get button on app page to start process or open Instantiation Form
On my app page, I've created a button to start a new order, which should initiate the process by opening the Instantiation form. My page is based off the travel request tutorial. I found some other threads regarding similar issues.
http://community.bonitasoft.com/node/21570 is the one that had the most things to try, but none of them worked for me. I continually get the error "Impossible to retrieve the process definition id value from the URL" on the browser console when I click the button. I cannot get it to work using the processDef variable at all. I even replaced the variable with the correct process ID in the URL, but this didn't work either. I've tried Actions Submit Task, Start Process, POST, and GET with various permutations of the URL or variable. I easily could have fudged them as I am no certain the exact syntax for those fields
One of the solutions came the closest to working was when I changed the Action to GET and made the URL to Call: http://localhost:8080/bonita/portal/form/process/Build%20Process/1.0. According to the Network and TImeline Panes in Chrome, this downloaded the page, but it never displayed either in the current tab or opening a new one.
Additionally, I wonder if this is because working on another issue, I updated the BDM with a new query. Could I need to rebuild my contracts or something or would this be unrelated?
I've struggled with this until I checked back on the getting started tutorial (http://community.bonitasoft.com/video-tutorials/getting-started) and I noticed what I had missed before: viz that the button used in the tutorial example to launch the task is NOT a button but a LINK widget. Once I changed it in my app to match, it all worked like a charm.
That worked! Thank you so much!