All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.formkiq.server.domain.Workflow Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.formkiq.server.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Workflow JSON domain.
 *
 */
public class Workflow {

    /** Workflow version. */
    private int version;

    /** Workflow name. */
    private String name;

    /** Workflow UUID. */
    private String uuid;

    /** Workflow Steps. */
    private List steps;

    /** Workflow Print Steps. */
    @JsonProperty("print_steps")
    private List printsteps;

    /** Inserted Date. */
    @JsonProperty("inserted_date")
    private Date insertedDate;

    /** Updated Date. */
    @JsonProperty("updated_date")
    private Date updatedDate;

    /** Parent UUID. */
    @JsonProperty("parent_uuid")
    private String parentUUID;

    /**
     * default constructor.
     */
    public Workflow() {
    }

    /**
     * @return {@link String}
     */
    public String getName() {
        return this.name;
    }

    /**
     * @param workflowname {@link String}
     */
    public void setName(final String workflowname) {
        this.name = workflowname;
    }

    /**
     * @return int
     */
    public int getVersion() {
        return this.version;
    }

    /**
     * @param ver int
     */
    public void setVersion(final int ver) {
        this.version = ver;
    }

    /**
     * @return {@link String}
     */
    public String getUUID() {
        return this.uuid;
    }

    /**
     * @param id {@link String}
     */
    public void setUUID(final String id) {
        this.uuid = id;
    }

    /**
     * @return {@link List}
     */
    public List getSteps() {
        return this.steps;
    }

    /**
     * @param list {@link List}
     */
    public void setSteps(final List list) {
        this.steps = list;
    }

    /**
     * @return {@link List}
     */
    public List getPrintsteps() {
        return this.printsteps;
    }

    /**
     * @return {@link Date}
     */
    public Date getUpdatedDate() {
        return this.updatedDate != null ? (Date) this.updatedDate.clone()
                : null;
    }

    /**
     * @param date {@link Date}
     */
    public void setUpdatedDate(final Date date) {
        this.updatedDate = date != null ? (Date) date.clone() : null;
    }

    /**
     * @param list {@link List}
     */
    public void setPrintsteps(final List list) {
        this.printsteps = list;
    }

    /**
     * @return {@link Date}
     */
    public Date getInsertedDate() {
        return this.insertedDate != null ? (Date) this.insertedDate.clone()
                : null;
    }

    /**
     * @param date {@link Date}
     */
    public void setInsertedDate(final Date date) {
        this.insertedDate = date != null ? (Date) date.clone() : null;
    }

    /**
     * @return {@link String}
     */
    public String getParentUUID() {
        return this.parentUUID;
    }

    /**
     * @param parent {@link String}
     */
    public void setParentUUID(final String parent) {
        this.parentUUID = parent;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy