[jbpm-commits] JBoss JBPM SVN: r3187 - in projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api: service and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Dec 4 02:25:34 EST 2008
Author: thomas.diesler at jboss.com
Date: 2008-12-04 02:25:34 -0500 (Thu, 04 Dec 2008)
New Revision: 3187
Added:
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/deployment/SimpleDeployment.java
Modified:
projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java
Log:
Add SimpleDeployment
Added: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/deployment/SimpleDeployment.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/deployment/SimpleDeployment.java (rev 0)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/deployment/SimpleDeployment.java 2008-12-04 07:25:34 UTC (rev 3187)
@@ -0,0 +1,52 @@
+/*
+ * 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.deployment;
+
+//$Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.api.runtime.BasicAttachments;
+
+/**
+ * A simple deployment that takes a process definition XML
+ *
+ * @author thomas.diesler at jboss.com
+ * @since 28-Nov-2008
+ */
+public class SimpleDeployment extends BasicAttachments implements Deployment
+{
+ private String procDefXML;
+
+ public SimpleDeployment(String procDefXML)
+ {
+ this.procDefXML = procDefXML;
+ }
+
+ /**
+ * Get the ProcessDefinition as XML string.
+ */
+ public String getProcessDefinitionXML() throws IOException
+ {
+ return procDefXML;
+ }
+}
\ No newline at end of file
Property changes on: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/deployment/SimpleDeployment.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java 2008-12-04 04:24:58 UTC (rev 3186)
+++ projects/spec/trunk/modules/api/src/main/java/org/jboss/bpm/api/service/TaskService.java 2008-12-04 07:25:34 UTC (rev 3187)
@@ -37,7 +37,8 @@
*/
public interface TaskService
{
-
+ List<Task> getTasksByProcess(ObjectName procID);
+
Task getTask(ObjectName taskID);
List<Task> getTasksByActor(String actor);
More information about the jbpm-commits
mailing list