boolean preCond) throws Exception {
List<WorkflowProcessor> subProcessors = new Vector<WorkflowProcessor>();
List<WorkflowCondition> conditions = preCond ? workflow.getPreConditions()
: workflow.getPostConditions();
for (WorkflowCondition cond : conditions) {
ParentChildWorkflow condWorkflow = new ParentChildWorkflow(new Graph());
condWorkflow.getGraph().setExecutionType("condition");
condWorkflow.getGraph().setCond(cond);
subProcessors.add(buildProcessor(instanceId, condWorkflow,
modelToProcessorMap, preCond));
}
WorkflowProcessor wp = buildProcessor(instanceId, workflow, workflow
.getGraph().isCondition(), modelToProcessorMap);