JBoss Community

Re: jBPM 4 - Deploy only if ProcessDefinition changed or new

created by rapa in jBPM - View the full discussion

Auch :(

 

so if I get you right the map could contain something like this:

 

{

process.jpdl.xml :: byte[] xmlContent

process.jpdl.jpg :: byte[] jpgContent

}

 

and the following code is not ok anymore..

resourceName = deployment.getResourceNames().iterator().next();

 

And I guess I should check if the resource name extension is "xml"?

 

                for(String currentResName : deployment.getResourceNames()) {
                    if(currentResName.endsWith(".xml")) {
                        resourceName = currentResName;
                        break;
                    }
                }
for(String currentResName : deployment.getResourceNames()) {
    if(currentResName.endsWith(".xml")) {
       resourceName = currentResName;
       break;
    }
}

Reply to this message by going to Community

Start a new discussion in jBPM at Community