[jboss-user] [JBoss jBPM] - can't update or delete variables
dfrenkiel
do-not-reply at jboss.com
Sun Sep 16 13:41:17 EDT 2007
hello.
i can successfully create process variables but i can't update or delete them.
i have hibernate logging sql queries and it does nothing with new or deleted variables.
here's some code where i'm trying to delete a variable called "phoneNumber"
after running this code the process instance still has the variable.
=======================
ProcessInstance processInstance = jbpmContext.loadProcessInstanceForUpdate(8);
ContextInstance contextInstance = processInstance.getContextInstance();
contextInstance.deleteVariable("phoneNumber");
jbpmContext.save(processInstance);
jbpmContext.close();
=======================
the result is the same if i try to update the variable - it remains unchanged.
is there something else i need to do to enable variable updates and deletes?
thanks very much for any assistance.
david f.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084827#4084827
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084827
More information about the jboss-user
mailing list