public OActivity newInstance(Activity src) { return new OSwitch(_context.getOProcess(), _context.getCurrent()); }
for (Iterator i = oswitch.getCases().iterator(); i.hasNext();) { OSwitch.OCase ocase = (OSwitch.OCase) i.next(); try{ throw new FaultException(oswitch.getOwner().constants.qnSubLanguageExecutionFault, e.getMessage()); for (Iterator<OSwitch.OCase> j = oswitch.getCases().iterator(); j.hasNext(); ) dpe(j.next().activity); return; for (Iterator<OSwitch.OCase> i = oswitch.getCases().iterator(); i.hasNext(); ) { OSwitch.OCase cs = i.next(); if (cs != matchedOCase)
public void compile(OActivity output, Activity src) { OSwitch oswitch = (OSwitch) output; SwitchActivity switchDef = (SwitchActivity)src; for (SwitchActivity.Case ccase : switchDef.getCases()) { OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess()); ocase.activity = _context.compile(ccase.getActivity()); ocase.expression = (ccase.getCondition() == null ? _context.constantExpr(true) : _context.compileExpr(ccase.getCondition())); oswitch.addCase(ocase); } } }
public void compile(OActivity output, Activity src) { OSwitch oswitch = (OSwitch) output; IfActivity switchDef = (IfActivity)src; if (switchDef.getCondition() == null) throw new CompilationException(__cmsgs.errIfWithNoCondition()); boolean first = true; if (switchDef.getActivity() != null) { OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess()); ocase.activity = _context.compile(switchDef.getActivity()); ocase.expression = _context.compileExpr(switchDef.getCondition()); oswitch.addCase(ocase); first = false; } for (IfActivity.Case ccase : switchDef.getCases()) { OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess()); ocase.activity = _context.compile(ccase.getActivity()); ocase.expression = first ? _context.compileExpr(switchDef.getCondition()) : (ccase.getCondition() == null ? _context.constantExpr(true) : _context.compileExpr(ccase.getCondition())); oswitch.addCase(ocase); first = false; } } }
public OActivity newInstance(Activity src) { return new OSwitch(_context.getOProcess(), _context.getCurrent()); }