AnsweredAssumed Answered

Trying to figure which processDefinition a job will execute

Question asked by rgareau on Jul 9, 2012
Latest reply on Jul 16, 2012 by frederikheremans1
Hi, can someone tell me where I can get which process definition a job will execute.

Here is what I do.
I create a JobQuery with the managementService
List<Job> list = managementService.createJobQuery().orderByJobDuedate().asc().list();

But when I look a the individual Job instance in the list I have no way of knowing which process instance is referred by each job.
All I have is
id
duedate
exceptionMessage
executionId
processInstanceId
retries

So when a job is not currently executing executionId and processInstanceId are null! 

So how am I supposed to know which processDefinition it is referencing?

Thanks

Outcomes