org.snaker.engine.entity.Task.java Source code

Java tutorial

Introduction

Here is the source code for org.snaker.engine.entity.Task.java

Source

/* Copyright 2012-2013 the original author or authors.
 *
 * 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.snaker.engine.entity;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 
 * @author yuqs
 * @version 1.0
 */
public class Task implements Serializable, Cloneable {
    /**
     * 
     */
    private static final long serialVersionUID = -189094546633914087L;
    /**
     * ID
     */
    private String id;
    /**
     * 
     */
    private Integer version;
    /**
     * ?ID
     */
    private String orderId;
    /**
     * ??
     */
    private String taskName;
    /**
     * ??
     */
    private String displayName;
    /**
     * ??01?fork[?10???????]
     */
    private Integer performType;
    /**
     * 
     */
    private Integer taskType;
    /**
     * ?ID
     */
    private String operator;
    /**
     * 
     */
    private String createTime;
    /**
     * ?
     */
    private String finishTime;
    /**
     * ?
     */
    private String expireTime;
    /**
     * ??url
     */
    private String actionUrl;
    /**
     * ?
     */
    private String[] actorIds;
    /**
     * Id
     */
    private String parentTaskId;
    /**
      * ??
      */
    private String variable;

    public Task() {

    }

    public Task(String id) {
        this.id = id;
    }

    public String getParentTaskId() {
        return parentTaskId;
    }

    public void setParentTaskId(String parentTaskId) {
        this.parentTaskId = parentTaskId;
    }

    public String getVariable() {
        return variable;
    }

    public void setVariable(String variable) {
        this.variable = variable;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public String getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(String expireTime) {
        this.expireTime = expireTime;
    }

    public String getActionUrl() {
        return actionUrl;
    }

    public void setActionUrl(String actionUrl) {
        this.actionUrl = actionUrl;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String[] getActorIds() {
        return actorIds;
    }

    public void setActorIds(String[] actorIds) {
        this.actorIds = actorIds;
    }

    public Integer getPerformType() {
        return performType;
    }

    public void setPerformType(Integer performType) {
        this.performType = performType;
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    public Integer getVersion() {
        return version;
    }

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