[jboss-user] [JBoss jBPM] - Re: Changes to Task object not reflected in DB
m View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4154892#4154892 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4154892 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Changes to Task object not reflected in DB
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 == View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4154894#4154894 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4154894 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Changes to Task object not reflected in DB
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. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4154896#4154896 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4154896 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Changes to Task object not reflected in DB
My fault :). The userid was null jbpm correctly updated DB with null. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4038719#4038719 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4038719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user