new Object[]{assignment.getName()});
}
if (fork.getConcurrentCount() == 1)
{
Activity activity = fork.getConcurrent(0);
if (activity.getStep(0) instanceof Timeout)
{
activity.addStep(new Completion(assignment));
}
if (decision.getBranchCount() > 1)
{
for (int i = 0; i != activity.getStepCount(); ++i)
{
assignment.getActivity().addStep(activity.getStep(i));
}
return decision;
}
if (decision.getBranch(0).getStepCount() != 0)
{
for (int i = 0; i != activity.getStepCount(); ++i)
{
assignment.getActivity().addStep(activity.getStep(i));
}
activity = decision.getBranch(0);
for (int i = 0; i != activity.getStepCount() - 1; ++i)
{
assignment.getActivity().addStep(activity.getStep(i));
}
}
else
{
for (int i = 0; i != activity.getStepCount() - 1; ++i)
{
assignment.getActivity().addStep(activity.getStep(i));
}
}
return activity.getStep(activity.getStepCount() - 1);
}
assignment.getActivity().addStep(fork);
Join join = new Join(fork);