[jbpm-commits] JBoss JBPM SVN: r1989 - in jbossbpm/spec/trunk/modules: dialects/api10/src/main/java/org/jboss/bpm/dialect/api10 and 6 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Aug 22 16:13:51 EDT 2008


Author: thomas.diesler at jboss.com
Date: 2008-08-22 16:13:51 -0400 (Fri, 22 Aug 2008)
New Revision: 1989

Added:
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetDescriptorTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetMarshallerTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetMarshallerTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyDescriptorTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyMarshallerTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyDescriptorTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyMarshallerTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-inputset-api10.xml
   jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-outputset-api10.xml
   jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-property-api10.xml
   jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-property-api10.xml
Removed:
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesDescriptorTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesMarshallerTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesDescriptorTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesMarshallerTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesTest.java
   jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-properties-api10.xml
   jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-properties-api10.xml
Modified:
   jbossbpm/spec/trunk/modules/api/src/main/java/org/jboss/bpm/model/ActivityBuilder.java
   jbossbpm/spec/trunk/modules/dialects/api10/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java
   jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityBuilderImpl.java
   jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityImpl.java
   jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/InputSetImpl.java
   jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/OutputSetImpl.java
   jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/org/jboss/bpm/samples/airticket/AirticketProcessBuilder.java
Log:
Add InputSet/OutputSet tests

Modified: jbossbpm/spec/trunk/modules/api/src/main/java/org/jboss/bpm/model/ActivityBuilder.java
===================================================================
--- jbossbpm/spec/trunk/modules/api/src/main/java/org/jboss/bpm/model/ActivityBuilder.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/api/src/main/java/org/jboss/bpm/model/ActivityBuilder.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -22,7 +22,7 @@
 package org.jboss.bpm.model;
 
 
-//$Id$
+//$Id: ActivityBuilder.java 1930 2008-08-19 11:04:43Z thomas.diesler at jboss.com $
 
 /**
  * The ActivityBuilder can be used to build an Activity dynamically.
@@ -40,7 +40,7 @@
   /**
    * Add an Property Input
    */
-  ActivityBuilder addPropertyInput(String name, String value);
+  ActivityBuilder addPropertyInput(String name);
 
   /**
    * Add an OutputSet
@@ -49,6 +49,7 @@
 
   /**
    * Add an Property Output
+   * @param value TODO
    */
   ActivityBuilder addPropertyOutput(String name, String value);
   

Modified: jbossbpm/spec/trunk/modules/dialects/api10/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java
===================================================================
--- jbossbpm/spec/trunk/modules/dialects/api10/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/dialects/api10/src/main/java/org/jboss/bpm/dialect/api10/ProcessUnmarshaller.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -325,7 +325,7 @@
     {
       taskBuilder.addInputSet();
       for (JAXBProperty jaxbProp : jaxbSet.getProperties())
-        taskBuilder.addPropertyInput(jaxbProp.getName(), jaxbProp.getValue());
+        taskBuilder.addPropertyInput(jaxbProp.getName());
     }
     
     for (JAXBOutputSet jaxbSet : jaxbTask.getOutputSets())

Modified: jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityBuilderImpl.java
===================================================================
--- jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityBuilderImpl.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityBuilderImpl.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -51,9 +51,9 @@
     return this;
   }
 
-  public ActivityBuilder addPropertyInput(String name, String value)
+  public ActivityBuilder addPropertyInput(String name)
   {
-    Property prop = new PropertyImpl(name, new ExpressionImpl(value));
+    Property prop = new PropertyImpl(name, null);
     inputSet.addProperty(prop);
     return this;
   }

Modified: jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityImpl.java
===================================================================
--- jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityImpl.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/ActivityImpl.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -27,6 +27,8 @@
 import java.util.Collections;
 import java.util.List;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.jboss.bpm.InvalidProcessException;
 import org.jboss.bpm.NotImplementedException;
 import org.jboss.bpm.model.Activity;
@@ -55,6 +57,9 @@
 public abstract class ActivityImpl extends FlowObjectImpl implements Activity, MutablePropertySupport,
     SingleInFlowSetterSupport, SingleOutFlowSetterSupport
 {
+  // provide logging
+  private static final Log log = LogFactory.getLog(ActivityImpl.class);
+  
   private List<InputSet> inputSets = new ArrayList<InputSet>();
   private List<OutputSet> outputSets = new ArrayList<OutputSet>();
   private List<Expression> ioRules = new ArrayList<Expression>();
@@ -222,7 +227,10 @@
         }
       }
       if (inputSet == null)
+      {
+        log.warn("InputSets: " + inputSets);
         throw new IllegalStateException("Cannot find matching inputSet for " + exContext + " in Activity: " + getName());
+      }
     }
 
     // Create an empty input set

Modified: jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/InputSetImpl.java
===================================================================
--- jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/InputSetImpl.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/InputSetImpl.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -87,4 +87,10 @@
   {
     props.put(prop.getName(), prop);
   }
+
+  @Override
+  public String toString()
+  {
+    return "InputSet" + getPropertyNames();
+  }
 }

Modified: jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/OutputSetImpl.java
===================================================================
--- jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/OutputSetImpl.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/ri/src/main/java/org/jboss/bpm/ri/model/impl/OutputSetImpl.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -87,4 +87,10 @@
   {
     props.put(prop.getName(), prop);
   }
+  
+  @Override
+  public String toString()
+  {
+    return "OutputSet" + getPropertyNames();
+  }
 }

Modified: jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/org/jboss/bpm/samples/airticket/AirticketProcessBuilder.java
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/org/jboss/bpm/samples/airticket/AirticketProcessBuilder.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/samples/airticket/server/src/main/java/org/jboss/bpm/samples/airticket/AirticketProcessBuilder.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -157,19 +157,19 @@
     // Build the CreditCardTask
     taskBuilder = procBuilder.addTask(TASK_CREDIT_CARD);
     taskBuilder.addInputSet().
-    addPropertyInput(PROPERTY_CREDIT_CARD, null).
-    addPropertyInput(PROPERTY_EXPIRE, null).
-    addPropertyInput(PROPERTY_PRICE, null).
+    addPropertyInput(PROPERTY_CREDIT_CARD).
+    addPropertyInput(PROPERTY_EXPIRE).
+    addPropertyInput(PROPERTY_PRICE).
     addSequenceFlow(GATEWAY_SYNC_JOIN);
     
     // Build the BookingTask
     taskBuilder = procBuilder.addTask(TASK_BOOKING);
     taskBuilder.addInputSet().
-    addPropertyInput(PROPERTY_NAME, null).
-    addPropertyInput(PROPERTY_FROM, null).
-    addPropertyInput(PROPERTY_TO, null).
-    addPropertyInput(PROPERTY_DATE, null).
-    addPropertyInput(PROPERTY_SEATS, null).
+    addPropertyInput(PROPERTY_NAME).
+    addPropertyInput(PROPERTY_FROM).
+    addPropertyInput(PROPERTY_TO).
+    addPropertyInput(PROPERTY_DATE).
+    addPropertyInput(PROPERTY_SEATS).
     addSequenceFlow(GATEWAY_SYNC_JOIN);
     
     // Build the SynchronizedJoinGateway

Added: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetDescriptorTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetDescriptorTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetDescriptorTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,48 @@
+/*
+ * 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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.Process;
+
+/**
+ * Test Activity InputSet
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityInputSetDescriptorTest extends ActivityInputSetTest
+{
+  @Override
+  protected Process getProcess() throws IOException
+  {
+    URL procURL = getResourceURL("cts/activity/activity-inputset-" + getDialect() + ".xml");
+    ProcessManager pm = ProcessManager.locateProcessManager();
+    Process proc = pm.createProcess(procURL);
+    return proc;
+  }
+}


Property changes on: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetDescriptorTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetMarshallerTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetMarshallerTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetMarshallerTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.Process;
+
+/**
+ * Test Activity InputSet
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityInputSetMarshallerTest extends ActivityInputSetTest
+{
+  @Override
+  protected Process getProcess() throws IOException
+  {
+    // Marshall the process to a string
+    Process proc = super.getProcess();
+    String procXML = marshallProcess(proc);
+    
+    //System.out.println(procXML);
+    
+    // Recreate the process from the marshalled process
+    ProcessManager procManager = ProcessManager.locateProcessManager();
+    return procManager.createProcess(procXML);
+  }
+}


Property changes on: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetMarshallerTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetTest.java (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesTest.java)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityInputSetTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,94 @@
+/*
+ * 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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.model.Message;
+import org.jboss.bpm.model.MessageBuilder;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+import org.jboss.bpm.model.TaskBuilder;
+import org.jboss.bpm.model.EventDetail.EventDetailType;
+import org.jboss.bpm.runtime.BasicAttachments;
+import org.jboss.bpm.test.DefaultEngineTestCase;
+
+/**
+ * InputSets define the data requirements for input to the activity. Zero or more InputSets MAY be defined. Each
+ * InputSet is sufficient to allow the activity to be performed (if it has first been instantiated by the appropriate
+ * signal arriving from an incoming Sequence Flow).
+ * 
+ * https://jira.jboss.org/jira/browse/JBPM-1702
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityInputSetTest extends DefaultEngineTestCase
+{
+  public void testValidProps() throws Exception
+  {
+    Process proc = getProcess();
+
+    BasicAttachments att = new BasicAttachments();
+    att.addAttachment("frog", "kermit");
+    proc.startProcess(att);
+    proc.waitForEnd();
+
+    Message endMessage = getMessages().get(0);
+    assertNotNull("EndMessage expected", endMessage);
+    assertEquals("kermit", endMessage.getPropertyValue("frog"));
+  }
+
+  public void testInvalidProps() throws Exception
+  {
+    Process proc = getProcess();
+
+    BasicAttachments att = new BasicAttachments();
+    att.addAttachment("pig", "piggy");
+    proc.startProcess(att);
+
+    try
+    {
+      proc.waitForEnd();
+    }
+    catch (RuntimeException ex)
+    {
+      // expected
+    }
+  }
+
+  protected Process getProcess() throws IOException
+  {
+    ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder();
+    procBuilder.addProcess("ActivityInputSet").addStartEvent("Start").addSequenceFlow("TaskA");
+    TaskBuilder taskBuilder = procBuilder.addTask("TaskA");
+    taskBuilder.addInputSet().addPropertyInput("frog").addSequenceFlow("End");
+    procBuilder.addEndEvent("End").addEventDetail(EventDetailType.Message).addMessageRef("EndMessage");
+    MessageBuilder msgBuilder = procBuilder.addMessage("EndMessage");
+    msgBuilder.addToRef(getTestID()).addProperty("frog", null, true);
+    Process proc = procBuilder.getProcess();
+    return proc;
+  }
+}

Added: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetMarshallerTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetMarshallerTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetMarshallerTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,54 @@
+/*
+ * 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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.Process;
+
+/**
+ * Test Activity OutputSet
+ * 
+ * https://jira.jboss.org/jira/browse/JBPM-1703
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityOutputSetMarshallerTest extends ActivityOutputSetTest
+{
+  @Override
+  protected Process getProcess() throws IOException
+  {
+    // Marshall the process to a string
+    Process proc = super.getProcess();
+    String procXML = marshallProcess(proc);
+    
+    System.out.println(procXML);
+    
+    // Recreate the process from the marshalled process
+    ProcessManager procManager = ProcessManager.locateProcessManager();
+    return procManager.createProcess(procXML);
+  }
+}


Property changes on: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetMarshallerTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,74 @@
+/*
+ * 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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.model.Message;
+import org.jboss.bpm.model.MessageBuilder;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+import org.jboss.bpm.model.TaskBuilder;
+import org.jboss.bpm.model.EventDetail.EventDetailType;
+import org.jboss.bpm.test.DefaultEngineTestCase;
+
+/**
+ * OutputSets define the data requirements for output from the activity. Zero or more OutputSets MAY be defined. At the
+ * completion of the activity, only one of the OutputSets may be produced. It is up to the implementation of the
+ * activity to determine which set will be produced. However, the IORules MAY indicate a relationship between an
+ * OutputSet and an InputSet that started the activity.
+ * 
+ * https://jira.jboss.org/jira/browse/JBPM-1703
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityOutputSetTest extends DefaultEngineTestCase
+{
+  public void testValidProps() throws Exception
+  {
+    Process proc = getProcess();
+
+    proc.startProcess();
+    proc.waitForEnd();
+
+    Message endMessage = getMessages().get(0);
+    assertNotNull("EndMessage expected", endMessage);
+    assertEquals("kermit", endMessage.getPropertyValue("frog"));
+  }
+
+  protected Process getProcess() throws IOException
+  {
+    ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder();
+    procBuilder.addProcess("ActivityInputSet").addStartEvent("Start").addSequenceFlow("TaskA");
+    TaskBuilder taskBuilder = procBuilder.addTask("TaskA");
+    taskBuilder.addOutputSet().addPropertyOutput("frog", "kermit").addSequenceFlow("End");
+    procBuilder.addEndEvent("End").addEventDetail(EventDetailType.Message).addMessageRef("EndMessage");
+    MessageBuilder msgBuilder = procBuilder.addMessage("EndMessage");
+    msgBuilder.addToRef(getTestID()).addProperty("frog", null, true);
+    Process proc = procBuilder.getProcess();
+    return proc;
+  }
+}


Property changes on: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityOutputSetTest.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesDescriptorTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesDescriptorTest.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesDescriptorTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -1,49 +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.cts.activity;
-
-// $Id$
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.jboss.bpm.client.ProcessManager;
-import org.jboss.bpm.model.Process;
-
-/**
- * 
- * An ActivityPropertyTest using the API Descriptor
- * 
- * @author thomas.diesler at jboss.com
- * @since 15-Aug-2008
- */
-public class ActivityPropertiesDescriptorTest extends ActivityPropertiesTest
-{
-  @Override
-  protected Process getProcess() throws IOException
-  {
-    URL procURL = getResourceURL("cts/activity/activity-properties-" + getDialect() + ".xml");
-    ProcessManager pm = ProcessManager.locateProcessManager();
-    Process proc = pm.createProcess(procURL);
-    return proc;
-  }
-}

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesMarshallerTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesMarshallerTest.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesMarshallerTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -1,53 +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.cts.activity;
-
-// $Id$
-
-import java.io.IOException;
-
-import org.jboss.bpm.client.ProcessManager;
-import org.jboss.bpm.model.Process;
-
-/**
- * 
- * An ActivityPropertyTest using the ProcessMarshaller
- * 
- * @author thomas.diesler at jboss.com
- * @since 15-Aug-2008
- */
-public class ActivityPropertiesMarshallerTest extends ActivityPropertiesTest
-{
-  @Override
-  protected Process getProcess() throws IOException
-  {
-    // Marshall the process to a string
-    Process proc = super.getProcess();
-    String procXML = marshallProcess(proc);
-    
-    // System.out.println(procXML);
-    
-    // Recreate the process from the marshalled process
-    ProcessManager procManager = ProcessManager.locateProcessManager();
-    return procManager.createProcess(procXML);
-  }
-}

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesTest.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -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.cts.activity;
-
-// $Id$
-
-import java.io.IOException;
-
-import org.jboss.bpm.model.EventDetail;
-import org.jboss.bpm.model.Message;
-import org.jboss.bpm.model.MessageBuilder;
-import org.jboss.bpm.model.Process;
-import org.jboss.bpm.model.ProcessBuilder;
-import org.jboss.bpm.model.ProcessBuilderFactory;
-import org.jboss.bpm.model.TaskBuilder;
-import org.jboss.bpm.model.Assignment.AssignTime;
-import org.jboss.bpm.model.Expression.ExpressionLanguage;
-import org.jboss.bpm.test.DefaultEngineTestCase;
-
-/**
- * Modeler-defined Properties MAY be added to an activity. These Properties are "local" to the activity. These
- * Properties are only for use within the processing of the activity. The fully delineated name of these properties is
- * "<process name>.<activity name>.<property name>" (e.g., "Add Customer.Review Credit.Status").
- * 
- * https://jira.jboss.org/jira/browse/JBPM-1621
- * 
- * @author thomas.diesler at jboss.com
- * @since 15-Aug-2008
- */
-public class ActivityPropertiesTest extends DefaultEngineTestCase
-{
-  public void testActivityPropertyRead() throws Exception
-  {
-    Process proc = getProcess();
-    proc.startProcess();
-    proc.waitForEnd();
-    
-    Message endMessage = getMessages().get(0);
-    assertNotNull("EndMessage expected", endMessage);
-    assertEquals("bar", endMessage.getPropertyValue("propValue"));
-  }
-
-  protected Process getProcess() throws IOException
-  {
-    ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder();
-    procBuilder.addProcess("ActivityProperties").addStartEvent("Start").addSequenceFlow("TaskA");
-    TaskBuilder taskBuilder = procBuilder.addTask("TaskA");
-    taskBuilder.addProperty("foo", "bar").addSequenceFlow("End");
-    taskBuilder.addAssignment(AssignTime.Start, ExpressionLanguage.MVEL, "ActivityProperties_TaskA_foo", "propValue");
-    procBuilder.addEndEvent("End").addEventDetail(EventDetail.EventDetailType.Message).addMessageRef("EndMessage");
-    MessageBuilder msgBuilder = procBuilder.addMessage("EndMessage");
-    msgBuilder.addToRef(getTestID()).addProperty("propValue", null, true);
-    Process proc = procBuilder.getProcess();
-    return proc;
-  }
-}

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyDescriptorTest.java (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesDescriptorTest.java)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyDescriptorTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyDescriptorTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,49 @@
+/*
+ * 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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.Process;
+
+/**
+ * 
+ * An ActivityPropertyTest using the API Descriptor
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityPropertyDescriptorTest extends ActivityPropertyTest
+{
+  @Override
+  protected Process getProcess() throws IOException
+  {
+    URL procURL = getResourceURL("cts/activity/activity-property-" + getDialect() + ".xml");
+    ProcessManager pm = ProcessManager.locateProcessManager();
+    Process proc = pm.createProcess(procURL);
+    return proc;
+  }
+}

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyMarshallerTest.java (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesMarshallerTest.java)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyMarshallerTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyMarshallerTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,53 @@
+/*
+ * 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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.Process;
+
+/**
+ * 
+ * An ActivityPropertyTest using the ProcessMarshaller
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityPropertyMarshallerTest extends ActivityPropertyTest
+{
+  @Override
+  protected Process getProcess() throws IOException
+  {
+    // Marshall the process to a string
+    Process proc = super.getProcess();
+    String procXML = marshallProcess(proc);
+    
+    // System.out.println(procXML);
+    
+    // Recreate the process from the marshalled process
+    ProcessManager procManager = ProcessManager.locateProcessManager();
+    return procManager.createProcess(procXML);
+  }
+}

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyTest.java (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertiesTest.java)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/activity/ActivityPropertyTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,75 @@
+/*
+ * 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.cts.activity;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.model.EventDetail;
+import org.jboss.bpm.model.Message;
+import org.jboss.bpm.model.MessageBuilder;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+import org.jboss.bpm.model.TaskBuilder;
+import org.jboss.bpm.model.Assignment.AssignTime;
+import org.jboss.bpm.model.Expression.ExpressionLanguage;
+import org.jboss.bpm.test.DefaultEngineTestCase;
+
+/**
+ * Modeler-defined Properties MAY be added to an activity. These Properties are "local" to the activity. These
+ * Properties are only for use within the processing of the activity. The fully delineated name of these properties is
+ * "<process name>.<activity name>.<property name>" (e.g., "Add Customer.Review Credit.Status").
+ * 
+ * https://jira.jboss.org/jira/browse/JBPM-1621
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ActivityPropertyTest extends DefaultEngineTestCase
+{
+  public void testActivityPropertyRead() throws Exception
+  {
+    Process proc = getProcess();
+    proc.startProcess();
+    proc.waitForEnd();
+    
+    Message endMessage = getMessages().get(0);
+    assertNotNull("EndMessage expected", endMessage);
+    assertEquals("bar", endMessage.getPropertyValue("propValue"));
+  }
+
+  protected Process getProcess() throws IOException
+  {
+    ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder();
+    procBuilder.addProcess("ActivityProperties").addStartEvent("Start").addSequenceFlow("TaskA");
+    TaskBuilder taskBuilder = procBuilder.addTask("TaskA");
+    taskBuilder.addProperty("foo", "bar").addSequenceFlow("End");
+    taskBuilder.addAssignment(AssignTime.Start, ExpressionLanguage.MVEL, "ActivityProperties_TaskA_foo", "propValue");
+    procBuilder.addEndEvent("End").addEventDetail(EventDetail.EventDetailType.Message).addMessageRef("EndMessage");
+    MessageBuilder msgBuilder = procBuilder.addMessage("EndMessage");
+    msgBuilder.addToRef(getTestID()).addProperty("propValue", null, true);
+    Process proc = procBuilder.getProcess();
+    return proc;
+  }
+}

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesDescriptorTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesDescriptorTest.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesDescriptorTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -1,48 +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.cts.process;
-
-// $Id$
-
-import java.io.IOException;
-import java.net.URL;
-
-import org.jboss.bpm.client.ProcessManager;
-import org.jboss.bpm.model.Process;
-
-/**
- * 
- * An ProcessPropertyTest using the Descriptor
- * 
- * @author thomas.diesler at jboss.com
- * @since 15-Aug-2008
- */
-public class ProcessPropertiesDescriptorTest extends ProcessPropertiesTest
-{
-  protected Process getProcess() throws IOException
-  {
-    URL procURL = getResourceURL("cts/process/process-properties-" + getDialect() + ".xml");
-    ProcessManager pm = ProcessManager.locateProcessManager();
-    Process proc = pm.createProcess(procURL);
-    return proc;
-  }
-}

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesMarshallerTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesMarshallerTest.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesMarshallerTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -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.cts.process;
-
-// $Id$
-
-import java.io.IOException;
-
-import org.jboss.bpm.client.ProcessManager;
-import org.jboss.bpm.model.Process;
-
-/**
- * 
- * An ProcessPropertyTest using the ProcessMarshaller
- * 
- * @author thomas.diesler at jboss.com
- * @since 15-Aug-2008
- */
-public class ProcessPropertiesMarshallerTest extends ProcessPropertiesTest
-{
-  protected Process getProcess() throws IOException
-  {
-    // Marshall the process to a string
-    Process proc = super.getProcess();
-    String procXML = marshallProcess(proc);
-    
-    // Recreate the process from the marshalled process
-    ProcessManager procManager = ProcessManager.locateProcessManager();
-    return procManager.createProcess(procXML);
-  }
-}

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesTest.java
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesTest.java	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -1,79 +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.cts.process;
-
-// $Id$
-
-import java.io.IOException;
-
-import org.jboss.bpm.model.EventDetail;
-import org.jboss.bpm.model.Message;
-import org.jboss.bpm.model.MessageBuilder;
-import org.jboss.bpm.model.Process;
-import org.jboss.bpm.model.ProcessBuilder;
-import org.jboss.bpm.model.ProcessBuilderFactory;
-import org.jboss.bpm.model.Assignment.AssignTime;
-import org.jboss.bpm.model.Expression.ExpressionLanguage;
-import org.jboss.bpm.test.DefaultEngineTestCase;
-
-/**
- * Modeler-defined Properties MAY be added to a Process. These Properties are "local" to the Process. All Tasks,
- * Sub-Process objects, and Sub-Processes that are embedded SHALL have access to these Properties. The fully delineated
- * name of these properties are "<process name>.<property name>" (e.g., "Add Customer.Customer Name"). If a process is
- * embedded within another Process, then the fully delineated name SHALL also be preceded by the Parent Process name for
- * as many Parents there are until the top level Process. 
- * 
- * https://jira.jboss.org/jira/browse/JBPM-1392
- * 
- * @author thomas.diesler at jboss.com
- * @since 15-Aug-2008
- */
-public class ProcessPropertiesTest extends DefaultEngineTestCase
-{
-  /**
-   * Test the the process properties can be used by Assignments
-   * and finally arrive in through the End Message
-   */
-  public void testProcessProperties() throws Exception
-  {
-    Process proc = getProcess();
-    proc.startProcess();
-    proc.waitForEnd();
-
-    Message endMessage = getMessages().get(0);
-    assertNotNull("EndMessage expected", endMessage);
-    assertEquals("bar", endMessage.getPropertyValue("propValue"));
-  }
-
-  protected Process getProcess() throws IOException
-  {
-    ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder();
-    procBuilder.addProcess("ProcessProperties").addStartEvent("Start").addSequenceFlow("TaskA");
-    procBuilder.addAssignment(AssignTime.Start, ExpressionLanguage.MVEL, "ProcessProperties_foo", "propValue");
-    procBuilder.addProperty("foo", "bar").addTask("TaskA").addSequenceFlow("End");
-    procBuilder.addEndEvent("End").addEventDetail(EventDetail.EventDetailType.Message).addMessageRef("EndMessage");
-    MessageBuilder msgBuilder = procBuilder.addMessage("EndMessage");
-    msgBuilder.addToRef(getTestID()).addProperty("propValue", null, true);
-    Process proc = procBuilder.getProcess();
-    return proc;
-  }
-}

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyDescriptorTest.java (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesDescriptorTest.java)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyDescriptorTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyDescriptorTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,48 @@
+/*
+ * 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.cts.process;
+
+// $Id$
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.Process;
+
+/**
+ * 
+ * An ProcessPropertyTest using the Descriptor
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ProcessPropertyDescriptorTest extends ProcessPropertyTest
+{
+  protected Process getProcess() throws IOException
+  {
+    URL procURL = getResourceURL("cts/process/process-property-" + getDialect() + ".xml");
+    ProcessManager pm = ProcessManager.locateProcessManager();
+    Process proc = pm.createProcess(procURL);
+    return proc;
+  }
+}

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyMarshallerTest.java (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesMarshallerTest.java)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyMarshallerTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyMarshallerTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,50 @@
+/*
+ * 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.cts.process;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.client.ProcessManager;
+import org.jboss.bpm.model.Process;
+
+/**
+ * 
+ * An ProcessPropertyTest using the ProcessMarshaller
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ProcessPropertyMarshallerTest extends ProcessPropertyTest
+{
+  protected Process getProcess() throws IOException
+  {
+    // Marshall the process to a string
+    Process proc = super.getProcess();
+    String procXML = marshallProcess(proc);
+    
+    // Recreate the process from the marshalled process
+    ProcessManager procManager = ProcessManager.locateProcessManager();
+    return procManager.createProcess(procXML);
+  }
+}

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyTest.java (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertiesTest.java)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyTest.java	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/java/org/jboss/bpm/cts/process/ProcessPropertyTest.java	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,79 @@
+/*
+ * 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.cts.process;
+
+// $Id$
+
+import java.io.IOException;
+
+import org.jboss.bpm.model.EventDetail;
+import org.jboss.bpm.model.Message;
+import org.jboss.bpm.model.MessageBuilder;
+import org.jboss.bpm.model.Process;
+import org.jboss.bpm.model.ProcessBuilder;
+import org.jboss.bpm.model.ProcessBuilderFactory;
+import org.jboss.bpm.model.Assignment.AssignTime;
+import org.jboss.bpm.model.Expression.ExpressionLanguage;
+import org.jboss.bpm.test.DefaultEngineTestCase;
+
+/**
+ * Modeler-defined Properties MAY be added to a Process. These Properties are "local" to the Process. All Tasks,
+ * Sub-Process objects, and Sub-Processes that are embedded SHALL have access to these Properties. The fully delineated
+ * name of these properties are "<process name>.<property name>" (e.g., "Add Customer.Customer Name"). If a process is
+ * embedded within another Process, then the fully delineated name SHALL also be preceded by the Parent Process name for
+ * as many Parents there are until the top level Process. 
+ * 
+ * https://jira.jboss.org/jira/browse/JBPM-1392
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 15-Aug-2008
+ */
+public class ProcessPropertyTest extends DefaultEngineTestCase
+{
+  /**
+   * Test the the process properties can be used by Assignments
+   * and finally arrive in through the End Message
+   */
+  public void testProcessProperties() throws Exception
+  {
+    Process proc = getProcess();
+    proc.startProcess();
+    proc.waitForEnd();
+
+    Message endMessage = getMessages().get(0);
+    assertNotNull("EndMessage expected", endMessage);
+    assertEquals("bar", endMessage.getPropertyValue("propValue"));
+  }
+
+  protected Process getProcess() throws IOException
+  {
+    ProcessBuilder procBuilder = ProcessBuilderFactory.newInstance().newProcessBuilder();
+    procBuilder.addProcess("ProcessProperties").addStartEvent("Start").addSequenceFlow("TaskA");
+    procBuilder.addAssignment(AssignTime.Start, ExpressionLanguage.MVEL, "ProcessProperties_foo", "propValue");
+    procBuilder.addProperty("foo", "bar").addTask("TaskA").addSequenceFlow("End");
+    procBuilder.addEndEvent("End").addEventDetail(EventDetail.EventDetailType.Message).addMessageRef("EndMessage");
+    MessageBuilder msgBuilder = procBuilder.addMessage("EndMessage");
+    msgBuilder.addToRef(getTestID()).addProperty("propValue", null, true);
+    Process proc = procBuilder.getProcess();
+    return proc;
+  }
+}

Added: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-inputset-api10.xml
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-inputset-api10.xml	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-inputset-api10.xml	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,24 @@
+<ns2:process name="ActivityInputSet" xmlns:ns2="urn:bpm.jboss:pdl-0.1">
+  <start name="Start">
+    <seqflow to="TaskA" />
+  </start>
+  <task taskType="None" name="TaskA">
+    <seqflow to="End" />
+    <input-set>
+      <property>
+        <name>frog</name>
+      </property>
+    </input-set>
+  </task>
+  <end name="End">
+    <message-result>
+      <messageRef nameRef="EndMessage" />
+    </message-result>
+  </end>
+  <message name="EndMessage">
+    <to>jboss.bpm:test=ActivityInputSetTest</to>
+    <property correlation="true">
+      <name>frog</name>
+    </property>
+  </message>
+</ns2:process>
\ No newline at end of file


Property changes on: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-inputset-api10.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-outputset-api10.xml
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-outputset-api10.xml	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-outputset-api10.xml	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,25 @@
+<ns2:process name="ActivityInputSet" xmlns:ns2="urn:bpm.jboss:pdl-0.1">
+  <start name="Start">
+    <seqflow to="TaskA" />
+  </start>
+  <task taskType="None" name="TaskA">
+    <seqflow to="End" />
+    <output-set>
+      <property>
+        <name>frog</name>
+        <value>kermit</value>
+      </property>
+    </output-set>
+  </task>
+  <end name="End">
+    <message-result>
+      <messageRef nameRef="EndMessage" />
+    </message-result>
+  </end>
+  <message name="EndMessage">
+    <to>jboss.bpm:test=ActivityOutputSetTest</to>
+    <property correlation="true">
+      <name>frog</name>
+    </property>
+  </message>
+</ns2:process>
\ No newline at end of file


Property changes on: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-outputset-api10.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-properties-api10.xml
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-properties-api10.xml	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-properties-api10.xml	2008-08-22 20:13:51 UTC (rev 1989)
@@ -1,27 +0,0 @@
-<ns2:process name="ActivityProperties" xmlns:ns2="urn:bpm.jboss:pdl-0.1">
-  <start name="Start">
-    <seqflow to="TaskA" />
-  </start>
-  <task taskType="None" name="TaskA">
-    <assignment time="Start">
-      <from lang="MVEL">ActivityProperties_TaskA_foo</from>
-      <to>propValue</to>
-    </assignment>
-    <property>
-      <name>foo</name>
-      <value>bar</value>
-    </property>
-    <seqflow to="End" />
-  </task>
-  <end name="End">
-    <message-result>
-      <messageRef nameRef="EndMessage" />
-    </message-result>
-  </end>
-  <message name="EndMessage">
-    <to>jboss.bpm:test=ActivityPropertiesTest</to>
-    <property correlation="true">
-      <name>propValue</name>
-    </property>
-  </message>
-</ns2:process>
\ No newline at end of file

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-property-api10.xml (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-properties-api10.xml)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-property-api10.xml	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/activity/activity-property-api10.xml	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,27 @@
+<ns2:process name="ActivityProperties" xmlns:ns2="urn:bpm.jboss:pdl-0.1">
+  <start name="Start">
+    <seqflow to="TaskA" />
+  </start>
+  <task taskType="None" name="TaskA">
+    <assignment time="Start">
+      <from lang="MVEL">ActivityProperties_TaskA_foo</from>
+      <to>propValue</to>
+    </assignment>
+    <property>
+      <name>foo</name>
+      <value>bar</value>
+    </property>
+    <seqflow to="End" />
+  </task>
+  <end name="End">
+    <message-result>
+      <messageRef nameRef="EndMessage" />
+    </message-result>
+  </end>
+  <message name="EndMessage">
+    <to>jboss.bpm:test=ActivityPropertyTest</to>
+    <property correlation="true">
+      <name>propValue</name>
+    </property>
+  </message>
+</ns2:process>
\ No newline at end of file

Deleted: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-properties-api10.xml
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-properties-api10.xml	2008-08-22 18:58:58 UTC (rev 1988)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-properties-api10.xml	2008-08-22 20:13:51 UTC (rev 1989)
@@ -1,27 +0,0 @@
-<ns2:process name="ProcessProperties" xmlns:ns2="urn:bpm.jboss:pdl-0.1">
-  <start name="Start">
-    <assignment time="Start">
-      <from lang="MVEL">ProcessProperties_foo</from>
-      <to>propValue</to>
-    </assignment>
-    <seqflow to="TaskA" />
-  </start>
-  <task taskType="None" name="TaskA">
-    <seqflow to="End" />
-  </task>
-  <end name="End">
-    <message-result>
-      <messageRef nameRef="EndMessage" />
-    </message-result>
-  </end>
-  <message name="EndMessage">
-    <to>jboss.bpm:test=ProcessPropertiesTest</to>
-    <property correlation="true">
-      <name>propValue</name>
-    </property>
-  </message>
-  <property>
-    <name>foo</name>
-    <value>bar</value>
-  </property>
-</ns2:process>
\ No newline at end of file

Copied: jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-property-api10.xml (from rev 1987, jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-properties-api10.xml)
===================================================================
--- jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-property-api10.xml	                        (rev 0)
+++ jbossbpm/spec/trunk/modules/testsuite/src/test/resources/cts/process/process-property-api10.xml	2008-08-22 20:13:51 UTC (rev 1989)
@@ -0,0 +1,27 @@
+<ns2:process name="ProcessProperties" xmlns:ns2="urn:bpm.jboss:pdl-0.1">
+  <start name="Start">
+    <assignment time="Start">
+      <from lang="MVEL">ProcessProperties_foo</from>
+      <to>propValue</to>
+    </assignment>
+    <seqflow to="TaskA" />
+  </start>
+  <task taskType="None" name="TaskA">
+    <seqflow to="End" />
+  </task>
+  <end name="End">
+    <message-result>
+      <messageRef nameRef="EndMessage" />
+    </message-result>
+  </end>
+  <message name="EndMessage">
+    <to>jboss.bpm:test=ProcessPropertyTest</to>
+    <property correlation="true">
+      <name>propValue</name>
+    </property>
+  </message>
+  <property>
+    <name>foo</name>
+    <value>bar</value>
+  </property>
+</ns2:process>
\ No newline at end of file




More information about the jbpm-commits mailing list