Tihomir Surdilovic [
http://community.jboss.org/people/tsurdilovic] created the discussion
"Re: How to delete existing BPMN processes from the guvnor repository"
To view the discussion, visit:
http://community.jboss.org/message/629693#629693
--------------------------------------------------------------
Hi you can see some specific examples here:
https://github.com/tsurdilo/process-designer/blob/master/src/main/java/co...
https://github.com/tsurdilo/process-designer/blob/master/src/main/java/co...
and here:
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-gwt/jbpm-gwt-shared/s...
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-gwt/jbpm-gwt-shared/s...
For deleting assets here is an example:
String deleteURL = ExternalInfo.getExternalProtocol(profile)
+ "://"
+ ExternalInfo.getExternalHost(profile)
+ "/"
+ profile.getExternalLoadURLSubdomain().substring(0,
profile.getExternalLoadURLSubdomain().indexOf("/"))
+ "/rest/packages/" + packageName + "/assets/" +
assetName
+ assetExt;
URL deleteAssetURL = new URL(deleteURL);
HttpURLConnection deleteConnection = (HttpURLConnection) deleteAssetURL
.openConnection();
applyAuth(profile, deleteConnection);
deleteConnection.setRequestMethod("DELETE");
deleteConnection.connect();
_logger.info("delete connection response code: " +
deleteConnection.getResponseCode());
If have set up authentication in Guvnor, the applyAuth method sets the Basic Authorization
header with the encided username and password.
Hope this helps.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/629693#629693]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]