public void submitted(Location location, Object workflowObject, ResourceID resourceID) {
//LOG.debug("location: " + location);
//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);