return model;
}
private JobflowModel build(
JobFlowWorkDescription description) throws IOException {
JobFlowClass jobflow = analyze(description);
if (jobflow == null) {
return null;
}
FlowCompilerConfiguration config = createConfiguration(jobflow);
FlowCompiler compiler = new FlowCompiler(config);
JobflowModel model = compiler.compile(jobflow.getGraph());
File batchOutput = getEnvironment().getConfiguration().getOutputDirectory();
String flowId = compiler.getTargetFlowId();
compiler.buildSources(getPackageLocation(batchOutput, flowId));
compiler.collectSources(getSourceLocation(batchOutput, flowId));