cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying process instance information in Activtit Probe

mproch
Champ in-the-making
Champ in-the-making
Currently there is no way of showing process instances for given process definition in UI.

I made new tab in Activiti Probe, providing this functionality. In left menu there is process definitions list (as in Database tab). When one clicks on process definition table with basic process instance info is displayed.
It is also possible to display process diagram with current activities highlighted. I think quite many users would like this feature - it's present e.g. in JBPM.

Changes involved:
- activiti-webapp-probe & activiti-webapp - standard code displaying new table
- activiti-engine - small change to ProcessDiagramGenerator & ProcessDiagramCanvas, to highlight selected activities.
- activiti-webapp-rest - two new webscripts:
  - process-instances - using processInstanceQuery to get instances, it's possible to query by businessKey and processDefinitionId - so fairly standard thing I think
  - processInstance/{processInstanceId}/diagram - to display current activities on process diagram. This dynamically generates diagram, based on deployed ProcessDefinitionEntity

I decided to implement this stuff myself, as I'm showing Activiti on Warsaw JUG meeting next week - there will be comparison with IBM tools - so I thought that without any way of running instances I wouldn't make good impression Smiley Wink
Now, I'd like to ask if there are any plans for such functionality - couldn't find it in roadmap. I think it would be good to include it in Activiti code base.

maciek
14 REPLIES 14

jbarrez
Star Contributor
Star Contributor
@Maciek: the history is always kept up to date with the runtime.
You can base your queries on the historicProcessInstance. Note that this will not work when people lower the history level to 'none', but thats shouldnt be a problem.

mproch
Champ in-the-making
Champ in-the-making
I made corrections Joram and Erik asked for, also adjusted displaying process definition version to look like in Explorer

jherryft
Champ in-the-making
Champ in-the-making
When will this functionnality be released? I don't see it in the roadmap.

Thanks!

mproch
Champ in-the-making
Champ in-the-making
Hi,
it's already released in Activiti 5.2. But I was too lazy/overworked to document it - sorry 😕 User guide will be updated in upcoming release

jherryft
Champ in-the-making
Champ in-the-making
Oh yes, I was with 5.1 version.
It's really great but an "autorefresh" feature would be awesome so we could follow the process progress in live! This is usefull when working with serviceTask.
Thank you for this feature anyway!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.