05-17-2013 01:32 PM
Deployment deployment = createDeployment().addClasspathResource(resource).deploy();
String resourceName = "test";
InputStream inputStream = ReflectUtil.getResourceAsStream(resource);
byte[] bytes = IoUtil.readInputStream(inputStream, resourceName);
Deployment deployment = deploy((DeploymentBuilderImpl) createDeployment()
.addString(resourceName, definition.trim()));
resource
is the same in both cases. To be honest I was already pretty close by the time I figured this out having first spent ages investigating how I must have corrupted the String on the wire somehow!
if (isBpmnResource(resourceName)) {
… parse the resource etc..
}
05-22-2013 05:37 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.