¿Is it possible to create a send button in a personal web page as the send button in bonita forms?

1
0
-1

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

Comments

Submitted by claz08 on Tue, 09/29/2015 - 16:55

Somebody have any idea?

1 answer

1
0
-1

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

Submitted by claz08 on Tue, 09/29/2015 - 20:34

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

Submitted by antoine.mottier on Wed, 09/30/2015 - 11:21

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.

Submitted by claz08 on Wed, 09/30/2015 - 16:59

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.

Submitted by claz08 on Tue, 10/06/2015 - 16:13

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.

Submitted by antoine.mottier on Wed, 10/07/2015 - 18:30

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 .

Submitted by claz08 on Thu, 10/08/2015 - 10:18

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.

Notifications