Ferosh,
Locate the GraphSession class in your distribution. There you will find the
implementation for deployment of processdefinitions : public void
deployProcessDefinition(ProcessDefinition processDefinition) {
| String processDefinitionName = processDefinition.getName();
| // if the process definition has a name (process versioning only
applies to named process definitions)
| if (processDefinitionName!=null) {
| // find the current latest process definition
| ProcessDefinition previousLatestVersion =
findLatestProcessDefinition(processDefinitionName);
| // if there is a current latest process definition
| if (previousLatestVersion!=null) {
| // take the next version number
| processDefinition.setVersion( previousLatestVersion.getVersion()+1
);
| } else {
| // start from 1
| processDefinition.setVersion(1);
| }
|
| session.save(processDefinition);
|
| } else {
| throw new JbpmException("process definition does not have a name");
| }
| }
|
|
Regards,
Koen
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923542#3923542
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923542
-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user