Login to bonita Portal with certain user with new parameters in url
I have an application that need to communicate with Bonita through the REST API. I need to login to bonita Portal with certain user with new parameters in url. Here is my url and i can login my Bonita app.
My question is: after login Bonita portal, is there any way i can get token=xxxx in URL and set it as process variable? I need this token in later process step. Any example welcomes!
I update my original answer based on your extra information.
Actually it is possible to use Bonita REST API even in Community Edition of Bonita.
I recommend you read this documentation page that explain how to use the Bonita REST API.
Depending on your use case you might need to create a REST API extension. You can do this also in Community Edition even if it is not currently well documented (I'm working on improving that). You can learn how to create such extension using the Data source REST API extension example.
Based on your extra information here is an update of my original answer: If you managed to automate the login and redirection to a Bonita form you can then define in Bonita form a variable of type "URL parameter" that will be able to capture the information passed in the URL (e.g. the value of your token parameter). You can then make this variable part of the information sent when clicking on the submit button (bind the variable to the submit button) and then capture it in the process instantiation contract and use it in process business variable default value.
Thanks for suggestion. I define in my redirected Bonita form a variable ( name as tokenData, value = token) as of type "URL parameter", that will be able to capture the information passed in the URL (e.g. the value of token parameter). Following is my url to do auto login and redirect to form.
When i clicked this link, i can autologin and redirect to form successfully. I can get process id=6090246829515228480.
But i still can NOT get token=8059573970941793115
After redirected to form page, URL in browser shows /bonita/portal/resource/process/process_name/1.10/content/?id=6090246829515228480
I compared id and token, both variable set up in form are same.( mapping, type are correct). Any hint?