or vice versa
In jBPM 5.2 you can get it from Task table, if there was any Task already created for your process instance.
Thank you :-)
Is the task table only for Human Tasks or for any kind of task?
1 of 1 people found this helpful
I think the human task Service is a pluggable component and is different from other tasks.
Also I don't think It is the right approach to use Task table to map between session and a process instance.
Suppose if your process definition doesn't contain a User task, how can you retrieve the process instance - session relation ?
From inline of this post https://community.jboss.org/thread/195459?tstart=0
"Another table that has mapping of processes-to-sessions. This table is updated by the worker nodes when a new process is created."
I feel a direct mapping between process instance to session is not available in JBPM and we have to maintain our own.
Hope it helps