API for track different stages of a process

1
0
-1

Hi there

Am kinda new around here(bonita world). Suppose i have a very simple workflow process ( password renewal application). As below http://tinypic.com/r/14ie9hf/8

Test

Suppose I have a FE application that shows user tasks after logging in. If I am a worker, list (in the form of table) shows all the first human tasks in the figure. If the worker's manager is logged in, the list shows, all the tasks assigned to him/her (second human task in the figure). I got to this stage.

The next stage, I want to achieve is, if the user clicks on one of the tasks on the table, he / she (irrespective of role ) should be shown the stage of the workflow. As in, I would like to show the progress of the workflow ( stage1, stage 2, etc / task1, task2, etc) in the form of a progress bar. I am not worried about the progress bar. I would like to know, how I can get the different stages of a workflow a certain process is in using Bonita API.

I looked all I can. Was unsuccessful.

Any help ?

Thanks in advance, K

2 answers

1
0
-1

This is five years old, but in case someone needs the actual answer:

ProcessAPI processAPI = TenantAPIAccessor.getProcessAPI(session);

processAPI.getArchivedActivityInstances(long sourceProcessInstanceId, int startIndex, int maxResults, ActivityInstanceCriterion criterion);

"Get a paged list of archived activity instances for a process instance."

1
0
-1

Hi Kay,

If I understand well what you want to do, it seems that you want to make sure a user can have an overview of the done tasks of a case of your process.

By default, Bonita Portal displays a default overview case with a timeline, in user view (as you can see on the image below)

Default case overview

You can customize this case overview page in our UI Designer. You can find a tutorial in the documentation explaining how to do it, by exporting the default resource from Bonita Portal and importing it directly in UI Designer for edition.

I hope I answered your question, otherwise feel free to comment it.

Delphine

Notifications