[jboss-user] [JBoss jBPM] - JBPM Context variable lifecycle

ngeadah do-not-reply at jboss.com
Wed Feb 28 14:15:53 EST 2007


I use the Seam annotations to launch a JBPM process and outject to the BUSINESS_PROCESS context. Everything works great but I find that the outjected variable gets "removed" from JBPM at some indeterminate later time. For example, after the process has been launched (and is in a wait-state), the following code which retrieves the task instances for the current actor and tries to retrieve the variable initially outjected: 


  | List<TaskInstance> tasks = context.getTaskMgmtSession().findTaskInstances(actorId);
  | for (TaskInstance task : tasks)
  | {
  |    Object variable = task.getVariable("NAME USED TO OUTJECT");
  |  

returns "variable" correctly as long I this code runs shortly after the process is launched. After a little while, "variable" is null.  I was able to dertmine that my variable starts off looking just fine in JBPM_VARIABLEINSTANCE, but after a while, the row representing this variable is updated WITHOUT a TOKEN_ or PROCESSINSTANCE_ (those two fields, along with a few others become null).

Are there any explanations as to why a variable instance would get updated without an associated process instance?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023889#4023889

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023889



More information about the jboss-user mailing list