AnsweredAssumed Answered

BpmnDeployer - 'incorrect' resourceName.

Question asked by gwt.inter on Aug 17, 2011
Latest reply on Aug 26, 2011 by jbarrez
Hi All,

please consider to add WARN message to org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.

To be more concrete (version 5.7, line 65-…):

…  
if (resourceName.endsWith(BPMN_RESOURCE_SUFFIX)) {
        ResourceEntity resource = resources.get(resourceName);
        byte[] bytes = resource.getBytes();
        ByteArrayInputStream inputStream = new ByteArrayInputStream(bytes);

}
else {
   LOG.warn("You need to provide resource name that ends with  " + BPMN_RESOURCE_SUFFIX + " Resource " + resourceName + " is not processed.");
}
       

Or at least think about update of javaDoc at org.activiti.engine.repository.DeploymentBuilder.addInputStream(String, InputStream).

You can save quite a lot of time (I believe) to many activiti users (http://forums.activiti.org/en/search.php?keywords=addInputStream).

Thanks.

Outcomes