[jbpm-users] [JBoss jBPM] - Re: Advices needed on process definitions deployment strateg

rams.rapo do-not-reply at jboss.com
Thu Jul 23 15:31:53 EDT 2009


This is how we are working around for this issue.. 


  | You can get the list of process definitions deployed with given process def name.. 
  | 
  | List<ProcessDefinition> processDefList = repositoryService.createProcessDefinitionQuery()
  |                 .processDefinitionName(processDefName)
  |                 .orderDesc(ProcessDefinitionQuery.PROPERTY_VERSION)
  |                 .page(0, 1).list();
  | 
  | loop through it to get highest version..
  | 
  | Long version = processDefList.get(0).getVersion()
  | 
  | now compare above version with a  property file having process definition and version number as key value pair.
  | 
  | If they match, don't do anything, else go ahead and update deployment. 
  | 
  | 

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

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


More information about the jbpm-users mailing list