Unable to get button on app page to start process or open Instantiation Form

1
0
-1

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?

Thanks!

1 answer

1
0
-1
This one is the BEST answer!

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.

Comments

Submitted by cmyers on Fri, 11/04/2016 - 18:23

That worked! Thank you so much!

Submitted by FatmaGh on Thu, 09/10/2020 - 12:39

could you please share the solution for this issue ! I want a clear steps from the beginning to the end ! Im using a buttom not a link button , what to chose in the field related to that widget (Action , Data sent in click ect...)

regards!

Notifications