[jbpm-commits] JBoss JBPM SVN: r3118 - projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Nov 27 06:19:47 EST 2008
Author: thomas.diesler at jboss.com
Date: 2008-11-27 06:19:47 -0500 (Thu, 27 Nov 2008)
New Revision: 3118
Added:
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleInFlowSupport.java
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleOutFlowSupport.java
Modified:
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/EndEvent.java
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/StartEvent.java
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/Task.java
Log:
Add Single In/Out FlowSupport
Modified: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/EndEvent.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/EndEvent.java 2008-11-27 11:08:40 UTC (rev 3117)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/EndEvent.java 2008-11-27 11:19:47 UTC (rev 3118)
@@ -34,7 +34,7 @@
* @author thomas.diesler at jboss.com
* @since 08-Jul-2008
*/
-public interface EndEvent extends Event
+public interface EndEvent extends Event, SingleInFlowSupport
{
/**
* Get the type od end result
Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleInFlowSupport.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleInFlowSupport.java (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleInFlowSupport.java 2008-11-27 11:19:47 UTC (rev 3118)
@@ -0,0 +1,38 @@
+/*
+ * 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.api.model;
+
+//$Id$
+
+/**
+ * Implemented by Nodes that support a single incomming flow.
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 08-Jul-2008
+ */
+public interface SingleInFlowSupport
+{
+ /**
+ * Get the incomming SequenceFlow
+ */
+ SequenceFlow getInFlow();
+}
\ No newline at end of file
Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleInFlowSupport.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleOutFlowSupport.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleOutFlowSupport.java (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleOutFlowSupport.java 2008-11-27 11:19:47 UTC (rev 3118)
@@ -0,0 +1,38 @@
+/*
+ * 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.api.model;
+
+// $Id$
+
+/**
+ * Implemented by Nodes that support a single outgoing flow.
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 08-Jul-2008
+ */
+public interface SingleOutFlowSupport
+{
+ /**
+ * Get the outgoing SequenceFlow
+ */
+ SequenceFlow getOutFlow();
+}
\ No newline at end of file
Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/SingleOutFlowSupport.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/StartEvent.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/StartEvent.java 2008-11-27 11:08:40 UTC (rev 3117)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/StartEvent.java 2008-11-27 11:19:47 UTC (rev 3118)
@@ -36,14 +36,9 @@
* @author thomas.diesler at jboss.com
* @since 08-Jul-2008
*/
-public interface StartEvent extends Event
+public interface StartEvent extends Event, SingleOutFlowSupport
{
/**
- * Get the outgoing SequenceFlow
- */
- SequenceFlow getOutFlow();
-
- /**
* Get the detail type fopr this event
*/
EventDetailType getTriggerType();
Modified: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/Task.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/Task.java 2008-11-27 11:08:40 UTC (rev 3117)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/model/Task.java 2008-11-27 11:19:47 UTC (rev 3118)
@@ -32,7 +32,7 @@
* @author thomas.diesler at jboss.com
* @since 08-Jul-2008
*/
-public interface Task extends Node
+public interface Task extends Node, SingleOutFlowSupport, SingleInFlowSupport
{
/**
* The TaskType
@@ -52,14 +52,4 @@
* The TaskType list MAY be extended to include new types.
*/
TaskType getTaskType();
-
- /**
- * Get the incomming SequenceFlow
- */
- SequenceFlow getInFlow();
-
- /**
- * Get the outgoing SequenceFlow
- */
- SequenceFlow getOutFlow();
}
\ No newline at end of file
More information about the jbpm-commits
mailing list