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);

the following warning occurs:
 No connection properties specified - the user must supply JDBC connections 
after that an exception is thrown by hibernate (Dialect not set ..)

All other jbpm instances  (ContextInstance, ProcessInstance etc) are working 
correctly in the same context.

It seems that there is some problem with the user provided 
Session.

Does anyone know something about that problem?

Thanks and Best Regards,
Christian




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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to