[jbpm-commits] JBoss JBPM SVN: r1628 - api/trunk/modules/api/src/main/java/org/jboss/bpm/model.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Jul 14 11:21:45 EDT 2008


Author: thomas.diesler at jboss.com
Date: 2008-07-14 11:21:45 -0400 (Mon, 14 Jul 2008)
New Revision: 1628

Removed:
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractActivity.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEndEvent.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEvent.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlow.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlowObject.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractGateway.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractItermediateEvent.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractProcess.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractStartEvent.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractSubProcess.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractTask.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ComplexGateway.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ErrorResult.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/InclusiveGateway.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ItermediateEvent.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageFlow.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageResult.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ObjectFactory.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ParallelGateway.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SequenceFlow.java
   api/trunk/modules/api/src/main/java/org/jboss/bpm/model/package-info.java
Log:
Seperate JAXB from Impl hirarchy

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractActivity.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractActivity.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractActivity.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * An activity is a generic term for work that a company or organization performs via business processes. 
- * An activity can be atomic or non-atomic (compound). 
- * The types of activities that are a part of a Process Model are: Process, Sub-Process, and Task. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="AbstractActivity")
-abstract class AbstractActivity extends FlowObject implements NamedFlowObject
-{
-  protected String name;
-  
-  /**
-   * Construct an anonymous Activity
-   */
-  public AbstractActivity()
-  {
-  }
-
-  /**
-   * Construct a Activity with a given name
-   */
-  public AbstractActivity(String name)
-  {
-    this.name = name;
-  }
-  
-  /**
-   * Get the name
-   */
-  public String getName()
-  {
-    return name;
-  }
-
-  /**
-   * Set the name. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  @XmlAttribute(required = true)
-  public void setName(String name)
-  {
-    if (this.name != null)
-      throw new IllegalStateException("Cannot rename: " + name);
-
-    this.name = name;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEndEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEndEvent.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEndEvent.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-// $Id$
-
-/**
- * As the name implies, the End Event indicates where a Process will end.
- * 
- * In terms of Sequence Flow, the End Event ends the flow of the Process, and thus, will not have any outgoing Sequence Flow. An End Event can have a specific Result
- * that will appear as a marker within the center of the End Event shape. End Event Results are Message, Error, Compensation, Link, and Multiple.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name = "AbstractEndEvent")
-abstract class AbstractEndEvent extends Event implements NamedFlowObject
-{
-  private String name;
-
-  public AbstractEndEvent()
-  {
-  }
-
-  /**
-   * Construct a Activity with a given name
-   */
-  public AbstractEndEvent(String name)
-  {
-    this.name = name;
-  }
-  
-  /**
-   * Get the name
-   */
-  public String getName()
-  {
-    return name;
-  }
-
-  /**
-   * Set the name. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  @XmlAttribute(required = true)
-  protected void setName(String name)
-  {
-    if (this.name != null)
-      throw new IllegalStateException("Cannot rename: " + name);
-
-    this.name = name;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEvent.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractEvent.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,95 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlType;
-
-
-
-// $Id$
-
-/**
- * An Event is something that “happens” during the course of a business process. 
- * These Events affect the flow of the Process and usually have a cause or an impact.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="AbstractEvent")
-abstract class AbstractEvent extends FlowObject
-{
-  protected ExecutionHandler executionHandler;
-  protected FlowHandler flowHandler;
-  protected SignalHandler signalHandler;
-  
-  /**
-   * Get the ExecutionHandler for this Event
-   */
-  public ExecutionHandler getExecutionHandler()
-  {
-    return executionHandler;
-  }
-  
-  /**
-   * Set the ExecutionHandler for this Event
-   */
-  @XmlElement(name = "execution-handler", required = false)
-  protected void setExecutionHandler(ExecutionHandler executionHandler)
-  {
-    this.executionHandler = executionHandler;
-  }
-  
-  /**
-   * Get the FlowHandler for this Event
-   */
-  public FlowHandler getFlowHandler()
-  {
-    return flowHandler;
-  }
-  
-  /**
-   * Set the FlowHandler for this Event
-   */
-  @XmlElement(name = "flow-handler", required = false)
-  protected void setFlowHandler(FlowHandler flowHandler)
-  {
-    this.flowHandler = flowHandler;
-  }
-  
-  /**
-   * Get the SignalHandler for this Event
-   */
-  public SignalHandler getSignalHandler()
-  {
-    return signalHandler;
-  }
-  
-  /**
-   * Set the SignalHandler for this Event
-   */
-  @XmlElement(name = "signal-handler", required = false)
-  protected void setSignalHandler(SignalHandler signalHandler)
-  {
-    this.signalHandler = signalHandler;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlow.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlow.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlow.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,92 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlType;
-
-// $Id$
-
-/**
- * A Flow is a graphical line connecting two objects in a BPD.
- * 
- * There are two types of Flow: Sequence Flow and Message Flow, each with their own line style. Flow is also used in a generic sense (and lowercase) to describe how
- * Tokens will traverse Sequence Flow from the Start Event to an End Event.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name = "AbstractFlow")
-abstract class AbstractFlow
-{
-  private String name;
-  private String targetName;
-
-  /**
-   * Construct a flow with no target
-   */
-  public AbstractFlow()
-  {
-  }
-
-  /**
-   * Construct a flow with a given target
-   */
-  public AbstractFlow(String targetName)
-  {
-    this.targetName = targetName;
-  }
-
-  /**
-   * Get the optional name
-   */
-  public String getName()
-  {
-    return name;
-  }
-
-  /**
-   * Set the optional name Note, this MUST NOT leak into the public API.
-   */
-  @XmlAttribute(required = false)
-  protected void setName(String name)
-  {
-    this.name = name;
-  }
-
-  /**
-   * Get the target name
-   */
-  public String getTargetName()
-  {
-    return targetName;
-  }
-
-  /**
-   * Set the target name Note, this MUST NOT leak into the public API.
-   */
-  @XmlAttribute(name = "to", required = true)
-  protected void setTargetName(String targetName)
-  {
-    this.targetName = targetName;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlowObject.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlowObject.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractFlowObject.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,50 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A Flow Object is one of the set of following graphical objects: Event, Activity, and Gateway.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name = "AbstractFlowObject")
-abstract class AbstractFlowObject
-{
-  private Process process;
-
-  public Process getProcess()
-  {
-    return process;
-  }
-
-  @XmlTransient
-  public void setProcess(Process process)
-  {
-    this.process = process;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractGateway.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractGateway.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,151 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * Gateways are modelling elements that are used to control how Sequence Flow interact as they converge and diverge within a Process. If the flow does not need to be
- * controlled, then a Gateway is not needed.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name = "AbstractGateway")
-abstract class AbstractGateway extends FlowObject implements NamedFlowObject, MultipleOutFlowSupport, MultipleInFlowSupport
-{
-  private String name;
-  protected ExecutionHandler executionHandler;
-  protected FlowHandler flowHandler;
-  protected SignalHandler signalHandler;
-  
-  @XmlElements( { 
-    @XmlElement(name = "sequence", type = SequenceFlow.class), 
-    @XmlElement(name = "message", type = MessageFlow.class) 
-    })
-  protected List<Flow> outFlows = new ArrayList<Flow>();
-  
-  /**
-   * Construct an anonymous Gateway
-   */
-  public AbstractGateway()
-  {
-  }
-
-  /**
-   * Construct a Activity with a given name
-   */
-  public AbstractGateway(String name)
-  {
-    this.name = name;
-  }
-  
-  /**
-   * Get the name
-   */
-  public String getName()
-  {
-    return name;
-  }
-
-  /**
-   * Set the name. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  @XmlAttribute(required = true)
-  protected void setName(String name)
-  {
-    if (this.name != null)
-      throw new IllegalStateException("Cannot rename: " + name);
-
-    this.name = name;
-  }
-  
-  public List<Flow> getOutFlows()
-  {
-    return outFlows;
-  }
-
-  protected void setOutFlow(List<Flow> outFlow)
-  {
-    this.outFlows = outFlow;
-  }
-
-  /**
-   * Get the ExecutionHandler for this Event
-   */
-  public ExecutionHandler getExecutionHandler()
-  {
-    return executionHandler;
-  }
-  
-  /**
-   * Set the ExecutionHandler for this Event
-   */
-  @XmlElement(name = "execution-handler")
-  protected void setExecutionHandler(ExecutionHandler executionHandler)
-  {
-    this.executionHandler = executionHandler;
-  }
-  
-  /**
-   * Get the FlowHandler for this Event
-   */
-  public FlowHandler getFlowHandler()
-  {
-    return flowHandler;
-  }
-  
-  /**
-   * Set the FlowHandler for this Event
-   */
-  @XmlElement(name = "flow-handler")
-  protected void setFlowHandler(FlowHandler flowHandler)
-  {
-    this.flowHandler = flowHandler;
-  }
-  
-  /**
-   * Get the SignalHandler for this Event
-   */
-  public SignalHandler getSignalHandler()
-  {
-    return signalHandler;
-  }
-  
-  /**
-   * Set the SignalHandler for this Event
-   */
-  @XmlElement(name = "signal-handler")
-  protected void setSignalHandler(SignalHandler signalHandler)
-  {
-    this.signalHandler = signalHandler;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractItermediateEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractItermediateEvent.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractItermediateEvent.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,102 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlAttribute;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlType;
-
-
-// $Id$
-
-/**
- * An Intermediate Event is an Event that occurs after a Process has been started. 
- * 
- * It will affect the Flow of the Process, but will not start or (directly) terminate the Process. 
- * An Intermediate Event will show where messages or delays are expected within the Process, 
- * disrupt the Normal Flow through exception handling, or show the extra flow required for compensating a transaction.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="AbstractItermediateEvent")
-abstract class AbstractItermediateEvent extends Event implements MultipleOutFlowSupport, MultipleInFlowSupport, NamedFlowObject
-{
-  private String name;
-  
-  @XmlElements( { 
-    @XmlElement(name = "sequence", type = SequenceFlow.class), 
-    @XmlElement(name = "message", type = MessageFlow.class) 
-    })
-    
-  protected List<Flow> outFlows = new ArrayList<Flow>();
-  /**
-   * Construct an anonymous StartEvent. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected AbstractItermediateEvent()
-  {
-  }
-  
-  /**
-   * Construct a Activity with a given name
-   */
-  public AbstractItermediateEvent(String name)
-  {
-    this.name = name;
-  }
-  
-  /**
-   * Get the name
-   */
-  public String getName()
-  {
-    return name;
-  }
-
-  /**
-   * Set the name. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  @XmlAttribute(required = true)
-  protected void setName(String name)
-  {
-    if (this.name != null)
-      throw new IllegalStateException("Cannot rename: " + name);
-
-    this.name = name;
-  }
-  
-  public List<Flow> getOutFlows()
-  {
-    return outFlows;
-  }
-
-  protected void setOutFlow(List<Flow> outFlow)
-  {
-    this.outFlows = outFlow;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractProcess.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractProcess.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractProcess.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,78 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * A Process is any Activity performed within a company or organization.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name = "AbstractProcess")
-abstract class AbstractProcess extends Activity
-{
-  @XmlElements( { 
-    @XmlElement(name = "start", type = StartEvent.class), 
-    @XmlElement(name = "event", type = ItermediateEvent.class), 
-    @XmlElement(name = "task", type = Task.class),
-    @XmlElement(name = "exclusive-gateway", type = ExclusiveGateway.class),
-    @XmlElement(name = "inclusive-gateway", type = InclusiveGateway.class),
-    @XmlElement(name = "complex-gateway", type = ComplexGateway.class),
-    @XmlElement(name = "parallel-gateway", type = ParallelGateway.class),
-    @XmlElement(name = "sub-process", type = SubProcess.class), 
-    @XmlElement(name = "end", type = EndEvent.class) 
-    })
-  protected List<FlowObject> flowObjects = new ArrayList<FlowObject>();
-
-  /**
-   * Construct an anonymous process
-   */
-  public AbstractProcess()
-  {
-  }
-
-  /**
-   * Construct a process with a given name
-   */
-  public AbstractProcess(String name)
-  {
-    super(name);
-  }
-
-  /**
-   * Get the list of flow objects
-   */
-  public List<FlowObject> getFlowObjects()
-  {
-    return flowObjects;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractStartEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractStartEvent.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractStartEvent.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * A Start Event indicates where a particular Process will start. 
- * 
- * In terms of Sequence Flow, the Start Event starts the Flow of the Process, and thus, will not have any incoming Sequence Flow. 
- * A Start Event can have a Trigger that indicates how the Process starts: Message, Timer, Rule, Link, or Multiple.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="AbstractStartEvent")
-abstract class AbstractStartEvent extends Event implements SingleOutFlowSupport
-{
-  @XmlElements( { 
-    @XmlElement(name = "sequence", type = SequenceFlow.class), 
-    @XmlElement(name = "message", type = MessageFlow.class) 
-    })
-  protected Flow outFlow;
-  
-  /**
-   * Construct an anonymous StartEvent. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected AbstractStartEvent()
-  {
-  }
-  
-  /**
-   * Get the out flow
-   */
-  public Flow getOutFlow()
-  {
-    return outFlow;
-  }
-
-  /**
-   * Set the out flow
-   * Note, this MUST NOT leak into the public API.
-   */
-  @XmlTransient
-  public void setOutFlow(Flow outFlow)
-  {
-    if (this.outFlow != null)
-      throw new IllegalStateException("Cannot reassign out flow");
-    this.outFlow = outFlow;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractSubProcess.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractSubProcess.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractSubProcess.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,134 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A Sub-Process is Process that is included within another Process.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="AbstractSubProcess")
-abstract class AbstractSubProcess extends Process implements SingleOutFlowSupport
-{
-  protected ExecutionHandler executionHandler;
-  protected FlowHandler flowHandler;
-  protected SignalHandler signalHandler;
-  
-  @XmlElements( { 
-    @XmlElement(name = "sequence", type = SequenceFlow.class), 
-    @XmlElement(name = "message", type = MessageFlow.class) 
-    })
-  protected Flow outFlow;
-  
-  /**
-   * Construct an anonymous process
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected AbstractSubProcess()
-  {
-  }
-
-  /**
-   * Construct a process with a given name
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected AbstractSubProcess(String name)
-  {
-    super(name);
-  }
-  
-  /**
-   * Get the out flow
-   */
-  public Flow getOutFlow()
-  {
-    return outFlow;
-  }
-
-  /**
-   * Set the out flow Note, this MUST NOT leak into the public API.
-   */
-  @XmlTransient
-  public void setOutFlow(Flow outFlow)
-  {
-    this.outFlow = outFlow;
-  }
-
-  /**
-   * Get the ExecutionHandler for this Event
-   */
-  public ExecutionHandler getExecutionHandler()
-  {
-    return executionHandler;
-  }
-  
-  /**
-   * Set the ExecutionHandler for this Event
-   */
-  @XmlElement(name = "execution-handler")
-  protected void setExecutionHandler(ExecutionHandler executionHandler)
-  {
-    this.executionHandler = executionHandler;
-  }
-  
-  /**
-   * Get the FlowHandler for this Event
-   */
-  public FlowHandler getFlowHandler()
-  {
-    return flowHandler;
-  }
-  
-  /**
-   * Set the FlowHandler for this Event
-   */
-  @XmlElement(name = "flow-handler")
-  protected void setFlowHandler(FlowHandler flowHandler)
-  {
-    this.flowHandler = flowHandler;
-  }
-  
-  /**
-   * Get the SignalHandler for this Event
-   */
-  public SignalHandler getSignalHandler()
-  {
-    return signalHandler;
-  }
-  
-  /**
-   * Set the SignalHandler for this Event
-   */
-  @XmlElement(name = "signal-handler")
-  protected void setSignalHandler(SignalHandler signalHandler)
-  {
-    this.signalHandler = signalHandler;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractTask.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractTask.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/AbstractTask.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,135 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElements;
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-//$Id$
-
-/**
- * A Task is an Atomic Activity that is included within a Process.
- * 
- * A Task is used when the work in the Process is not broken down to a finer level of Process Model detail. Generally, an end-user and/or an application are used to
- * perform the Task when it is executed.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name = "AbstractTask")
-abstract class AbstractTask extends Activity implements SingleOutFlowSupport
-{
-  protected ExecutionHandler executionHandler;
-  protected FlowHandler flowHandler;
-  protected SignalHandler signalHandler;
-  
-  @XmlElements( { 
-    @XmlElement(name = "sequence", type = SequenceFlow.class), 
-    @XmlElement(name = "message", type = MessageFlow.class) 
-    })
-  protected Flow outFlow;
-
-  /**
-   * Construct an anonymous Task
-   */
-  public AbstractTask()
-  {
-  }
-
-  /**
-   * Construct a Task with a given name
-   */
-  public AbstractTask(String name)
-  {
-    super(name);
-  }
-
-  /**
-   * Get the out flow
-   */
-  public Flow getOutFlow()
-  {
-    return outFlow;
-  }
-
-  /**
-   * Set the out flow Note, this MUST NOT leak into the public API.
-   */
-  @XmlTransient
-  public void setOutFlow(Flow outFlow)
-  {
-    this.outFlow = outFlow;
-  }
-  
-  /**
-   * Get the ExecutionHandler for this Event
-   */
-  public ExecutionHandler getExecutionHandler()
-  {
-    return executionHandler;
-  }
-  
-  /**
-   * Set the ExecutionHandler for this Event
-   */
-  @XmlElement(name = "execution-handler")
-  protected void setExecutionHandler(ExecutionHandler executionHandler)
-  {
-    this.executionHandler = executionHandler;
-  }
-  
-  /**
-   * Get the FlowHandler for this Event
-   */
-  public FlowHandler getFlowHandler()
-  {
-    return flowHandler;
-  }
-  
-  /**
-   * Set the FlowHandler for this Event
-   */
-  @XmlElement(name = "flow-handler")
-  protected void setFlowHandler(FlowHandler flowHandler)
-  {
-    this.flowHandler = flowHandler;
-  }
-  
-  /**
-   * Get the SignalHandler for this Event
-   */
-  public SignalHandler getSignalHandler()
-  {
-    return signalHandler;
-  }
-  
-  /**
-   * Set the SignalHandler for this Event
-   */
-  @XmlElement(name = "signal-handler")
-  protected void setSignalHandler(SignalHandler signalHandler)
-  {
-    this.signalHandler = signalHandler;
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ComplexGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ComplexGateway.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ComplexGateway.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,63 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlType;
-
-
-// $Id$
-
-/**
- * A Complex Gateway handles situations that are not easily handled through the other types of Gateways. 
- * 
- * Complex Gateways can also be used to combine a set of linked simple Gateways into a single, 
- * more compact situation. Modelers can provide complex expressions that determine the merging and/or 
- * splitting behavior of the Gateway. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="ComplexGateway")
-public class ComplexGateway extends Gateway
-{
-  /**
-   * Construct an anonymous Task
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ComplexGateway()
-  {
-  }
-
-  /**
-   * Construct a Task with a given name
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ComplexGateway(String name)
-  {
-    super(name);
-  }
-  
-  public String toString()
-  {
-    return "ComplexGateway[" + getName() + "]";
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ErrorResult.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ErrorResult.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ErrorResult.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,35 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-
-// $Id$
-
-/**
- * Represents the result of an End event as an Error. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
-public interface ErrorResult extends Result
-{
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ExclusiveGateway.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,59 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-
-/**
- * A point in the workflow process where, based on a decision or workflow control data, one of several branches is chosen. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="ExclusiveGateway")
-public class ExclusiveGateway extends Gateway
-{
-  /**
-   * Construct an anonymous Task
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ExclusiveGateway()
-  {
-  }
-
-  /**
-   * Construct a Task with a given name
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ExclusiveGateway(String name)
-  {
-    super(name);
-  }
-  
-  public String toString()
-  {
-    return "ExclusiveGateway[" + getName() + "]";
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/InclusiveGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/InclusiveGateway.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/InclusiveGateway.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,61 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlType;
-
-
-// $Id$
-
-/**
- * This Decision represents a branching point where Alternatives are based on conditional expressions contained within outgoing Sequence Flow. 
- * However, in this case, the True evaluation of one condition expression does not exclude the evaluation of other condition expressions. 
- * All Sequence Flow with a True evaluation will be traversed by a Token. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="InclusiveGateway")
-public class InclusiveGateway extends Gateway
-{
-  /**
-   * Construct an anonymous Task
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected InclusiveGateway()
-  {
-  }
-
-  /**
-   * Construct a Task with a given name
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected InclusiveGateway(String name)
-  {
-    super(name);
-  }
-  
-  public String toString()
-  {
-    return "InclusiveGateway[" + getName() + "]";
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ItermediateEvent.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ItermediateEvent.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ItermediateEvent.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,138 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlTransient;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jboss.bpm.runtime.Token;
-
-
-// $Id$
-
-/**
- * An Intermediate Event is an Event that occurs after a Process has been started. 
- * 
- * It will affect the Flow of the Process, but will not start or (directly) terminate the Process. 
- * An Intermediate Event will show where messages or delays are expected within the Process, 
- * disrupt the Normal Flow through exception handling, or show the extra flow required for compensating a transaction.
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="ItermediateEvent")
-public class ItermediateEvent extends AbstractItermediateEvent
-{
-  // provide logging
-  private static final Log log = LogFactory.getLog(ItermediateEvent.class);
-  
-  @XmlTransient
-  protected List<Flow> inFlows = new ArrayList<Flow>();
-  
-  /**
-   * Construct an anonymous StartEvent. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ItermediateEvent()
-  {
-  }
-  
-  /**
-   * Construct an anonymous StartEvent. 
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ItermediateEvent(String name)
-  {
-    super(name);
-  }
-  
-  public void addOutFlow(Flow flow)
-  {
-    outFlows.add(flow);
-  }
-  
-  public List<Flow> getInFlows()
-  {
-    return Collections.unmodifiableList(inFlows);
-  }
-
-  public void addInFlow(Flow inFlow)
-  {
-    this.inFlows.add(inFlow);
-  }
-  
-  @XmlTransient
-  public FlowHandler getDefaultFlowHandler()
-  {
-    return new FlowHandler()
-    {
-      @Override
-      public void transfer(Token token)
-      {
-        List<Flow> outFlows = getOutFlows();
-        if (outFlows.size() == 1)
-          token.addTailFlow(outFlows.get(0));
-      }
-    };
-  }
-
-  public SignalHandler getDefaultSignalHandler()
-  {
-    final FlowObject event = this;
-    return new SignalHandler()
-    {
-      public Signal getEnterSignal()
-      {
-        return new Signal(event, Signal.Type.ENTER_EVENT);
-      }
-
-      public Signal getExitSignal()
-      {
-        return new Signal(event, Signal.Type.EXIT_EVENT);
-      }
-    };
-  }
-
-  @XmlTransient
-  public ExecutionHandler getDefaultExecutionHandler()
-  {
-    return new ExecutionHandler()
-    {
-      @Override
-      public void execute(Token token)
-      {
-        log.debug("Nothing to do in start-event");
-      }
-    };
-  }
-  
-  public String toString()
-  {
-    return "ItermediateEvent[" + getName() + "]";
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageFlow.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageFlow.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageFlow.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A Message Flow is a dashed line that is used to show the flow of messages between two entities that are prepared to send and receive them. 
- * In BPMN, two separate Pools in the Diagram will represent the two entities. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="MessageFlow")
-public class MessageFlow extends Flow
-{
-  /**
-   * Construct a flow with no target
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected MessageFlow()
-  {
-  }
-  
-  /**
-   * Construct a flow with a given target
-   * Note, this MUST NOT leak into the public API.
-   */
-  public MessageFlow(String targetName)
-  {
-    super(targetName);
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageResult.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageResult.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/MessageResult.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,35 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-
-// $Id$
-
-/**
- * Represents the result of an End event as a Message. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
-public interface MessageResult extends Result
-{
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ObjectFactory.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ObjectFactory.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ObjectFactory.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,131 +0,0 @@
-//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
-// Any modifications to this file will be lost upon recompilation of the source schema. 
-// Generated on: 2008.07.11 at 09:21:08 AM CEST 
-//
-
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlRegistry;
-
-
-/**
- * This object contains factory methods for each Java content interface and Java element interface generated in the api.bpm.jboss.org package.
- * <p>
- * An ObjectFactory allows you to programatically construct new instances of the Java representation for XML content. The Java representation of XML content can consist
- * of schema derived interfaces and classes representing the binding of schema type definitions, element declarations and model groups. Factory methods for each of
- * these are provided in this class.
- * 
- */
- at XmlRegistry
-public class ObjectFactory
-{
-  /**
-   * Create an instance of {@link ExclusiveGateway }
-   * 
-   */
-  public ExclusiveGateway createExclusiveGateway()
-  {
-    return new ExclusiveGateway();
-  }
-
-  /**
-   * Create an instance of {@link Task }
-   * 
-   */
-  public Task createTask()
-  {
-    return new Task();
-  }
-
-  /**
-   * Create an instance of {@link Process }
-   * 
-   */
-  public Process createProcess()
-  {
-    return new Process();
-  }
-
-  /**
-   * Create an instance of {@link ParallelGateway }
-   * 
-   */
-  public ParallelGateway createParallelGateway()
-  {
-    return new ParallelGateway();
-  }
-
-  /**
-   * Create an instance of {@link MessageFlow }
-   * 
-   */
-  public MessageFlow createMessageFlow()
-  {
-    return new MessageFlow();
-  }
-
-  /**
-   * Create an instance of {@link EndEvent }
-   * 
-   */
-  public EndEvent createEndEvent()
-  {
-    return new EndEvent();
-  }
-
-  /**
-   * Create an instance of {@link SubProcess }
-   * 
-   */
-  public SubProcess createSubProcess()
-  {
-    return new SubProcess();
-  }
-
-  /**
-   * Create an instance of {@link SequenceFlow }
-   * 
-   */
-  public SequenceFlow createSequenceFlow()
-  {
-    return new SequenceFlow();
-  }
-
-  /**
-   * Create an instance of {@link ComplexGateway }
-   * 
-   */
-  public ComplexGateway createComplexGateway()
-  {
-    return new ComplexGateway();
-  }
-
-  /**
-   * Create an instance of {@link InclusiveGateway }
-   * 
-   */
-  public InclusiveGateway createInclusiveGateway()
-  {
-    return new InclusiveGateway();
-  }
-
-  /**
-   * Create an instance of {@link ItermediateEvent }
-   * 
-   */
-  public ItermediateEvent createItermediateEvent(String name)
-  {
-    return new ItermediateEvent(name);
-  }
-
-  /**
-   * Create an instance of {@link StartEvent }
-   * 
-   */
-  public StartEvent createStartEvent()
-  {
-    return new StartEvent();
-  }
-}

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ParallelGateway.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ParallelGateway.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/ParallelGateway.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,78 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlType;
-
-import org.jboss.bpm.runtime.Token;
-
-
-// $Id$
-
-/**
- * Parallel Gateway is required when two or more Activities need to be executed in parallel.  
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="ParallelGateway")
-public class ParallelGateway extends Gateway
-{
-  /**
-   * Construct an anonymous Task
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ParallelGateway()
-  {
-  }
-
-  /**
-   * Construct a Task with a given name
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected ParallelGateway(String name)
-  {
-    super(name);
-  }
-  
-  /**
-   * The DefaultFlowHandler adds all out flows to the queue
-   */
-  @Override
-  public FlowHandler getDefaultFlowHandler()
-  {
-    return new FlowHandler()
-    {
-      @Override
-      public void transfer(Token token)
-      {
-        for(Flow outFlow : getOutFlows())
-          token.addTailFlow(outFlow);
-      }
-    };
-  }
-
-  public String toString()
-  {
-    return "ParallelGateway[" + getName() + "]";
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SequenceFlow.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SequenceFlow.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/SequenceFlow.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,54 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.model;
-
-//$Id$
-
-import javax.xml.bind.annotation.XmlType;
-
-/**
- * A Sequence Flow is a solid graphical line that is used to show the order that Activities will be performed in a Process. 
- * Each Flow has only one source and only one target. 
- * 
- * @author thomas.diesler at jboss.com
- * @since 08-Jul-2008
- */
- at XmlType(name="SequenceFlow")
-public class SequenceFlow extends Flow
-{
-  /**
-   * Construct a flow with no target
-   * Note, this MUST NOT leak into the public API.
-   */
-  protected SequenceFlow()
-  {
-  }
-  
-  /**
-   * Construct a flow with a given target
-   * Note, this MUST NOT leak into the public API.
-   */
-  public SequenceFlow(String targetName)
-  {
-    super(targetName);
-  }
-}
\ No newline at end of file

Deleted: api/trunk/modules/api/src/main/java/org/jboss/bpm/model/package-info.java
===================================================================
--- api/trunk/modules/api/src/main/java/org/jboss/bpm/model/package-info.java	2008-07-14 15:16:28 UTC (rev 1627)
+++ api/trunk/modules/api/src/main/java/org/jboss/bpm/model/package-info.java	2008-07-14 15:21:45 UTC (rev 1628)
@@ -1,26 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 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. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
- at XmlSchema(namespace="urn:api.bpm.jboss:jpdl-0.1")
-package org.jboss.bpm.model;
-
-import javax.xml.bind.annotation.XmlSchema;
-




More information about the jbpm-commits mailing list