Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Sep 4, 2012
1 parent 90f717a commit 96b1f78
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -234,10 +234,10 @@ public static Workflow getWorkflow(Resource resource) throws WorkflowException {
}
WorkflowBuilder builder = new WorkflowBuilder();
if (resource.getRealm().getRepository().existsNode(workflowSchema)) {
String targetEnv = resource.getYanel().getTargetEnvironment();
InputStream stream = resource.getRealm().getRepository().getNode(workflowSchema).getInputStream();
// TODO: Cache result of workflow builder for performance reasons
return builder.buildWorkflow(stream, targetEnv);
String targetEnv = resource.getYanel().getTargetEnvironment();
InputStream stream = resource.getRealm().getRepository().getNode(workflowSchema).getInputStream();
// TODO: Cache result of workflow builder for performance reasons
return builder.buildWorkflow(stream, targetEnv);
} else {
throw new WorkflowException("No such workflow instance '" + workflowSchema + "' within repository: " + resource.getRealm().getRepository() + " (configured within resource config with request path: " + resource.getPath() + ")");
}
Expand Down

0 comments on commit 96b1f78

Please sign in to comment.