package org.droolsjbpm.services.impl.event;

import java.io.Serializable;

public class ProcessEvent implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private long processInstanceId;
    private String processId;
    private String processName;
    private String version;
    private int state;
    
    public ProcessEvent(org.kie.api.event.process.ProcessEvent event) {
        this.processId = event.getProcessInstance().getProcessId();
        this.version = event.getProcessInstance().getProcess().getVersion();
        this.processInstanceId = event.getProcessInstance().getId();
        this.state = event.getProcessInstance().getState();
        this.processName = event.getProcessInstance().getProcessName();
    }

    public long getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(long processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }
}
