How can I access, use and "see", in a simple way, task forms of a process from custom application web pages?

1
0
-1

Dear All,

I have maybe a simple question but up to now I didn't find a clear answer.
This is the problem. I am working to a simple web application composed by some customized pages. In one of this pages I "go" to a simple process (using a "link" and the parameter "type" set to "process instantiation form"). The instantiation form is opened inside the application (I mean, with the same layout of my customized pages i.e. with a simple navigation bar in the header of the page and nothing else except the form). I use the instantiation form to "start the process" and to give to the process some parameters (that I want to use to make a query and show to the user data retrieved). The process (at the moment) has only ONE human task. That when the task start I am redirected to the Bonita portal. In the portal, I can activate the task and have a look of the corresponding form (that I would like to use to show to users the result of the query). However, my PROBLEM is that I would like to "see" the task form "inside" my application. I mean, with the same path and/or at least, with the same simple layout. In other words: NOT in or by the Bonita portal. Is there a SIMPLE way to reach this goal? Which the way that I should follow to have this result? Any (detailed) suggestion is welcome. Please, take into consideration that I am a beginner user not so expert of programming languages.

Many thanks,
m.

1 answer

1
0
-1

Hi,

When you submit the instantiation form, you send a request to the Engine to start the process with some data. As soon as the Engine get the request it creates a new process instance and answer with the process instance id. So the Engine answer to the request before it even start executing the process and have no clue that the first step might need to be performed by the user who submit the instantiation form. This is why, on the Submit button in the instantiation form you can define the URL to load when the process has been successfully instantiated. I assume that your current value is /bonita so it explains why the Portal task list is displayed.

A solution to change this behavior is to add to your form a custom widget. This widget will wait for the instantiation request response and then poll the Engine asking for a task for current user in the newly created instance. If a task is found it will assign it to the current user and display the form.

Notifications