How to call forms of Bonita in any web application?

1
0
-1

Hi, I need to show the forms of bonita on click of swim lane from our web application? Is it possible? If not, what will be the approach to get the forms in web application?

Regards Sabina

Comments

Submitted by Sean McP on Tue, 06/09/2015 - 07:15

can you explain a bit more?

Submitted by maharjansb on Tue, 06/09/2015 - 11:12

Actually, we need to extract the form of bonita to our project on click of any activities? Is it possible?

Submitted by Sean McP on Tue, 06/09/2015 - 11:47

Still not clear...

I'm going to guess here...

  1. You have a picture of your process,
  2. You display it on the screen,
  3. User clicks on a Human task and a case starts

If this is not the case, describe fully what you want.

Submitted by maharjansb on Tue, 06/09/2015 - 13:27
  1. Yes we have list of activities.
  2. Each activity has set of processes
  3. On click of any process, we need to bring the form from bonita
1 answer

1
0
-1

Yes it's possible.

Every task and process instantiation page has a URL. Tasks only exist if they have been created in the process flow. Process instantiation pages exist for any process that is defined AND has an instantiation form and contract defined.

You need to work out what the URL is that calls the task or process. The URL typically contains task ID or process definition ID in the path, so you need to find a way of getting those. The JAVA API (see the javadoc pages) or the REST api both give you all the info you need.

One way I have done this is to define a bonita application page using the groovy template approach, and call THAT from the external app. The bonita page can determine the path needed and do a redirect to the task or process.

Another way is not to use the Bonita forms at all, but write your own form and push the required contract into bonita. Here again: you need to determine the URL and contract structure, but it's easily done using the likes of chrome dev tools or firebug.

Notifications