I think problem in function getFormTemplateURLFromGuvnor from package org.jbpm.integration.console.shared
public String getFormTemplateURLFromGuvnor(String templateName, String format) {
List<String> allPackages = getPackageNames();
try {
for(String pkg : allPackages) {
String templateURL = getGuvnorProtocol()
+ "://"
+ getGuvnorHost()
+ "/"
+ getGuvnorSubdomain()
+ "/rest/packages/"
+ pkg
+ "/assets/"
+ URLEncoder.encode(templateName, "UTF-8");
URL checkURL = new URL(templateURL);
HttpURLConnection checkConnection = (HttpURLConnection) checkURL.openConnection();
checkConnection.setRequestMethod("GET");
checkConnection.setRequestProperty("Accept", "application/atom+xml");
checkConnection.setConnectTimeout(Integer.parseInt(getGuvnorConnectTimeout()));
checkConnection.setReadTimeout(Integer.parseInt(getGuvnorReadTimeout()));
applyAuth(checkConnection);
checkConnection.connect();
if(checkConnection.getResponseCode() == 200) {
String toReturnURL = getGuvnorProtocol()
+ "://"
+ getGuvnorHost()
+ "/"
+ getGuvnorSubdomain()
+ "/org.drools.guvnor.Guvnor/package/"
+ pkg
+ "/" + getGuvnorSnapshotName() + "/"
+ URLEncoder.encode(templateName, "UTF-8")
+ "." + format;
return toReturnURL;
}
}
} catch (Exception e) {
logger.error("Exception returning template url : " + e.getMessage());
return null;
}
logger.info("Could not find process template url for: " + templateName);
return null;
}
this function iterate all packeges from Guvnor and return the first available form-template with given "templateName"