[JBoss-user] [JBoss jBPM] - Re: Can't get value of field property in my ActionHandler

2005-12-07 Thread michaelholtzman
Problem solved (replaced by new problem).

The process instance was being created with the wrong process definition, 
because my process definitions are not being properly versioned when they are 
imported like this:

  | public void initProcessDefinitions() {
  | JbpmSession jbpmSession;
  | // For now, only load up our sample process.
  | String processName = 
example_process.par/processdefinition.xml;
  | 
  | console(Loading process definitions);
  |// begin a transaction on the persistence session
  | jbpmSession = jbpmSessionFactory.openJbpmSession();
  | 
  | console(initProcessDefinitions: Reading xml file);
  | ProcessDefinition definition = 
ProcessDefinition.parseXmlResource(processName);
  | console(initProcessDefinitions: Loaded process definition ' + 
definition.getName()+ ' from xml);
  | 
  | jbpmSession.beginTransaction();
  | 
  |// Save the process definition in the database 
  |console(initProcessDefinitions: Saving to database);
  |jbpmSession.getGraphSession().saveProcessDefinition(definition);
  | 
  |// Commit the transaction
  |console(initProcessDefinitions: Committing);
  |jbpmSession.commitTransaction();
  |
  |// List out the stored process definitions
  |java.util.List defs = 
jbpmSession.getGraphSession().findAllProcessDefinitions();
  |console(Found  + defs.size() +  process definitions in 
database:);
  | for (Iterator it = defs.iterator(); it.hasNext();) {
  | ProcessDefinition def = (ProcessDefinition)it.next();
  | console(Process definition:  + def.getName() +  /  
+ def.getVersion());
  | }
  | 
  |jbpmSession.close();
  |console(initProcessDefinitions: Done);
  | 
  | 

causing this to return the wrong process definition

  | 
launchJbpmSession.getGraphSession().findLatestProcessDefinition(processName);
  | 
  | See http://www.jboss.com/index.html?module=bbop=viewtopict=73631



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3911238#3911238

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911238


---
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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Can't get value of field property in my ActionHandler

2005-12-07 Thread [EMAIL PROTECTED]
Great, thanks for reporting back!

Regards,
Koen

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3911292#3911292

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911292


---
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://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user