[jboss-user] [jBPM] - Re: web-designer. gwt-console. taskform name
Sergey Kornilov
do-not-reply at jboss.com
Fri Apr 26 04:35:01 EDT 2013
Sergey Kornilov [https://community.jboss.org/people/kornilovs] created the discussion
"Re: web-designer. gwt-console. taskform name"
To view the discussion, visit: https://community.jboss.org/message/810483#810483
--------------------------------------------------------------
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"
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/810483#810483]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130426/fdde5780/attachment.html
More information about the jboss-user
mailing list