if (!(object instanceof ACTION)) {
continue;
}
String storagePath = getStoragePath(getEntity().getWorkflow().getPath());
ACTION action = (ACTION) object;
String actionName = action.getName();
if (engineType == EngineType.OOZIE && actionName.equals("user-oozie-workflow")) {
action.getSubWorkflow().setAppPath(storagePath);
} else if (engineType == EngineType.PIG && actionName.equals("user-pig-job")) {
decoratePIGAction(cluster, process, processWorkflow, storagePath, action.getPig());
}
}
marshal(cluster, wfApp, wfPath);
}