public WhileImpl(final TWhile model, final BPELElement parent) { super(Constants._While_QNAME, model, parent); if(this.model.getCondition() != null) { try { this.condition = new BPELBooleanExpressionImpl(this.model.getCondition(), parent); } catch (XPathExpressionException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException(e))); } if((this.model.getCondition().getContent() != null)&& (this.model.getCondition().getContent().size() > 0)) { this.condition.setContent((String)this.model.getCondition().getContent().get(0)); } } try { this.activity = ActivityImpl.analyzeWhileActivity(this.model, this); } catch (final BPELException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("In while " + this.getName() + " => " + e.getMessage(), e))); } }
public RepeatUntilImpl(final TRepeatUntil model, final BPELElementImpl parent) { super(Constants._RepeatUntil_QNAME, model, parent); if(this.model.getCondition() != null) { try { this.condition = new BPELBooleanExpressionImpl(this.model.getCondition(), parent); } catch (XPathExpressionException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException(e))); } if((this.model.getCondition().getContent() != null)&& (this.model.getCondition().getContent().size() > 0)) { this.condition.setContent((String)this.model.getCondition().getContent().get(0)); } } try { this.activity = ActivityImpl.analyzeRepeatUntilActivity(this.model, this); } catch (final BPELException e) { BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException("In repeatUntil " + this.getName() + " => " + e.getMessage(), e))); } }
if((this.model.getCondition().getContent() != null) && (this.model.getCondition().getContent().size() > 0)) { exp.setContent((String)this.model.getCondition().getContent().get(0)); BPELStaticAnalysisImpl.getInstance().addError(new BPELErrorImpl(this, new BPELException(e))); if((elseIf.getCondition().getContent() != null)&& (elseIf.getCondition().getContent().size() > 0)) { expElse.setContent((String)elseIf.getCondition().getContent().get(0));