cancel
Showing results for 
Search instead for 
Did you mean: 

Viewing process variables in activiti explorer

einszwo
Champ in-the-making
Champ in-the-making
Hi all,

I`m new to activiti.
I have a simple business process which is integrated and executed by my own application.
I try to view active and already executed (finished) process instances via the activiti explorer.
Of course the avtiviti explorer and also my own application point to the same database.

I`m able to view running process instances via the a administration tab in the activity explorer. I see at which task the process is waiting for user input at the moment and also all the process vars with its values.

I'm also able to view completed process instances and who did which task in the process but no process variables.
Its very interesting which values for example the person who claimed the task added to the process.

In my own application I add process variables with code like this.

{code}
Map<String, Object> processValues = new HashMap<String, Object>();
processValues.put("accepted", "true");
….
taskService.complete(task.getId(), processValues);
….
{code}

I dont understand why they are shown in running but not in completed process instances in activiti explorer.

Any idea?

Best regards,

Markus
8 REPLIES 8

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Markus,
activiti stores runtime variables in the runtime tables.
When you are looking for variables (and their changes - depends on the history level) for already completed processes use history tables.

Regards
Martin

einszwo
Champ in-the-making
Champ in-the-making
Hey Martin,

I understand this concept and my process vars are stored in the ACT_HI_VARINST Table.
But my question is why are they not shown in completed process instance part of activity explorer (Administration part)?

einszwo
Champ in-the-making
Champ in-the-making
Ok I try to to change my question.

Is it possible to view process values of already executed process instances (completed) in activiti explorer.
The processes are executed in my own application but it points to the same db as the activiti explorer.

trademak
Star Contributor
Star Contributor
Yes, in the admin section of the Explorer completed process instances can be viewed. If the process variables are not using primitive types, but Java class types there might be a classpath issue.

Best regards,

einszwo
Champ in-the-making
Champ in-the-making
Hey ,

what do you mean with class path issue. How can I show process variables which type is one of my domain objects in activiti explorer.
Must the explorer know about this java class? Is there some kind of tutorial or guide ?

Best regards

jbarrez
Star Contributor
Star Contributor
> what do you mean with class path issue.

It means the classes of the variable type need to be on the classpath (ie the jar needs to be in the /lib or similar).

einszwo
Champ in-the-making
Champ in-the-making
Hey,

For active project instances it works perfectly. I am able to view process variables of complex java types.

Unfortunately I am not able to view the process variables of finished process instances. No error occurs. There is only a message that no variables exists for this process instance. Could it be a bug in the explorer?

Best regards

jbarrez
Star Contributor
Star Contributor
Yes, it could very well be. Could you check if there the entries are in your database for the completed process instance?