sync.setOnError(getOnError(element));
step = sync;
}
else if (sElement.equals("Send"))
{
Send send = new Send(sStepName);
send.setActivity(activity);
String sOutput = XMLUtil.getStringAttr(element, "output");
send.setOutputExpression(m_helper.parse(sOutput, false, activity.getFlow().getPosMap(), null, m_metadata.getGlobalEnvironment()));
String sInterface = XMLUtil.getStringAttr(element, "interface");
if (sInterface != null)
{
send.setInterface(m_metadata.defineInterface(sInterface, send));
}
step = send;
}
else if (sElement.equals("SendReceive"))
{
SendReceive send = new SendReceive(sStepName);
send.setActivity(activity);
String sOutput = XMLUtil.getStringAttr(element, "output");
if (sOutput != null)
{
Object outputExpression = m_helper.parse(sOutput, false, activity.getFlow().getPosMap(), Boolean.TRUE, m_metadata.getGlobalEnvironment());
send.setOutputExpression(outputExpression);
}
String sInterface = XMLUtil.getStringAttr(element, "interface");
if (sInterface != null)
{
send.setInterface(m_metadata.defineInterface(sInterface, send));
}
step = send;
}
else if (sElement.equals("Semaphore"))