// TODO Auto-generated method stub
for(Step s : workflow.getSteps()){
//visit each step in the workflow
Pair<GraphObject,LoniEnvironment> step = stepVisitor.visit(s, new LoniContext());
//add the returned environment to the pipeline environment.
le.addEnvironment(step.getElem2());
//add the returned graphobject to the pipeline modulegroup
moduleGroup.getModules().add(step.getElem1());
//add the step's y value to the running sum of y values.
totalY += s.getPosition().getFromTop();
//update furthest left position