ResourceBundle frameworkBundle
= jobBean.getFrameworkBundle();
ResourceBundle connectorBundle
= jobBean.getConnectorBundle(job.getConnectorId());
Status status = Status.FINE;
// Remove persistent id as we're making a clone
job.setPersistenceId(MPersistableEntity.PERSISTANCE_ID_DEFAULT);
io.out.println(getResource().getString(Constants
.RES_PROMPT_UPDATE_JOB_METADATA));
do {
// Print error introduction if needed
if( !status.canProceed() ) {
errorIntroduction(io);
}
// Fill in data from user
if(!fillJob(io, reader, job, connectorBundle, frameworkBundle)) {
return;
}
// Try to create
status = createJobApplyValidations(job);
} while(!status.canProceed());
io.out.println(MessageFormat.format(getResource()
.getString(Constants.RES_CLONE_JOB_SUCCESSFUL), status.name(),
job.getPersistenceId()));
}