[overlord-commits] Overlord SVN: r987 - in activity-monitor/trunk: doc and 20 other directories.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Sun Mar 7 06:45:22 EST 2010


Author: heiko.braun at jboss.com
Date: 2010-03-07 06:45:21 -0500 (Sun, 07 Mar 2010)
New Revision: 987

Added:
   activity-monitor/trunk/activity-monitor-parent.iml
   activity-monitor/trunk/doc/
   activity-monitor/trunk/doc/BPAF_2009-02-20.pdf
   activity-monitor/trunk/emu/
   activity-monitor/trunk/emu/pom.xml
   activity-monitor/trunk/emu/src/
   activity-monitor/trunk/emu/src/main/
   activity-monitor/trunk/emu/src/main/java/
   activity-monitor/trunk/emu/src/main/java/org/
   activity-monitor/trunk/emu/src/main/java/org/jboss/
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Emulation.java
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/EventHandler.java
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/OrderCheckoutProcess.java
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Process.java
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessEmulation.java
   activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessRunnable.java
   activity-monitor/trunk/gui/
   activity-monitor/trunk/model/
   activity-monitor/trunk/model/pom.xml
   activity-monitor/trunk/model/src/
   activity-monitor/trunk/model/src/main/
   activity-monitor/trunk/model/src/main/java/
   activity-monitor/trunk/model/src/main/java/org/
   activity-monitor/trunk/model/src/main/java/org/jboss/
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/HibernateUtil.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/Runner.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/BPAFContext.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Event.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/ObjectFactory.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/State.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/StateAdapter.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Tuple.java
   activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/package-info.java
   activity-monitor/trunk/model/src/main/resources/
   activity-monitor/trunk/model/src/main/resources/bpaf.xsd
   activity-monitor/trunk/model/src/main/resources/hibernate.cfg.xml
   activity-monitor/trunk/pom.xml
   activity-monitor/trunk/server/
Log:
begin activity monitor project

Added: activity-monitor/trunk/activity-monitor-parent.iml
===================================================================
--- activity-monitor/trunk/activity-monitor-parent.iml	                        (rev 0)
+++ activity-monitor/trunk/activity-monitor-parent.iml	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
+    <output url="file://$MODULE_DIR$/target/classes" />
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <excludeFolder url="file://$MODULE_DIR$/target" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>
+

Added: activity-monitor/trunk/doc/BPAF_2009-02-20.pdf
===================================================================
(Binary files differ)


Property changes on: activity-monitor/trunk/doc/BPAF_2009-02-20.pdf
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: activity-monitor/trunk/emu/pom.xml
===================================================================
--- activity-monitor/trunk/emu/pom.xml	                        (rev 0)
+++ activity-monitor/trunk/emu/pom.xml	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,31 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <name>JBoss BPM - ActivityMonitor::Emulation</name>
+    <groupId>org.jboss.bpm</groupId>
+    <artifactId>activity-monitor-emu</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <!-- Parent -->
+    <parent>
+        <groupId>org.jboss.bpm</groupId>
+        <artifactId>activity-monitor-parent</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.jboss.bpm</groupId>
+            <artifactId>activity-monitor-model</artifactId>
+            <version>${version}</version>
+        </dependency>
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.1.12</version>
+        </dependency>
+    </dependencies>
+
+</project>

Added: activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Emulation.java
===================================================================
--- activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Emulation.java	                        (rev 0)
+++ activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Emulation.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,172 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.emu;
+
+import org.jboss.bpm.monarch.model.bpaf.BPAFContext;
+import org.jboss.bpm.monarch.model.bpaf.Event;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+import javax.xml.bind.Marshaller;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.concurrent.*;
+
+public class Emulation implements ProcessEmulation, Runnable
+{
+  final static int POOL_SIZE = 1;
+
+  private final ThreadPoolExecutor pool;
+  private BlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<Runnable>(POOL_SIZE);
+
+  private Thread daemon = null;
+  private boolean shutdown = false;
+  private boolean suspend = false;
+  private EventHandler eventHandler;
+
+  /*private static Class[] processDefinitions = new Class[] {
+      OrderCheckoutProcess.class
+  };*/
+
+  public Emulation(EventHandler handler)
+  {
+    this.eventHandler = handler; 
+    pool = new ThreadPoolExecutor(POOL_SIZE, POOL_SIZE, 20000, TimeUnit.MILLISECONDS, workQueue);
+  }
+
+  public void run()
+  {
+    while(!shutdown)
+    {
+      try
+      {
+        System.out.println("> Pool active: "+ pool.getActiveCount());
+        System.out.println("> Pool capacity: "+ workQueue.remainingCapacity());       
+
+        if(!suspend)
+        {
+
+          OrderCheckoutProcess p = new OrderCheckoutProcess();
+
+          ProcessRunnable process = new ProcessRunnable(p, eventHandler);
+          try
+          {
+            pool.execute(process);
+            System.out.println("\tStart new process");            
+            
+          }
+          catch (RejectedExecutionException e)
+          {
+            System.out.println("\tWaiting process termination");
+          }
+        }
+
+        Thread.sleep(1000);
+      }
+      catch (Exception e)
+      {
+        e.printStackTrace();
+        shutdown = true;
+      }
+    }
+  }
+
+  public void suspend()
+  {
+    suspend = true;
+  }
+
+  public void start()
+  {
+
+    if(null==daemon) // basically lazy init
+    {      
+      shutdown = false;
+      daemon = new Thread(this);
+      daemon.start();
+    }
+    else
+    {
+      suspend = false;
+    }
+  }
+
+  public void shutdown()
+  {
+    shutdown = true;
+    pool.shutdown();
+  }
+
+
+  public static void main(String[] args) throws Exception
+  {
+
+    final JAXBContext jaxb = BPAFContext.newInstance();
+    final Marshaller m = jaxb.createMarshaller();
+    m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
+
+    File file = new File(System.getProperty("user.home") + "/bpaf_data.txt");
+    if(file.exists()) file.delete();
+    
+
+    final OutputStream out = new FileOutputStream(file);
+
+    Emulation emu = new Emulation(new EventHandler()
+    {
+      public void processEvent(Event bpafEvent)
+      {
+        try
+        {
+          m.marshal(bpafEvent, out);
+          out.write("\n".getBytes());
+        }
+        catch (Exception e)
+        {
+          throw new RuntimeException(e);
+        }
+      }
+    });
+
+    emu.start();
+
+    Runtime.getRuntime().addShutdownHook(
+        new Thread(
+            new Runnable()
+            {
+              public void run()
+              {
+                try
+                {
+                  out.close();
+                }
+                catch (IOException e)
+                {
+                  e.printStackTrace();  
+                }
+              }
+            }
+        )
+    );
+  }
+}

Added: activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/EventHandler.java
===================================================================
--- activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/EventHandler.java	                        (rev 0)
+++ activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/EventHandler.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.emu;
+
+import org.jboss.bpm.monarch.model.bpaf.Event;
+
+/**
+ * @author: Heiko Braun <hbraun at redhat.com>
+ * @date: Mar 5, 2010
+ */
+public interface EventHandler
+{
+  void processEvent(Event bpafEvent);
+}

Added: activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/OrderCheckoutProcess.java
===================================================================
--- activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/OrderCheckoutProcess.java	                        (rev 0)
+++ activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/OrderCheckoutProcess.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,129 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.emu;
+
+import java.util.UUID;
+
+public class OrderCheckoutProcess implements Process
+{
+  private final String correlationId;
+
+  public enum Activity {
+    None,
+    VerifyAvailability,
+    RequestBillingDetails,
+    ProcessBilling,
+    ShipProduct,
+    Delivered,
+    Ended
+  };
+
+  private Activity current = Activity.None;
+
+  private long start;
+  private long end;
+
+  public OrderCheckoutProcess()
+  {
+    this.correlationId = UUID.randomUUID().toString(); 
+  }
+
+  public String getName()
+  {
+    return getClass().getSimpleName(); 
+  }
+
+  public long getStarted()
+  {
+    return start;
+  }
+
+  public long getEnded()
+  {
+    return end;
+  }
+
+  public String getInstanceId()
+  {
+    return this.correlationId;
+  }
+
+  public String getActivity()
+  {
+    return current.toString(); 
+  }
+
+  public String invoke()
+  {
+    Activity next = null;
+
+    switch (current)
+    {
+      case None:
+        start = System.currentTimeMillis();
+        next = Activity.VerifyAvailability;
+        break;
+      case VerifyAvailability:
+        next = Activity.RequestBillingDetails;
+        break;
+      case RequestBillingDetails:
+        next = Activity.ProcessBilling;
+        break;
+      case ProcessBilling:
+        next = Activity.ShipProduct;
+        break;
+      case ShipProduct:
+        next = Activity.Delivered;
+        break;
+      case Delivered:
+        next = Activity.Ended;
+        end = System.currentTimeMillis();
+        break;
+      default:
+        throw new IllegalStateException("Unknown state "+ current);
+    }
+
+    current = next;
+    return current.toString();
+  }
+
+  public boolean isActive()
+  {
+    return (current!=Activity.Ended && current!=Activity.None);
+  }
+
+  public long getExectime()
+  {
+    if(0==start)
+      throw new IllegalArgumentException("No start time recorded");
+    
+    return end -  start;
+  }
+
+  @Override
+  public String toString()
+  {
+    return "OrderCheckoutProcess{" +
+        "activity=" + current +
+        '}';
+  }
+}

Added: activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Process.java
===================================================================
--- activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Process.java	                        (rev 0)
+++ activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/Process.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.emu;
+
+public interface Process
+{
+  String getName();
+  String getInstanceId();
+    
+  String invoke();
+
+  boolean isActive();
+
+  long getExectime();
+
+  long getStarted();
+  long getEnded();
+
+  String getActivity();
+}

Added: activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessEmulation.java
===================================================================
--- activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessEmulation.java	                        (rev 0)
+++ activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessEmulation.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.emu;
+
+public interface ProcessEmulation
+{
+  public void start();
+  public void suspend();
+  public void shutdown();
+}

Added: activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessRunnable.java
===================================================================
--- activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessRunnable.java	                        (rev 0)
+++ activity-monitor/trunk/emu/src/main/java/org/jboss/bpm/monarch/emu/ProcessRunnable.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,140 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.emu;
+
+import org.jboss.bpm.monarch.model.bpaf.Event;
+import org.jboss.bpm.monarch.model.bpaf.State;
+
+import java.util.Random;
+
+public class ProcessRunnable implements Runnable
+{
+  private Process process;  
+  private boolean active = true;
+  EventHandler handler;
+
+  public ProcessRunnable(Process process, EventHandler handler)
+  {
+    this.process = process;
+    this.handler = handler;
+  }
+
+  public void run()
+  {
+    while(active)
+    {
+      try
+      {
+        // lifecycle start event
+        if(process.getActivity().equalsIgnoreCase("none"))
+        {
+          Event startEvent = new Event(true);
+          startEvent.setProcessName(process.getName());
+          startEvent.setProcessInstanceID(process.getInstanceId());
+          startEvent.getEventDetails().setCurrentState(State.Open);
+
+          handler.processEvent(startEvent);
+        }
+
+        // activity events
+
+        long startedAt = System.currentTimeMillis();
+        String actitivity = invokeActivity();
+        long duration = System.currentTimeMillis()-startedAt;
+
+        System.out.println(process.getName() + ": "+actitivity +" ("+duration+" ms)");
+
+        handler.processEvent(createActivityEvent(actitivity, State.Open, startedAt));
+        handler.processEvent(createActivityEvent(actitivity, State.Closed));
+
+        active = process.isActive();
+      }
+      catch (InterruptedException e)
+      {
+        e.printStackTrace();
+      }
+    }
+
+    System.out.println("Terminate " + process + "("+process.getExectime()+" ms)");
+
+    // lifecycle end event
+    Event endEvent = new Event(true);
+    endEvent.setProcessName(process.getName());
+    endEvent.setProcessInstanceID(process.getInstanceId());        
+    endEvent.getEventDetails().setCurrentState(State.Closed);
+
+    handler.processEvent(endEvent);
+  }
+
+  private Event createActivityEvent(String actitivity, State state)
+  {
+    Event activityEvent = new Event(true);
+    activityEvent.setProcessName(process.getName());
+    activityEvent.setActivityDefinitionID(actitivity);
+    activityEvent.setActivityInstanceID(actitivity+"_"+System.currentTimeMillis());
+    activityEvent.getEventDetails().setCurrentState(state);
+    return activityEvent;
+  }
+
+  private Event createActivityEvent(String actitivity, State state, long timestamp)
+  {
+    Event event = new Event();
+    event.setTimestamp(timestamp);
+    event.setProcessName(process.getName());
+    event.setProcessInstanceID(process.getInstanceId());
+    event.setActivityDefinitionID(actitivity);
+    event.setActivityInstanceID(actitivity+"_"+System.currentTimeMillis());
+    event.getEventDetails().setCurrentState(state);
+    return event;
+  }
+
+  private String invokeActivity()
+      throws InterruptedException
+  {
+    String activity = process.invoke();
+
+    Random randomGenerator = new Random();
+    int randomSleep = randomIntRange(500, 1200, randomGenerator);
+    Thread.sleep(randomSleep);
+    return activity;
+  }
+
+  private static int randomIntRange(int aStart, int aEnd, Random aRandom)
+  {
+    if ( aStart > aEnd )
+      throw new IllegalArgumentException("Start cannot exceed End.");
+
+    //get the range, casting to long to avoid overflow problems
+    long range = (long)aEnd - (long)aStart + 1;
+
+    // compute a fraction of the range, 0 <= frac < range
+    long fraction = (long)(range * aRandom.nextDouble());
+    int randomNumber =  (int)(fraction + aStart);
+
+    return randomNumber;
+  }
+
+  public void setActive(boolean active)
+  {
+    this.active = active;
+  }
+}

Added: activity-monitor/trunk/model/pom.xml
===================================================================
--- activity-monitor/trunk/model/pom.xml	                        (rev 0)
+++ activity-monitor/trunk/model/pom.xml	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,43 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <name>JBoss BPM - ActivityMonitor::Model</name>
+    <groupId>org.jboss.bpm</groupId>
+    <artifactId>activity-monitor-model</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>jar</packaging>
+
+    <!-- Parent -->
+    <parent>
+        <groupId>org.jboss.bpm</groupId>
+        <artifactId>activity-monitor-parent</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.hibernate</groupId>
+            <artifactId>hibernate-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.hibernate</groupId>
+            <artifactId>hibernate-annotations</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>javassist</groupId>
+            <artifactId>javassist</artifactId>
+        </dependency>
+    </dependencies>
+
+</project>

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/HibernateUtil.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/HibernateUtil.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/HibernateUtil.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.model;
+
+import org.hibernate.HibernateException;
+import org.hibernate.Session;
+import org.hibernate.SessionFactory;
+import org.hibernate.cfg.AnnotationConfiguration;
+import org.jboss.bpm.monarch.model.bpaf.Event;
+import org.jboss.bpm.monarch.model.bpaf.Tuple;
+
+/**
+ * @author: Heiko Braun <hbraun at redhat.com>
+ * @date: Mar 6, 2010
+ */
+public class HibernateUtil {
+
+  private static final SessionFactory sessionFactory;
+
+  static
+  {
+    try {
+
+      sessionFactory = new AnnotationConfiguration()
+                    .addPackage("org.jboss.bpm.monarch.model.bpaf") //the fully qualified package name
+                    .addAnnotatedClass(Event.class)
+                    .addAnnotatedClass(Tuple.class)
+                    //.addAnnotatedClass(State.class)                                        
+                    .configure().buildSessionFactory();
+    } catch (Throwable ex) {
+      // Log exception!
+      throw new ExceptionInInitializerError(ex);
+    }
+  }
+
+  public static Session getSession() throws HibernateException
+  {
+    return sessionFactory.openSession();
+  }
+}
\ No newline at end of file

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/Runner.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/Runner.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/Runner.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.model;
+
+import org.hibernate.Session;
+
+/**
+ * @author: Heiko Braun <hbraun at redhat.com>
+ * @date: Mar 6, 2010
+ */
+public class Runner
+{
+  public static void main(String[] args)
+  {
+    Session session = HibernateUtil.getSession();
+    
+  }
+}

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/BPAFContext.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/BPAFContext.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/BPAFContext.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.model.bpaf;
+
+import javax.xml.bind.JAXBContext;
+import javax.xml.bind.JAXBException;
+
+/**
+ * @author: Heiko Braun <hbraun at redhat.com>
+ * @date: Mar 5, 2010
+ */
+public class BPAFContext
+{
+  public static JAXBContext newInstance()
+  {
+    try
+    {
+      JAXBContext jaxbContext = JAXBContext.newInstance(
+          Event.class,
+          Tuple.class,
+          State.class
+      );
+      
+      return jaxbContext;
+    }
+    catch (JAXBException e)
+    {
+      throw new RuntimeException(e);
+    }
+  }
+}

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Event.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Event.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Event.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,466 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 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: 2010.03.05 at 08:26:33 PM CET 
+//
+
+
+package org.jboss.bpm.monarch.model.bpaf;
+
+import org.hibernate.annotations.CollectionOfElements;
+
+import java.util.ArrayList;
+import java.util.List;
+import javax.persistence.*;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlSchemaType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+import javax.xml.datatype.XMLGregorianCalendar;
+
+
+/**
+ * <p>Java class for anonymous complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * &lt;complexType>
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="EventDetails">
+ *           &lt;complexType>
+ *             &lt;complexContent>
+ *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 &lt;attribute name="CurrentState" use="required" type="{http://www.wfmc.org/2009/BPAF2.0}State" />
+ *                 &lt;attribute name="PreviousState" type="{http://www.wfmc.org/2009/BPAF2.0}State" />
+ *               &lt;/restriction>
+ *             &lt;/complexContent>
+ *           &lt;/complexType>
+ *         &lt;/element>
+ *         &lt;element name="DataElement" type="{http://www.w3.org/2001/XMLSchema}anyType" maxOccurs="unbounded" minOccurs="0"/>
+ *       &lt;/sequence>
+ *       &lt;attribute name="EventID" use="required" type="{http://www.wfmc.org/2009/BPAF2.0}ID" />
+ *       &lt;attribute name="ServerID" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *       &lt;attribute name="ProcessDefinitionID" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *       &lt;attribute name="ProcessInstanceID" use="required" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *       &lt;attribute name="ProcessName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="ActivityDefinitionID" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *       &lt;attribute name="ActivityInstanceID" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" />
+ *       &lt;attribute name="ActivityName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       &lt;attribute name="Timestamp" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "", propOrder = {
+    "eventDetails",
+    "dataElement"
+})
+ at XmlRootElement(name = "Event")
+ at Entity
+ at Table(name="BPAF_EVENT")
+public class Event {
+
+  @XmlElement(name = "EventDetails", required = true)
+  protected Event.EventDetails eventDetails;
+
+  @XmlElement(name = "DataElement")
+  protected List<Tuple> dataElement;
+
+  @XmlAttribute(name = "EventID", required = true)
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  protected String eventID;
+
+  @XmlAttribute(name = "ServerID")
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "NMTOKEN")
+  protected String serverID;
+
+  @XmlAttribute(name = "ProcessDefinitionID", required = true)
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "NMTOKEN")
+  protected String processDefinitionID;
+
+  @XmlAttribute(name = "ProcessInstanceID", required = true)
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "NMTOKEN")
+  protected String processInstanceID;
+
+  @XmlAttribute(name = "ProcessName")
+  protected String processName;
+
+  @XmlAttribute(name = "ActivityDefinitionID")
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "NMTOKEN")
+  protected String activityDefinitionID;
+
+  @XmlAttribute(name = "ActivityInstanceID")
+  @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
+  @XmlSchemaType(name = "NMTOKEN")
+  protected String activityInstanceID;
+
+  @XmlAttribute(name = "ActivityName")
+  protected String activityName;
+
+  @XmlAttribute(name = "Timestamp", required = true)
+  @XmlSchemaType(name = "long")
+  protected long timestamp;
+
+  public Event()
+  {
+  }
+
+  public Event(boolean implicitTimestamp)
+  {
+    if(implicitTimestamp)
+      this.timestamp = System.currentTimeMillis();
+  }
+
+  /**
+   * Gets the value of the eventDetails property.
+   *
+   * @return
+   *     possible object is
+   *     {@link Event.EventDetails }
+   *
+   */
+  public Event.EventDetails getEventDetails() {
+    if(null==eventDetails)
+      eventDetails = new EventDetails();
+    return eventDetails;
+  }
+
+  /**
+   * Sets the value of the eventDetails property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link Event.EventDetails }
+   *
+   */
+  public void setEventDetails(Event.EventDetails value) {
+    this.eventDetails = value;
+  }
+
+  /**
+   * Gets the value of the dataElement property.
+   *
+   * <p>
+   * This accessor method returns a reference to the live list,
+   * not a snapshot. Therefore any modification you make to the
+   * returned list will be present inside the JAXB object.
+   * This is why there is not a <CODE>set</CODE> method for the dataElement property.
+   *
+   * <p>
+   * For example, to add a new item, do as follows:
+   * <pre>
+   *    getDataElement().add(newItem);
+   * </pre>
+   *
+   *
+   * <p>
+   * Objects of the following type(s) are allowed in the list
+   * {@link Object }
+   *
+   *
+   */
+  @OneToMany(mappedBy="event")
+  public List<Tuple> getDataElement() {
+    if (dataElement == null) {
+      dataElement = new ArrayList<Tuple>();
+    }
+    return this.dataElement;
+  }
+
+  public void setDataElement(List<Tuple> data) {
+    this.dataElement = data;
+  }
+
+  /**
+   * Gets the value of the eventID property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Id @GeneratedValue(strategy=GenerationType.AUTO)
+  public String getEventID() {
+    return eventID;
+  }
+
+  /**
+   * Sets the value of the eventID property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setEventID(String value) {
+    this.eventID = value;
+  }
+
+  /**
+   * Gets the value of the serverID property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Basic(optional = true)
+  public String getServerID() {
+    return serverID;
+  }
+
+  /**
+   * Sets the value of the serverID property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setServerID(String value) {
+    this.serverID = value;
+  }
+
+  /**
+   * Gets the value of the processDefinitionID property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Basic
+  public String getProcessDefinitionID() {
+    return processDefinitionID;
+  }
+
+  /**
+   * Sets the value of the processDefinitionID property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setProcessDefinitionID(String value) {
+    this.processDefinitionID = value;
+  }
+
+  /**
+   * Gets the value of the processInstanceID property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Basic
+  public String getProcessInstanceID() {
+    return processInstanceID;
+  }
+
+  /**
+   * Sets the value of the processInstanceID property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setProcessInstanceID(String value) {
+    this.processInstanceID = value;
+  }
+
+  /**
+   * Gets the value of the processName property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Basic(optional = true)
+  public String getProcessName() {
+    return processName;
+  }
+
+  /**
+   * Sets the value of the processName property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setProcessName(String value) {
+    this.processName = value;
+  }
+
+  /**
+   * Gets the value of the activityDefinitionID property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Basic(optional = true)
+  public String getActivityDefinitionID() {
+    return activityDefinitionID;
+  }
+
+  /**
+   * Sets the value of the activityDefinitionID property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setActivityDefinitionID(String value) {
+    this.activityDefinitionID = value;
+  }
+
+  /**
+   * Gets the value of the activityInstanceID property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Basic(optional = true)
+  public String getActivityInstanceID() {
+    return activityInstanceID;
+  }
+
+  /**
+   * Sets the value of the activityInstanceID property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setActivityInstanceID(String value) {
+    this.activityInstanceID = value;
+  }
+
+  /**
+   * Gets the value of the activityName property.
+   *
+   * @return
+   *     possible object is
+   *     {@link String }
+   *
+   */
+  @Basic(optional = true)
+  public String getActivityName() {
+    return activityName;
+  }
+
+  /**
+   * Sets the value of the activityName property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link String }
+   *
+   */
+  public void setActivityName(String value) {
+    this.activityName = value;
+  }
+
+  /**
+   * Gets the value of the timestamp property.
+   *
+   * @return
+   *     possible object is
+   *     {@link XMLGregorianCalendar }
+   *
+   */
+  public long getTimestamp() {
+    return timestamp;
+  }
+
+  /**
+   * Sets the value of the timestamp property.
+   *
+   * @param value
+   *     allowed object is
+   *     {@link XMLGregorianCalendar }
+   *
+   */
+  public void setTimestamp(long value) {
+    this.timestamp = value;
+  }
+
+
+  /**
+   * <p>Java class for anonymous complex type.
+   *
+   * <p>The following schema fragment specifies the expected content contained within this class.
+   *
+   * <pre>
+   * &lt;complexType>
+   *   &lt;complexContent>
+   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+   *       &lt;attribute name="CurrentState" use="required" type="{http://www.wfmc.org/2009/BPAF2.0}State" />
+   *       &lt;attribute name="PreviousState" type="{http://www.wfmc.org/2009/BPAF2.0}State" />
+   *     &lt;/restriction>
+   *   &lt;/complexContent>
+   * &lt;/complexType>
+   * </pre>
+   *
+   *
+   */
+  @XmlAccessorType(XmlAccessType.FIELD)
+  @XmlType(name = "")
+  @Embeddable
+  public static class EventDetails {
+
+    @XmlAttribute(name = "CurrentState", required = true)
+    protected State currentState;
+    @XmlAttribute(name = "PreviousState")
+    protected State previousState;
+
+    @Basic()
+    public State getCurrentState() {
+      return this.currentState;
+    }
+
+    public void setCurrentState(State currentState)
+    {
+      this.currentState = currentState;
+    }
+
+    @Basic(optional = true)
+    public State getPreviousState() {
+      return this.previousState;
+    }
+
+    public void setPreviousState(State previousState)
+    {
+      this.previousState = previousState;
+    }
+
+  }
+
+}

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/ObjectFactory.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/ObjectFactory.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/ObjectFactory.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,55 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 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: 2010.03.05 at 08:26:33 PM CET 
+//
+
+
+package org.jboss.bpm.monarch.model.bpaf;
+
+import javax.xml.bind.annotation.XmlRegistry;
+
+
+/**
+ * This object contains factory methods for each 
+ * Java content interface and Java element interface 
+ * generated in the org.jboss.bpm.monarch.model.bpaf 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 a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.bpm.monarch.model.bpaf
+     * 
+     */
+    public ObjectFactory() {
+    }
+
+    /**
+     * Create an instance of {@link Event.EventDetails }
+     * 
+     */
+    public Event.EventDetails createEventEventDetails() {
+        return new Event.EventDetails();
+    }
+
+    /**
+     * Create an instance of {@link Event }
+     * 
+     */
+    public Event createEvent() {
+        return new Event();
+    }
+
+}

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/State.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/State.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/State.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.model.bpaf;
+
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+/**
+ * BPAF relies on a single state model that is based on both the Wf-XML state model
+ * and the BPEL4People/WS-HumanTask state model.
+ * 
+ * @author: Heiko Braun <hbraun at redhat.com>
+ * @date: Mar 5, 2010
+ */
+ at XmlRootElement(namespace = "http://www.wfmc.org/2009/BPAF2.0", name="State")
+ at XmlJavaTypeAdapter(StateAdapter.class)
+public enum State
+{
+  Open,
+  Open_NotRunning,
+  Open_NotRunning_Ready,
+  Open_NotRunning_Assigned,
+  Open_NotRunning_Reserved,
+  Open_NotRunning_Suspended,
+  Open_NotRunning_Suspended_Assigned,
+  Open_NotRunning_Suspended_Reserved,
+  Open_Running,
+  Open_Running_InProgress,
+  Open_Running_Suspended,
+  Closed,
+  Closed_Completed,
+  Closed_Completed_Success,
+  Closed_Completed_Failed,
+  Closed_Cancelled,
+  Closed_Cancelled_Exited,
+  Closed_Cancelled_Error,
+  Closed_Cancelled_Obsolete,
+  Closed_Cancelled_Aborted,
+  Closed_Cancelled_Terminated
+}

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/StateAdapter.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/StateAdapter.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/StateAdapter.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.model.bpaf;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+/**
+ * @author: Heiko Braun <hbraun at redhat.com>
+ * @date: Mar 6, 2010
+ */
+public class StateAdapter extends XmlAdapter<String, State>
+{
+  @Override
+  public State unmarshal(String v) throws Exception
+  {
+    return State.valueOf(v);
+  }
+
+  @Override
+  public String marshal(State v) throws Exception
+  {
+    if(null==v) return null;
+    else return v.toString(); 
+  }
+}

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Tuple.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Tuple.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/Tuple.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,89 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.monarch.model.bpaf;
+
+import org.hibernate.annotations.GenericGenerator;
+
+import javax.persistence.*;
+import javax.xml.bind.annotation.*;
+
+/**
+ * @author: Heiko Braun <hbraun at redhat.com>
+ * @date: Mar 6, 2010
+ */
+ at XmlRootElement
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at Entity
+ at Table(name="BPAF_EVENT_DATA")
+public class Tuple
+{
+
+  private String id;
+
+  private String key;
+  private String value;
+  private Event event;  
+
+  @ManyToOne( cascade = {CascadeType.PERSIST, CascadeType.MERGE})
+  @JoinColumn(name="EVENT_ID")
+  @XmlTransient
+  public Event getEvent() {
+    return event;
+  }
+
+  public void setEvent(Event event)
+  {
+    this.event = event;
+  }
+
+  @Id @GeneratedValue(generator="system-uuid")
+  @GenericGenerator(name="system-uuid", strategy = "uuid")
+  public String getId()
+  {
+    return id;
+  }
+
+  public void setId(String id)
+  {
+    this.id = id;
+  }
+
+  public String getKey()
+  {
+    return key;
+  }
+
+  public void setKey(String key)
+  {
+    this.key = key;
+  }
+
+  public String getValue()
+  {
+    return value;
+  }
+
+  public void setValue(String value)
+  {
+    this.value = value;
+  }
+}

Added: activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/package-info.java
===================================================================
--- activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/package-info.java	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/java/org/jboss/bpm/monarch/model/bpaf/package-info.java	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,9 @@
+//
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 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: 2010.03.05 at 08:26:33 PM CET 
+//
+
+ at javax.xml.bind.annotation.XmlSchema(namespace = "http://www.wfmc.org/2009/BPAF2.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
+package org.jboss.bpm.monarch.model.bpaf;

Added: activity-monitor/trunk/model/src/main/resources/bpaf.xsd
===================================================================
--- activity-monitor/trunk/model/src/main/resources/bpaf.xsd	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/resources/bpaf.xsd	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- edited with XMLSpy v2008 (http://www.altova.com) by Michael zur Muehlen (Stevens Institute of Technology) -->
+<xs:schema xmlns:bpaf="http://www.wfmc.org/2009/BPAF2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.wfmc.org/2009/BPAF2.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
+    <xs:element name="Event">
+        <xs:annotation>
+            <xs:documentation>Business Process Analytics Format Event</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="EventDetails">
+                    <xs:complexType>
+                        <xs:attribute name="CurrentState" type="bpaf:State" use="required"/>
+                        <xs:attribute name="PreviousState" type="bpaf:State"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="DataElement" minOccurs="0" maxOccurs="unbounded"/>
+            </xs:sequence>
+            <xs:attribute name="EventID" type="bpaf:ID" use="required"/>
+            <xs:attribute name="ServerID" type="xs:NMTOKEN"/>
+            <xs:attribute name="ProcessDefinitionID" type="xs:NMTOKEN" use="required"/>
+            <xs:attribute name="ProcessInstanceID" type="xs:NMTOKEN" use="required"/>
+            <xs:attribute name="ProcessName" type="xs:string"/>
+            <xs:attribute name="ActivityDefinitionID" type="xs:NMTOKEN"/>
+            <xs:attribute name="ActivityInstanceID" type="xs:NMTOKEN"/>
+            <xs:attribute name="ActivityName" type="xs:string"/>
+            <xs:attribute name="Timestamp" type="xs:dateTime" use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:simpleType name="State">
+        <xs:annotation>
+            <xs:documentation>Enumeration of Possible Process and Activity States</xs:documentation>
+        </xs:annotation>
+        <xs:list>
+            <xs:simpleType>
+                <xs:restriction base="xs:string">
+                    <xs:enumeration value="Open"/>
+                    <xs:enumeration value="Open.NotRunning"/>
+                    <xs:enumeration value="Open.NotRunning.Ready"/>
+                    <xs:enumeration value="Open.NotRunning.Assigned"/>
+                    <xs:enumeration value="Open.NotRunning.Reserved"/>
+                    <xs:enumeration value="Open.NotRunning.Suspended"/>
+                    <xs:enumeration value="Open.NotRunning.Suspended.Assigned"/>
+                    <xs:enumeration value="Open.NotRunning.Suspended.Reserved"/>
+                    <xs:enumeration value="Open.Running"/>
+                    <xs:enumeration value="Open.Running.InProgress"/>
+                    <xs:enumeration value="Open.Running.Suspended"/>
+                    <xs:enumeration value="Closed"/>
+                    <xs:enumeration value="Closed.Completed"/>
+                    <xs:enumeration value="Closed.Completed.Success"/>
+                    <xs:enumeration value="Closed.Completed.Failed"/>
+                    <xs:enumeration value="Closed.Cancelled"/>
+                    <xs:enumeration value="Closed.Cancelled.Exited"/>
+                    <xs:enumeration value="Closed.Cancelled.Error"/>
+                    <xs:enumeration value="Closed.Cancelled.Obsolete"/>
+                    <xs:enumeration value="Closed.Cancelled.Aborted"/>
+                    <xs:enumeration value="Closed.Cancelled.Terminated"/>
+                </xs:restriction>
+            </xs:simpleType>
+        </xs:list>
+    </xs:simpleType>
+    <xs:simpleType name="ID">
+        <xs:annotation>
+            <xs:documentation>Namespace for Event Identifiers</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:NMTOKEN"/>
+    </xs:simpleType>
+</xs:schema>

Added: activity-monitor/trunk/model/src/main/resources/hibernate.cfg.xml
===================================================================
--- activity-monitor/trunk/model/src/main/resources/hibernate.cfg.xml	                        (rev 0)
+++ activity-monitor/trunk/model/src/main/resources/hibernate.cfg.xml	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,32 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!DOCTYPE hibernate-configuration PUBLIC
+        "-//Hibernate/Hibernate Configuration DTD//EN"
+        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
+
+<hibernate-configuration>
+
+    <!-- a SessionFactory instance listed as /jndi/name -->
+    <session-factory
+            name="java:hibernate/SessionFactory">
+
+        <!--property name="connection.datasource">java:/comp/env/jdbc/MyDB</property-->
+        <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/bpaf</property>
+        <property name="hibernate.connection.username">bpaf</property>
+        <property name="hibernate.connection.password">bpaf</property>
+        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
+        <property name="show_sql">false</property>
+        
+        <!-- mapping files
+        <mapping resource="org/hibernate/auction/Item.hbm.xml"/>
+        <mapping resource="org/hibernate/auction/Bid.hbm.xml"/>
+        -->
+
+        <!-- cache settings
+        <class-cache class="org.hibernate.auction.Item" usage="read-write"/>
+        <class-cache class="org.hibernate.auction.Bid" usage="read-only"/>
+        <collection-cache collection="org.hibernate.auction.Item.bids" usage="read-write"/>
+        -->
+
+    </session-factory>
+
+</hibernate-configuration>
\ No newline at end of file

Added: activity-monitor/trunk/pom.xml
===================================================================
--- activity-monitor/trunk/pom.xml	                        (rev 0)
+++ activity-monitor/trunk/pom.xml	2010-03-07 11:45:21 UTC (rev 987)
@@ -0,0 +1,367 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <name>JBoss BPM - ActivityMonitor</name>
+    <groupId>org.jboss.bpm</groupId>
+    <artifactId>activity-monitor-parent</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+    <packaging>pom</packaging>
+
+    <scm>
+        <connection>scm:svn:https://svn.jboss.org/repos/soag/activity-monitor/trunk</connection>
+        <developerConnection>scm:svn:https://svn.jboss.org/repos/soag/activity-monitor/trunk</developerConnection>
+        <url>https://svn.jboss.org/repos/soag/activity-monitor/trunk</url>
+    </scm>
+
+    <organization>
+        <name>JBoss, a division of Red Hat</name>
+        <url>http://www.jboss.org</url>
+    </organization>
+
+    <!-- IssueManagement -->
+    <issueManagement>
+        <system>jira</system>
+        <url>http://jira.jboss.org/jira/browse/BPMC</url>
+    </issueManagement>
+
+    <!-- licenses -->
+    <licenses>
+        <license>
+            <name>lgpl</name>
+            <url>http://repository.jboss.com/licenses/lgpl.txt</url>
+        </license>
+    </licenses>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <commons.fileupload.version>1.2.1</commons.fileupload.version>
+        <commons.io.version>1.3.2</commons.io.version>
+        <commons.logging.version>1.1.1</commons.logging.version>
+        <commons-lang.version>2.4</commons-lang.version>
+        <commons-config.version>1.6</commons-config.version>
+        <gson.version>1.2.2</gson.version>
+        <gwt.version>2.0.0</gwt.version>
+
+        <jboss.common.version>2.2.7.GA</jboss.common.version>
+        <junit.version>3.8.1</junit.version>
+        <resteasy.version>1.0.2.GA</resteasy.version>
+        <stax-api.version>1.0-2</stax-api.version>
+        <errai.version>1.1-SNAPSHOT</errai.version>
+        <hibernate.version>3.3.1.GA</hibernate.version>
+                
+    </properties>
+
+    <modules>        
+        <!--module>server</module>
+        <module>gui</module-->
+        <module>model</module>
+        <module>emu</module>
+    </modules>
+
+    <dependencyManagement>
+        <dependencies>
+
+            <!-- Other -->
+            <dependency>
+                <groupId>commons-logging</groupId>
+                <artifactId>commons-logging</artifactId>
+                <version>${commons.logging.version}</version>
+            </dependency>
+            
+	    <!-- Errai -->
+            <dependency>
+                <groupId>org.jboss.errai</groupId>
+                <artifactId>errai-workspaces</artifactId>
+                <version>${errai.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.jboss.errai</groupId>
+                <artifactId>errai-workspaces</artifactId>
+                <version>${errai.version}</version>
+                <classifier>sources</classifier>
+            </dependency>
+
+            <dependency>
+                <groupId>org.jboss.errai</groupId>
+                <artifactId>errai-common</artifactId>
+                <version>${errai.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.jboss.errai</groupId>
+                <artifactId>errai-common</artifactId>
+                <version>${errai.version}</version>
+                <classifier>sources</classifier>
+            </dependency>
+
+            <dependency>
+                <groupId>org.jboss.errai</groupId>
+                <artifactId>errai-bus</artifactId>
+                <version>${errai.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.jboss.errai</groupId>
+                <artifactId>errai-bus</artifactId>
+                <version>${errai.version}</version>
+                <classifier>sources</classifier>
+            </dependency>
+
+            <dependency>
+                <groupId>org.hibernate</groupId>
+                <artifactId>hibernate-core</artifactId>
+                <version>${hibernate.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.hibernate</groupId>
+                <artifactId>hibernate-annotations</artifactId>
+                <version>${hibernate.version}</version>
+            </dependency>
+
+            <dependency>
+                <groupId>org.slf4j</groupId>
+                <artifactId>slf4j-api</artifactId>
+                <version>1.5.10</version>
+            </dependency>
+            <dependency>
+                <groupId>org.slf4j</groupId>
+                <artifactId>slf4j-log4j12</artifactId>
+                <version>1.5.10</version>
+            </dependency>
+
+            <dependency>
+                <groupId>javassist</groupId>
+                <artifactId>javassist</artifactId>
+                <version>3.4.GA</version>
+            </dependency>
+            
+        </dependencies>
+    </dependencyManagement>
+
+    <build>
+        <plugins>
+           
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-install-plugin</artifactId>
+                <version>2.3</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-deploy-plugin</artifactId>
+                <version>2.4</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>2.1-beta-1</version>
+            </plugin>
+
+            <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <skipTests>true</skipTests>
+                    <failIfNoTests>false</failIfNoTests>
+                    <trimStackTrace>false</trimStackTrace>
+                    <systemProperties>
+                        <property>
+                            <name>log4j.output.dir</name>
+                            <value>${project.build.directory}</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                    <showDeprecation>false</showDeprecation>
+                    <showWarnings>true</showWarnings>
+                    <optimize>true</optimize>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-jar-plugin</artifactId>
+                <version>2.2</version>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <artifactId>maven-source-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-release-plugin</artifactId>
+                <version>2.0-beta-7</version>
+                <configuration>
+                    <tagBase>http://svn.jboss.org/repos/soag/bpm-console/tags</tagBase>
+                </configuration>
+            </plugin>
+
+        </plugins>
+
+        <!-- PluginManagement -->
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>com.sun.tools.jxc.maven2</groupId>
+                    <artifactId>maven-jaxb-schemagen-plugin</artifactId>
+                    <version>1.2</version>
+                    <dependencies>
+                        <dependency>
+                            <groupId>com.sun.xml.bind</groupId>
+                            <artifactId>jaxb-impl</artifactId>
+                            <version>2.1.7</version>
+                        </dependency>
+                        <dependency>
+                            <groupId>com.sun.xml.bind</groupId>
+                            <artifactId>jaxb-xjc</artifactId>
+                            <version>2.1.7</version>
+                        </dependency>
+                    </dependencies>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <version>2.0.2.SP1</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>build-helper-maven-plugin</artifactId>
+                    <version>1.1</version>
+                </plugin>
+                <plugin>
+                    <groupId>net.sourceforge.maven-taglib</groupId>
+                    <artifactId>maven-taglib-plugin</artifactId>
+                    <version>2.3</version>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+
+    </build>
+
+    <!-- Reporting -->
+    <reporting>
+        <plugins>
+            <plugin>
+                <artifactId>maven-surefire-report-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </reporting>
+
+    <!-- Profiles -->
+    <profiles>
+
+        <profile>
+            <id>enableTests</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <skipTests>false</skipTests>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+    </profiles>
+
+
+    <!-- Repositories -->
+    <repositories>
+        <repository>
+            <id>repository.jboss.org</id>
+            <url>http://repository.jboss.org/maven2</url>
+        </repository>
+        <repository>
+            <id>snapshots.jboss.org</id>
+            <name>JBoss Snapshot Repository</name>
+            <url>http://snapshots.jboss.org/maven2</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+        <repository>
+            <id>maven2.java.net</id>
+            <name>Java.net Repository for Maven 2</name>
+            <url>http://download.java.net/maven/2/</url>
+        </repository>
+        <repository>
+            <id>maven1.java.net</id>
+            <url>http://download.java.net/maven/1/</url>
+            <layout>legacy</layout>
+        </repository>
+        <repository>
+            <id>repository.codehaus.org</id>
+            <url>http://repository.codehaus.org</url>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </repository>
+        <repository>
+            <id>gwt-maven</id>
+            <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
+        </repository>
+    </repositories>
+
+    <pluginRepositories>
+        <pluginRepository>
+            <id>maven2.java.net</id>
+            <name>Java.net Repository for Maven 2</name>
+            <url>http://download.java.net/maven/2/</url>
+        </pluginRepository>
+        <pluginRepository>
+            <id>repository.jboss.org</id>
+            <url>http://repository.jboss.org/maven2</url>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </pluginRepository>
+        <pluginRepository>
+            <id>snapshots.jboss.org</id>
+            <url>http://snapshots.jboss.org/maven2</url>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </pluginRepository>
+        <pluginRepository>
+            <id>gwt-maven</id>
+            <url>http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/</url>
+        </pluginRepository>
+
+    </pluginRepositories>
+
+    <!-- DistributionManagement -->
+    <distributionManagement>
+        <repository>
+            <id>repository.jboss.org</id>
+            <name>JBoss Maven Repository</name>
+            <url>file://${jboss.maven.repository}</url>
+        </repository>
+        <snapshotRepository>
+            <id>snapshots.jboss.org</id>
+            <name>JBoss Snapshot Repository</name>
+            <url>dav:https://snapshots.jboss.org/maven2</url>
+        </snapshotRepository>
+    </distributionManagement>
+
+</project>



More information about the overlord-commits mailing list