| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| */ |
| |
| package org.eclipse.osbp.bpm.api; |
| |
| import java.util.Date; |
| |
| public class BPMTaskUserEvent { |
| private String type; |
| private Long id; |
| protected Long taskId; |
| protected Date eventTime = new Date(); |
| protected String userId; |
| protected int sessionId; |
| |
| public BPMTaskUserEvent() { |
| } |
| |
| public BPMTaskUserEvent(long taskId, String userId, int sessionId) { |
| this.taskId = taskId; |
| this.userId = userId; |
| this.sessionId = sessionId; |
| } |
| |
| public String getUserId() { |
| return userId; |
| } |
| |
| public long getTaskId() { |
| return taskId; |
| } |
| |
| // no setter, automatically generated by db |
| public Long getId() { |
| return id; |
| } |
| |
| // no setter, |
| public Date getEventTime() { |
| return eventTime; |
| } |
| |
| public String getType() { |
| return type; |
| } |
| |
| public BPMTaskEventType getTaskEventType() { |
| return BPMTaskEventType.getTypeFromValue(type); |
| } |
| |
| public int getSessionId() { |
| return sessionId; |
| } |
| |
| public void setSessionId(int sessionId) { |
| this.sessionId = sessionId; |
| } |
| } |