stepVO.setOwner(step.getOwner());
stepVO.setCaller(step.getCaller());
try
{
StepDescriptor stepDescriptor = workflowDescriptor.getStep(step.getStepId());
if(stepDescriptor != null)
{
stepVO.setName(stepDescriptor.getName());
for (Iterator i = stepDescriptor.getActions().iterator(); i.hasNext();)
stepVO.addAction(createActionVO((ActionDescriptor)i.next()));
}
else
{
throw new SystemException("No stepDescriptor found for " + step);