[jboss-user] [jBPM] New message: "Re: Process definition deployment"
Ronald van Kuijk
do-not-reply at jboss.com
Sun Jan 24 14:32:29 EST 2010
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
More information about the jboss-user
mailing list