//LOG.debug("workflow: " + workflowObject);
//LOG.debug("resourceID: " + resourceID);
Workflow workflow = (Workflow) workflowObject;
RequestAndStatusHandler handler = workflow.getRequestAndStatusHandler();
DocumentRequestBuilder builder = new DocumentRequestBuilder();
try {
handler.buildRequest(builder);
} catch (ActivityIllegalStateException e) {
LOG.error("Exception in converting the workflow to XML", e);
e.printStackTrace();
}
String workflowXML = builder.getXML();
// here update new RP: local workflows
StringBuilder sb = new StringBuilder();
sb.append("<admire:monitorableRequest\n");
sb.append("location=\"");