forbidParameter(failureCode, "failure code");
forbidParameter(failureReason, "failure reason");
}
}
if (InitTask.class.isAssignableFrom(taskClass)) {
InitTask task = (InitTask) resultTask;
String uri1 = taskMetadata.getInitMessageNamespaceURI();
if (uri1 != null)
task.setInitMessageNamespaceURI(URI.create(uri1));
String soap = taskMetadata.getInitOperationSOAPAction();
if (soap != null)
task.setInitOperationSOAPAction(soap);
String uri2 = taskMetadata.getProcessEndpoint();
if (uri2 != null)
task.setProcessEndpoint(URI.create(uri2));
}
if (IProcessBoundTask.class.isAssignableFrom(taskClass)) {
if (taskMetadata.xgetProcessId() != null && processID != null)
((IProcessBoundTask) resultTask).setProcessID(processID);
}