User development,

A new message was posted in the thread "Process definition deployment":

http://community.jboss.org/message/521943#521943

Author  : Ronald van Kuijk
Profile : http://community.jboss.org/people/kukeltje

Message:
--------------------------------------------------------------
user the RepositoryService to create a  ProcessDefinitionQuery and use that to 
retrieve the infor from the database. Compare that with the definition you 
have. Something like this.... (partly correct, partly pseudocode, partly...  )
 
    List<ProcessDefinition> processDefinitions = 
repositoryService.createProcessDefinitionQuery()
      .processDefinitionKey("nuclear_fusion")
      .orderDesc(ProcessDefinitionQuery.PROPERTY_VERSION)
      .list();
 
   NewDeployment newDeployment= 
repositoryService.createDeployment.addResourceFromString("xmlstring.jpdl.xml", 
jpdlXmlString)
 
   if (processDefinitions.get(0).getVersion()) < 
newDeployment.getProcessDefinitionVersion("nuclear_fusion") {
      newDeployment.deploy()
   } else {
       //latest version is active
   }

--------------------------------------------------------------

To reply to this message visit the message page: 
http://community.jboss.org/message/521943#521943


_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to