* @param bundlePath - bundle path
* @return COORDINATORAPP
* @throws FalconException on Error
*/
public COORDINATORAPP createDefaultCoordinator(Cluster cluster, Path bundlePath) throws FalconException {
Process process = getEntity();
if (process == null) {
return null;
}
COORDINATORAPP coord = new COORDINATORAPP();
String coordName = EntityUtil.getWorkflowName(Tag.DEFAULT, process).toString();
Path coordPath = getCoordPath(bundlePath, coordName);
// coord attributes
initializeCoordAttributes(cluster, process, coord, coordName);
CONTROLS controls = initializeControls(process); // controls
coord.setControls(controls);
// Configuration
Map<String, String> props = createCoordDefaultConfiguration(cluster, coordPath, coordName);
initializeInputPaths(cluster, process, coord, props); // inputs
initializeOutputPaths(cluster, process, coord, props); // outputs
Workflow processWorkflow = process.getWorkflow();
props.put("userWorkflowEngine", processWorkflow.getEngine().value());
// create parent wf
createWorkflow(cluster, process, processWorkflow, coordName, coordPath);