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=bb&op=viewtopic&p=4154894#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...