WorkflowJobBean workflow = (WorkflowJobBean) context.getWorkflow();
String user = workflow.getUser();
String group = workflow.getGroup();
String authToken = workflow.getAuthToken();
DagEngine dagEngine = Services.get().get(DagEngineService.class).getDagEngine(user, authToken);
oozieClient = new LocalOozieClient(dagEngine);
}
else {
// TODO we need to add authToken to the WC for the remote case
oozieClient = new OozieClient(oozieUri);
}