[jboss-dev-forums] [jBPM Development] - Re: How to delete existing BPMN processes from the guvnor repository
uvijayreddy657
do-not-reply at jboss.com
Sat Oct 1 06:55:45 EDT 2011
uvijayreddy657 [http://community.jboss.org/people/uvijayreddy657] created the discussion
"Re: How to delete existing BPMN processes from the guvnor repository"
To view the discussion, visit: http://community.jboss.org/message/629680#629680
--------------------------------------------------------------
I tried using HttpURLConnection to delete the process using the following code as WebClient is always giving me the UriBuilder error. But it is not deleting the process. Can you please suggest whether this works or not/ any modifactions required for deleting asset
URL url = new URL(guvnorRepoURL
+ "/drools-guvnor/rest/packages/SDS/assets/"
+ asset.getName());
connection = (HttpURLConnection) url.openConnection();
*connection.setRequestMethod("DELETE");*
connection
.setRequestProperty(
"User-Agent",
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16");
connection
.setRequestProperty("Accept",3
"text/html,application/xhtml+xml,application/xml;q=0.9,*;q=0.8");
connection.setRequestProperty("Accept-Language",
"en-us,en;q=0.5");
connection.setRequestProperty("Accept-Encoding",
"gzip,deflate");
connection.setRequestProperty("charset", "UTF-8");
connection.setReadTimeout(5 * 60 * 1000);
connection.connect();
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629680#629680]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111001/5f0246ef/attachment.html
More information about the jboss-dev-forums
mailing list