Examples of Catch


Examples of nexj.core.meta.workflow.Catch

            return "Catch";
         }

         public void exportActivity(Activity activity) throws IOException
         {
            Catch ctch = (Catch)activity;

            if (ctch.getException() != null)
            {
               m_writer.writeAttribute("exception", ctch.getException().getName());
            }

            if (ctch.getLayout() != null)
            {
               m_writer.writeAttribute("layout", ctch.getLayout());
            }

            exporter.exportActivity(activity);
         }
      });
View Full Code Here

Examples of org.eclipse.bpel.model.Catch

        if (result == null) result = caseWSDLElement(link);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.CATCH: {
        Catch catch_ = (Catch)theEObject;
        Object result = caseCatch(catch_);
        if (result == null) result = caseExtensibleElement(catch_);
        if (result == null) result = caseExtensibleElement_1(catch_);
        if (result == null) result = caseWSDLElement(catch_);
        if (result == null) result = defaultCase(theEObject);
View Full Code Here

Examples of org.eclipse.bpel.model.Catch

  }

  protected void faultHandler2XML(Element parentElement, FaultHandler faultHandler) {
    Iterator catches = faultHandler.getCatch().iterator();
    while (catches.hasNext()) {
      Catch _catch = (Catch)catches.next();
      parentElement.appendChild(catch2XML(_catch));
    }
    if (faultHandler.getCatchAll() != null) {   
      parentElement.appendChild(catchAll2XML(faultHandler.getCatchAll()));
    }
View Full Code Here

Examples of org.eclipse.bpel.model.Catch

      for (CtCatch cat : tryBlock.getCatchers()){
        scan(cat);
        ASTNodeData catchData = nodeDataStack.peek();
        if (catchData.activity != null){
          if (!catchData.isCatchAll){
            Catch c = BPELFactory.eINSTANCE.createCatch();
            if (catchData.variable != null)
              c.setFaultVariable(catchData.variable);
            if (catchData.xsdTypeQName != null)
              c.setFaultName(catchData.xsdTypeQName);
            c.setActivity(catchData.activity);
            tryScope.addCatch(c);
          } else {
            CatchAll call = BPELFactory.eINSTANCE.createCatchAll();
            call.setActivity(catchData.activity);
            tryScope.setCatchAll(call);
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Catch

      }
    } else if (this instanceof Bean) {
      Bean node = (Bean) this;
      return "bean " + Strings.getOrElse(node.getRef());
    } else if (this instanceof Catch) {
      Catch node = (Catch) this;
      List exceptions = node.getExceptions();
      if (exceptions != null && exceptions.size() > 0) {
        return "catch " + exceptions;
      } else {
        return "catch " + Expressions.getExpressionOrElse(node.getHandled());
      }
    } else if (this instanceof Choice) {
      return "choice";
    } else if (this instanceof ConvertBody) {
      ConvertBody node = (ConvertBody) this;
      return "convertBody " + Strings.getOrElse(node.getType());
    } else if (this instanceof Enrich) {
      Enrich node = (Enrich) this;
      return "enrich " + Strings.getOrElse(node.getResourceUri());
    } else if (this instanceof Finally) {
      return "finally";
    } else if (this instanceof InOnly) {
      InOnly node = (InOnly) this;
      return "inOnly " + Strings.getOrElse(node.getUri());
    } else if (this instanceof InOut) {
      InOut node = (InOut) this;
      return "inOut " + Strings.getOrElse(node.getUri());
    } else if (this instanceof InterceptSendToEndpoint) {
      InterceptSendToEndpoint node = (InterceptSendToEndpoint) this;
      return "intercept " + Strings.getOrElse(node.getUri());
    } else if (this instanceof Log) {
      Log node = (Log) this;
      return "log " + Strings.getOrElse(node.getLogName());
    } else if (this instanceof Marshal) {
      return "marshal";
    } else if (this instanceof OnException) {
      OnException node = (OnException) this;
      return "on exception " + Strings.getOrElse(node.getExceptions());
    } else if (this instanceof Otherwise) {
      return "otherwise";
    } else if (this instanceof PollEnrich) {
      PollEnrich node = (PollEnrich) this;
      return "poll enrich " + Strings.getOrElse(node.getResourceUri());
    } else if (this instanceof RemoveHeader) {
      RemoveHeader node = (RemoveHeader) this;
      return "remove header " + Strings.getOrElse(node.getHeaderName());
    } else if (this instanceof RemoveProperty) {
      RemoveProperty node = (RemoveProperty) this;
      return "remove property " + Strings.getOrElse(node.getPropertyName());
    } else if (this instanceof Rollback) {
      Rollback node = (Rollback) this;
      return "rollback " + Strings.getOrElse(node.getMessage());
    } else if (this instanceof SetExchangePattern) {
      SetExchangePattern node = (SetExchangePattern) this;
      ExchangePattern pattern = node.getPattern();
      if (pattern == null) {
        return "setExchangePattern";
      } else {
        return "set " + pattern;
      }
    } else if (this instanceof Sort) {
      Sort node = (Sort) this;
      return "sort " + Expressions.getExpressionOrElse(node.getExpression());
    } else if (this instanceof When) {
      When node = (When) this;
      return "when " + Expressions.getExpressionOrElse(node.getExpression());
    } else if (this instanceof Unmarshal) {
      return "unmarshal";
    } else if (this instanceof Try) {
      return "try";
    } else if (this instanceof LoadBalance) {
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Catch

    Try t = new Try();
    ep1.addTargetNode(t);

    Finally fin = new Finally();
    t.addTargetNode(fin);
    Catch c = new Catch();
    t.addTargetNode(c);
    t.addTargetNode(ep2);
    t.addTargetNode(ep3);

    Endpoint e2 = assertOutput(t, 0, Endpoint.class);
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Catch

    public static void addFigureIcons(ImageProvider imageProvider) {
        imageProvider.addIconsForClass(new Endpoint());
        imageProvider.addIconsForClass(new Aggregate());
        imageProvider.addIconsForClass(new AOP());
        imageProvider.addIconsForClass(new Bean());
        imageProvider.addIconsForClass(new Catch());
        imageProvider.addIconsForClass(new Choice());
        imageProvider.addIconsForClass(new ConvertBody());
        imageProvider.addIconsForClass(new Delay());
        imageProvider.addIconsForClass(new DynamicRouter());
        imageProvider.addIconsForClass(new Enrich());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.