com.opendynamic.ff.query.ProcQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freeflow Show documentation
Show all versions of freeflow Show documentation
a flexible workflow engine
package com.opendynamic.ff.query;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import com.opendynamic.ff.service.FfProcService;
import com.opendynamic.ff.vo.Proc;
@Service
public class ProcQuery {
private FfProcService ffProcService;
private String procId;
private String procDefId;
private String adjustProcDefId;
private String isolateSubProcNodeId;
private String bizId;
private List bizTypeList;
private String bizCode;
private String bizName;
private List procStartUserList;
private Date fromProcStartDate;
private Date toProcStartDate;
private List procEndUserList;
private Date fromProcEndDate;
private Date toProcEndDate;
private List procStatusList;
private Date fromCreationDate;
private Date toCreationDate;
private List procDefCodeList;
private String procDefCat;
private Integer page;
private Integer limit;
public ProcQuery(FfProcService ffProcService) {
super();
this.ffProcService = ffProcService;
}
public ProcQuery setProcId(String procId) {
this.procId = procId;
return this;
}
public ProcQuery setProcDefId(String procDefId) {
this.procDefId = procDefId;
return this;
}
public ProcQuery setAdjustProcDefId(String adjustProcDefId) {
this.adjustProcDefId = adjustProcDefId;
return this;
}
public ProcQuery setIsolateSubProcNodeId(String isolateSubProcNodeId) {
this.isolateSubProcNodeId = isolateSubProcNodeId;
return this;
}
public ProcQuery setBizId(String bizId) {
this.bizId = bizId;
return this;
}
public ProcQuery setBizType(String bizType) {
if (StringUtils.isNotEmpty(bizType)) {
this.bizTypeList = new ArrayList<>();
this.bizTypeList.add(bizType);
}
return this;
}
public ProcQuery setBizTypeList(List bizTypeList) {
this.bizTypeList = bizTypeList;
return this;
}
public ProcQuery setBizCode(String bizCode) {
this.bizCode = bizCode;
return this;
}
public ProcQuery setBizName(String bizName) {
this.bizName = bizName;
return this;
}
public ProcQuery setProcStartUser(String procStartUser) {
if (StringUtils.isNotEmpty(procStartUser)) {
this.procStartUserList = new ArrayList<>();
this.procStartUserList.add(procStartUser);
}
return this;
}
public ProcQuery setProcStartUserList(List procStartUserList) {
this.procStartUserList = procStartUserList;
return this;
}
public ProcQuery setFromProcStartDate(Date fromProcStartDate) {
this.fromProcStartDate = fromProcStartDate;
return this;
}
public ProcQuery setToProcStartDate(Date toProcStartDate) {
this.toProcStartDate = toProcStartDate;
return this;
}
public ProcQuery setProcEndUser(String procEndUser) {
if (StringUtils.isNotEmpty(procEndUser)) {
this.procEndUserList = new ArrayList<>();
this.procEndUserList.add(procEndUser);
}
return this;
}
public ProcQuery setProcEndUserList(List procEndUserList) {
this.procEndUserList = procEndUserList;
return this;
}
public ProcQuery setFromProcEndDate(Date fromProcEndDate) {
this.fromProcEndDate = fromProcEndDate;
return this;
}
public ProcQuery setToProcEndDate(Date toProcEndDate) {
this.toProcEndDate = toProcEndDate;
return this;
}
public ProcQuery setProcStatus(String procStatus) {
if (StringUtils.isNotEmpty(procStatus)) {
this.procStatusList = new ArrayList<>();
this.procStatusList.add(procStatus);
}
return this;
}
public ProcQuery setProcStatusList(List procStatusList) {
this.procStatusList = procStatusList;
return this;
}
public ProcQuery setFromCreationDate(Date fromCreationDate) {
this.fromCreationDate = fromCreationDate;
return this;
}
public ProcQuery setToCreationDate(Date toCreationDate) {
this.toCreationDate = toCreationDate;
return this;
}
public ProcQuery setProcDefCode(String procDefCode) {
if (StringUtils.isNotEmpty(procDefCode)) {
this.procDefCodeList = new ArrayList<>();
this.procDefCodeList.add(procDefCode);
}
return this;
}
public ProcQuery setProcDefCodeList(List procDefCodeList) {
this.procDefCodeList = procDefCodeList;
return this;
}
public ProcQuery setProcDefCat(String procDefCat) {
this.procDefCat = procDefCat;
return this;
}
public ProcQuery setPage(Integer page) {
this.page = page;
return this;
}
public ProcQuery setLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 查询对象列表。对象格式为Map。
*
* @return
*/
public List