hello,
(jbpm3.1,postgresql8,java1.5,jboss4.0.3SP1),
i wan't to set a variable in the taskinstance by the call:
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(); JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); // get current hibernate session from the container org.hibernate.Session s = getCurrentSession(); jbpmContext.setSession(s); // this works ProcessInstance processInstance = jbpmContext.loadProcessInstanceForUpdate(piid); // this works Token token = processInstance.findToken(execPath); // this works Collection<TaskInstance> tis = processInstance.getTaskMgmtInstance().getUnfinishedTasks(token); TaskInstance ti = tis.iterator().next(); // this does not work ti.setVariable(key,value);
No connection properties specified - the user must supply JDBC connections
ok solved,
the value was not serializable.
so the error message was confusing.
best regards,
christian