⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bpelvisitorsupport.java

📁 jbpm-bpel-1.1.Beta3 JBoss jBPM Starters Kit  是一个综合包
💻 JAVA
字号:
/*
 * JBoss, Home of Professional Open Source
 * Copyright 2005, JBoss Inc., and individual contributors as indicated
 * by the @authors tag.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the JBPM BPEL PUBLIC LICENSE AGREEMENT as
 * published by JBoss Inc.; either version 1.0 of the License, or
 * (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */
package org.jbpm.bpel.graph.def;

import java.util.Iterator;
import java.util.List;

import org.jbpm.bpel.graph.basic.Assign;
import org.jbpm.bpel.graph.basic.Compensate;
import org.jbpm.bpel.graph.basic.Empty;
import org.jbpm.bpel.graph.basic.Exit;
import org.jbpm.bpel.graph.basic.Invoke;
import org.jbpm.bpel.graph.basic.Receive;
import org.jbpm.bpel.graph.basic.Reply;
import org.jbpm.bpel.graph.basic.Rethrow;
import org.jbpm.bpel.graph.basic.Throw;
import org.jbpm.bpel.graph.basic.Validate;
import org.jbpm.bpel.graph.basic.Wait;
import org.jbpm.bpel.graph.scope.Scope;
import org.jbpm.bpel.graph.struct.Flow;
import org.jbpm.bpel.graph.struct.If;
import org.jbpm.bpel.graph.struct.Pick;
import org.jbpm.bpel.graph.struct.Sequence;
import org.jbpm.bpel.graph.struct.While;
import org.jbpm.graph.def.NodeCollection;

/**
 * @author Juan Cantu
 * @version $Revision: 1.2 $ $Date: 2006/10/29 06:13:41 $
 */
public class BpelVisitorSupport implements BpelVisitor {

  public void visit(BpelDefinition process) {
    propagate(process);
  }

  public void visit(Empty empty) {
  }

  public void visit(Receive receive) {
  }

  public void visit(Reply reply) {
  }

  public void visit(Invoke invoke) {
  }

  public void visit(Assign assign) {
  }

  public void visit(Throw throwActivity) {
  }

  public void visit(Exit exit) {
  }

  public void visit(Wait wait) {
  }

  public void visit(Sequence sequence) {
    propagate(sequence);
  }

  public void visit(If ifActivity) {
    propagate(ifActivity);
  }

  public void visit(While whileActivity) {
    propagate(whileActivity);
  }

  public void visit(Pick pick) {
    propagate(pick);
  }

  public void visit(Flow flow) {
    propagate(flow);
  }

  public void visit(Scope scope) {
    propagate(scope);
  }

  public void visit(Compensate compensate) {
  }

  public void visit(Rethrow rethrow) {
  }

  public void visit(Validate validate) {
  }

  protected void propagate(NodeCollection nodeCollection) {
    List nodes = nodeCollection.getNodes();
    if (nodes != null) {
      Iterator nodeIt = nodes.iterator();
      while (nodeIt.hasNext()) {
        Activity activity = (Activity) nodeIt.next();
        activity.accept(this);
      }
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -