-
1. Re: Changes to Task object not reflected in DB
hashir Apr 19, 2007 2:07 AM (in response to hashir)My fault :). The userid was null & jbpm correctly updated DB with null.
-
2. Re: Changes to Task object not reflected in DB
zhanglikui888 Jun 1, 2008 12:27 PM (in response to hashir)mmmmm
-
3. Re: Changes to Task object not reflected in DB
zhanglikui888 Jun 1, 2008 12:30 PM (in response to hashir)I have the same problem,the below code is the detail:
JbpmConfiguration config=JbpmConfiguration.getInstance();
JbpmContext jbpmContext=config.createJbpmContext();
//Session session=jbpmContext.getSessionFactory().openSession();
//Transaction trans=session.beginTransaction();
ProcessDefinition pd=jbpmContext.getGraphSession().findLatestProcessDefinition("baoxiao");
//ProcessInstance pi=pd.createProcessInstance();
ProcessInstance pi= new ProcessInstance(pd);
pi.getContextInstance().setVariable(Constants.ISSUE_USER, Constants.userName);
TaskInstance ti=pi.getTaskMgmtInstance().createStartTaskInstance();
ti.setVariable("baoxiaoId", 6);//baoxiao.getBaoxiaoId());
ti.end();
the log is follow:
2008-06-01 17:26:43,906 [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog]
[WARN] Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks ==
2008-06-01 17:26:47,421 [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog]
[WARN] Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks == -
4. Re: Changes to Task object not reflected in DB
kukeltje Jun 1, 2008 1:56 PM (in response to hashir)those are WARNings, not errors, furthermore your 'problem' is totally different. Thirdly, you do not mention what your 'problem' is. is it the same as the subject? Forth, You post partial code (or your code is incomplete) since you do not close the context anywhere, nor mention that it is done somewhere.