URL of a Form
I have created a process. Start --> Human Task (with form and DB connector) --> end
I wish to access this form from an email. In short I need a URL for this form. How can I get this? Do I need to create an API, or can I just access the form? I have read a lot of questions regarding this but I am new to Bonita. So I did not quite understand well how to do this.
As Sean said, you have to start the process in the first place. Once the process is started and the human task has been instantiated you can build an url to access the form as described here. However, I'm not sure Bonita allow an anonymous user to access a task form.
Right. I tried to create an URL using the using link. Bit is it not for that particular process Id and activity instance? Whenever we run the project they change. How can we still use the link above? I need a permanent link for the form.
Thanks for the reply. Regarding the questions in your comment - I have made it simpler now. The form URL will be shared manually with someone. I am not getting into sending it via an email. The process should be started when someone clicks on that link shared. So basically I am guessing I need a Rest API or Java. I went through REST documentation but I still do not get how to start implementing it through Studio or Portal?
Not directly is the answer...
From what I'm reading you have this situation
- User receives email (where?)
- User clicks link in email
- Form opens in browser to enable user to do something
- User closes form
Is this correct?
If so then you can't get access to the form direct. You have to actually start the process and allow the process to open the form.
See the following for thoughts...(for Microsoft products)
The minimum you will have to do in the program is:
- REST sign-in, get response
- REST start-Process, get response
- how you get the form - from your example - to open direct in the browser I'm not sure...can someone else help here?
However it might be easier to use an application:
- REST sign-in, get response
- Start Browser with Application Page
- Application Page then starts the process...
Hope this points you in the right direction
Yes you are right in understanding what I want.
user receives an email --> click a link in email --> opens a Form created in Bonitasoft--> data from the form is stored in a DB --> closes the form.
I went through the links you have shared. But they are not related to Bonitasoft. Do I have to create a REST API? Will this enable me to go to the form directly? Without any authentication.
Can you point me to some examples which are similar to this?
Great. Thanks a lot for your comment/ answers. I am looking to develop this as a rest API. But do not see many online resources to help me in this. I am trying to do this through Studio. The REST documentation gives an idea how it will work. Where can I start from the Studio working on this?