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
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”).
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:
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.
When you perform the REST call to get the task list I assume you get an array with all tasks information including task id. So I don’t understand why you are doing this SQL query directly on the database?
I would recommend to take a look at request performed by Bonita BPM Portal and use the same in your web application.
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.
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.
If I remember correctly, to retrieve tasks that can be performed by current logged in user Bonita BPM Portal call an Engine command. Command is a set of Engine API calls group together and run on server side.
That helps the Portal to guaranty a fast display of user task list. Such operation is a little bit complex due to usage of both Actors and Filters.
To build the URL to task forms I recommend to take a look at the official documentation page about building tasks URL .
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.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.