/**
 * Copyright 2010 OpenEngSB Division, Vienna University of Technology
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.openengsb.core.common;

public class Event {
    private String name;

    public Event() {
    }

    public Event(String name) {
        this.name = name;
    }

    /**
     * returns the simple Classname by default. Maybe overriden by subclasses to return types other than the classes
     * name
     */
    public String getType() {
        return this.getClass().getSimpleName();
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

@@ -709,16 +709,44 @@
 ng name;
+%0A    private long processId;
 %0A%0A    pu
@@ -828,24 +828,105 @@
 ame;%0A    %7D%0A%0A
+    public Event(String name, long processId) %7B%0A        this.name = name;%0A    %7D%0A%0A
     /**%0A    
@@ -1277,10 +1277,172 @@
 ;%0A    %7D%0A
+%0A    public long getProcessId() %7B%0A        return this.processId;%0A    %7D%0A%0A    public void setProcessId(long processId) %7B%0A        this.processId = processId;%0A    %7D%0A%0A
 %7D%0A

add processId-attribute to Event