JBoss Community

JBPM 5.1.0.FINAL and variable access

created by Ken Barnes in jBPM - View the full discussion

We have an application in which after we have started the process with some variables, we start and claim a task and access the process instance variables and place them back on the call to complete and this works well.  But what we need is to gain access to the variables of the process before a task has been started and claimed.  When attempting to get process variables when a task has not been started and claimed it appears that the knowledge runtime does not have access to the process instance throwing a null pointer exception on the ProcessInsanceImpl class on the setProcessId function.   All we are attempting to do is view the process instance variable without starting or claiming a task using the HumanTask API. Any Ideas why we are unable to view the variables?

Thanks

Reply to this message by going to Community

Start a new discussion in jBPM at Community