¿Is it possible to create a send button in a personal web page as the send button in bonita forms?
Hi,
I'm creating a web pages , and in this page there are a form , so i don't want to use the bonita forms only i want to use the workflow with his Human Tasks and his service tasks and so on.Now i have my form in my personal page and what i want to do is , when the user has pressed the button, i want that the flow continue to the next step, as similar of the bonita forms.The idea is , to use the bonita workflow but without forms, taking the bonita workflow advantage
Regards
In your web page, you will need to make sure that the submit button call the proper REST API to instantiate the process (/API/bpm/process/
/instantiation) or execute the task (/API/bpm/userTask//execution). Basically you will just do exactly the same as what Bonita BPM forms do (you can check that using the developer console of your web browser). Checkout documentation of REST API to see all available API.
Note that you will need to make sure that your user has a valid session. One option would be to use Single Sign On available in Bonita BPM Subscription edition.
To be able to perform the task from Bonita BPM Portal, make sure that you configure process and tasks forms to use "External URL" (default option is "UI designer").
Comments
Thanks for your reply ,
I will explain you with other way ..
I have created a personal web pages :
1)When the user has been logged with his username and password , in my personal database . then accesses to page that contains all tasks for this user.
In order to list, all the tasks that users have, i have created a code that allow me to consult the API REST .
One time that i have listings all tasks, what i done is create a simple link that allow me to access to the form of "HumanTask" like this:
echo "<a href='http://localhost:8080/bonita/portal/homepage#?id=$AIID&_p=performTask&_pf=1' target='_blank'>".$NomTasca."</a>";
Now is working but i think that not is the best way in order to do what i want to do.
Analizing the previous code, In order to retrieve the "id", i have created a mysql query and i have retrieved this code in the "Flownode_instance", for the user that has logged sesion.
Regards
Hi Antoine,
In order to improve the code ,i will review the part of code that allow me retrieve the task information for every user(json), and i will catch the ActivityInstanceId, i think that i will not have any problem for do this.
But my question was :
If you have any other way , in order to create a link that allow me to access to form of HumanTask .
I was reviewed all information in Bonita Documentation, but didn't work, and now what i do is to use the url that i get in address bar when i deploy the workflow, and i modified it in order to work .
And now what i want to know , is if you know any other way in order to do this.
regards.
Hi Antoine,
In order to improve the code ,i will review the part of code that allow me retrieve the task information for every user(json), and i will catch the ActivityInstanceId, i think that i will not have any problem for do this.
But my question was :
If you have any other way , in order to create a link that allow me to access to form of HumanTask .
I was reviewed all information in Bonita Documentation, but didn't work, and now what i do is to use the url that i get in address bar when i deploy the workflow, and i modified it in order to work .
And now what i want to know , is if you know any other way in order to do this.
regards.
But what i want is,create a button that as the same button that are there in bonita forms. I don't want to use the humantask forms , because i want to use my personal forms but I want to create a button that does the same thing that makes the button on the forms of HumanTasks.
I hope that you understand me.
Comments
Somebody have any idea?