ActivityDeployer ad = ActivityDeployerFactory.getActivityDeployer(activityElement.getName());
Activity act = ad.deploy(activityElement, pick);
try {
ActivityFactory.addMessageEvent(pick, act, partnerLink, portType, operation, variable, correlationList);
} catch (DBSessionException e) {
throw new DeploymentException(e);
}
}
for (Iterator i = element.elementIterator("onAlarm"); i.hasNext();) {
Element onAlarmElt = (Element) i.next();
String forDurationExpression = onAlarmElt.valueOf("@for");
String untilDeadlineExpression = onAlarmElt.valueOf("@until");
String timeExpression = null;
int expressionType = 0;
if (forDurationExpression != null) {
timeExpression = forDurationExpression;
expressionType = AlarmEvent.DURATION_EXPR;
} else if (untilDeadlineExpression != null) {
timeExpression = untilDeadlineExpression;
expressionType = AlarmEvent.DEADLINE_EXPR;
}
Element activityElement = getActivityElement(onAlarmElt);
ActivityDeployer ad = ActivityDeployerFactory.getActivityDeployer(activityElement.getName());
Activity act = ad.deploy(activityElement, pick);
try {
ActivityFactory.addAlarmEvent(pick, act, timeExpression, expressionType);
} catch (DBSessionException e) {
throw new DeploymentException(e);
}
}
processChildren = false;
}