public OActivity newInstance(Activity src) {
return new OThrow(_context.getOProcess(), _context.getCurrent());
}
public void compile(OActivity output, Activity src) {
ThrowActivity throwDef = (ThrowActivity)src;
OThrow othrow = (OThrow) output;
if (throwDef.getFaultName() == null)
throw new CompilationException(__cmsgs.errThrowMustDefineFaultName());
othrow.faultName = throwDef.getFaultName();
if(throwDef.getFaultVariable() != null)
othrow.faultVariable = _context.resolveVariable(throwDef.getFaultVariable());
}