add TaskApi
This commit is contained in:
133
src/main/java/com/inteligr8/activiti/api/TaskApi.java
Normal file
133
src/main/java/com/inteligr8/activiti/api/TaskApi.java
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.inteligr8.activiti.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.inteligr8.activiti.model.ProcessInstance;
|
||||
import com.inteligr8.activiti.model.ResultList;
|
||||
import com.inteligr8.activiti.model.Task;
|
||||
import com.inteligr8.activiti.model.TaskAction;
|
||||
import com.inteligr8.activiti.model.TasksQueryParams;
|
||||
import com.inteligr8.activiti.model.Variable;
|
||||
import com.inteligr8.activiti.model.VariableScope;
|
||||
|
||||
import jakarta.ws.rs.BeanParam;
|
||||
import jakarta.ws.rs.Consumes;
|
||||
import jakarta.ws.rs.DELETE;
|
||||
import jakarta.ws.rs.DefaultValue;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.POST;
|
||||
import jakarta.ws.rs.PUT;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.PathParam;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.QueryParam;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
@Path("/api/runtime/tasks")
|
||||
public interface TaskApi {
|
||||
|
||||
public enum Sort {
|
||||
@JsonProperty("createTime")
|
||||
CreateTime,
|
||||
@JsonProperty("dueDate")
|
||||
DueDate,
|
||||
@JsonProperty("priority")
|
||||
Priority,
|
||||
@JsonProperty("tenantId")
|
||||
TenantId,
|
||||
@JsonProperty("taskDefinitionKey")
|
||||
TaskDefinitionKey;
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("{taskId}")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
Task get(
|
||||
@PathParam("taskId") String taskId);
|
||||
|
||||
@DELETE
|
||||
@Path("{taskId}")
|
||||
void delete(
|
||||
@PathParam("taskId") String taskId,
|
||||
@QueryParam("cascadeHistory") @DefaultValue("false") Boolean cascadeHistory,
|
||||
@QueryParam("deleteReason") String deleteReason);
|
||||
|
||||
@PUT
|
||||
@Path("{taskId}")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
void update(
|
||||
@PathParam("taskId") String taskId,
|
||||
Task task);
|
||||
|
||||
@POST
|
||||
@Path("{taskId}")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
void act(
|
||||
@PathParam("taskId") String taskId,
|
||||
TaskAction action);
|
||||
|
||||
@GET
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
public ResultList<ProcessInstance> query(
|
||||
@BeanParam TasksQueryParams params);
|
||||
|
||||
@GET
|
||||
@Path("{taskId}/variables")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
List<Variable> getVariables(
|
||||
@PathParam("taskId") String taskId,
|
||||
@QueryParam("scope") VariableScope scope);
|
||||
|
||||
@GET
|
||||
@Path("{taskId}/variables/{variableName}")
|
||||
@Produces({ MediaType.APPLICATION_JSON })
|
||||
Variable getVariable(
|
||||
@PathParam("taskId") String taskId,
|
||||
@PathParam("variableName") String variableName,
|
||||
@QueryParam("scope") VariableScope scope);
|
||||
|
||||
@POST
|
||||
@Path("{taskId}/variables")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
void createVariables(
|
||||
@PathParam("taskId") String taskId,
|
||||
List<Variable> variables);
|
||||
|
||||
@PUT
|
||||
@Path("{taskId}/variables/{variableName}")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
void updateVariable(
|
||||
@PathParam("taskId") String taskId,
|
||||
@PathParam("variableName") String variableName,
|
||||
Variable variable);
|
||||
|
||||
@DELETE
|
||||
@Path("{taskId}/variables/{variableName}")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
void deleteVariable(
|
||||
@PathParam("taskId") String taskId,
|
||||
@PathParam("variableName") String variableName,
|
||||
@QueryParam("scope") VariableScope scope);
|
||||
|
||||
@DELETE
|
||||
@Path("{taskId}/variables")
|
||||
@Consumes({ MediaType.APPLICATION_JSON })
|
||||
void deleteTaskVariables(
|
||||
@PathParam("taskId") String taskId);
|
||||
|
||||
}
|
||||
381
src/main/java/com/inteligr8/activiti/model/Task.java
Normal file
381
src/main/java/com/inteligr8/activiti/model/Task.java
Normal file
@@ -0,0 +1,381 @@
|
||||
|
||||
package com.inteligr8.activiti.model;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.inteligr8.alfresco.activiti.model.Variable;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@JsonPropertyOrder({
|
||||
"assignee",
|
||||
"createTime",
|
||||
"delegationState",
|
||||
"description",
|
||||
"dueDate",
|
||||
"executionId",
|
||||
"executionUrl",
|
||||
"id",
|
||||
"name",
|
||||
"owner",
|
||||
"parentTaskId",
|
||||
"parentTaskUrl",
|
||||
"priority",
|
||||
"processDefinitionId",
|
||||
"processDefinitionUrl",
|
||||
"processInstanceId",
|
||||
"processInstanceUrl",
|
||||
"suspended",
|
||||
"taskDefinitionKey",
|
||||
"tenantId",
|
||||
"url",
|
||||
"variables"
|
||||
})
|
||||
public class Task extends Datum {
|
||||
|
||||
@JsonProperty("assignee")
|
||||
private String assignee;
|
||||
@JsonProperty("createTime")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||
private OffsetDateTime createTime;
|
||||
@JsonProperty("delegationState")
|
||||
private DelegationState delegationState;
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
@JsonProperty("dueDate")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||
private OffsetDateTime dueDate;
|
||||
@JsonProperty("executionId")
|
||||
private String executionId;
|
||||
@JsonProperty("executionUrl")
|
||||
private String executionUrl;
|
||||
@JsonProperty("id")
|
||||
private String id;
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
@JsonProperty("owner")
|
||||
private String owner;
|
||||
@JsonProperty("parentTaskId")
|
||||
private String parentTaskId;
|
||||
@JsonProperty("parentTaskUrl")
|
||||
private String parentTaskUrl;
|
||||
@JsonProperty("priority")
|
||||
private Integer priority;
|
||||
@JsonProperty("processDefinitionId")
|
||||
private String processDefinitionId;
|
||||
@JsonProperty("processDefinitionUrl")
|
||||
private String processDefinitionUrl;
|
||||
@JsonProperty("processInstanceId")
|
||||
private String processInstanceId;
|
||||
@JsonProperty("processInstanceUrl")
|
||||
private String processInstanceUrl;
|
||||
@JsonProperty("suspended")
|
||||
private Boolean suspended;
|
||||
@JsonProperty("taskDefinitionKey")
|
||||
private String taskDefinitionKey;
|
||||
@JsonProperty("tenantId")
|
||||
private String tenantId;
|
||||
@JsonProperty("url")
|
||||
private String url;
|
||||
@JsonProperty("variables")
|
||||
private List<Variable> variables = new ArrayList<Variable>();
|
||||
|
||||
/**
|
||||
* No args constructor for use in serialization
|
||||
*/
|
||||
public Task() {
|
||||
}
|
||||
|
||||
public String getAssignee() {
|
||||
return assignee;
|
||||
}
|
||||
|
||||
public void setAssignee(String assignee) {
|
||||
this.assignee = assignee;
|
||||
}
|
||||
|
||||
public Task withAssignee(String assignee) {
|
||||
this.assignee = assignee;
|
||||
return this;
|
||||
}
|
||||
|
||||
public OffsetDateTime getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(OffsetDateTime created) {
|
||||
this.createTime = created;
|
||||
}
|
||||
|
||||
public Task withCreateTime(OffsetDateTime created) {
|
||||
this.createTime = created;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DelegationState getDelegationState() {
|
||||
return delegationState;
|
||||
}
|
||||
|
||||
public void setDelegationState(DelegationState delegationState) {
|
||||
this.delegationState = delegationState;
|
||||
}
|
||||
|
||||
public Task withDelegationState(DelegationState delegationState) {
|
||||
this.delegationState = delegationState;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Task withDescription(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
public OffsetDateTime getDueDate() {
|
||||
return dueDate;
|
||||
}
|
||||
|
||||
public void setDueDate(OffsetDateTime dueDate) {
|
||||
this.dueDate = dueDate;
|
||||
}
|
||||
|
||||
public Task withDueDate(OffsetDateTime dueDate) {
|
||||
this.dueDate = dueDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getExecutionId() {
|
||||
return executionId;
|
||||
}
|
||||
|
||||
public void setExecutionId(String executionId) {
|
||||
this.executionId = executionId;
|
||||
}
|
||||
|
||||
public Task withExecutionId(String executionId) {
|
||||
this.executionId = executionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getExecutionUrl() {
|
||||
return executionUrl;
|
||||
}
|
||||
|
||||
public void setExecutionUrl(String executionUrl) {
|
||||
this.executionUrl = executionUrl;
|
||||
}
|
||||
|
||||
public Task withExecutionUrl(String executionUrl) {
|
||||
this.executionUrl = executionUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Task withId(String id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Task withName(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
||||
public void setOwner(String owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public Task withOwner(String owner) {
|
||||
this.owner = owner;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getParentTaskId() {
|
||||
return parentTaskId;
|
||||
}
|
||||
|
||||
public void setParentTaskId(String parentTaskId) {
|
||||
this.parentTaskId = parentTaskId;
|
||||
}
|
||||
|
||||
public Task withParentTaskId(String parentTaskId) {
|
||||
this.parentTaskId = parentTaskId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getParentTaskUrl() {
|
||||
return parentTaskUrl;
|
||||
}
|
||||
|
||||
public void setParentTaskUrl(String parentTaskUrl) {
|
||||
this.parentTaskUrl = parentTaskUrl;
|
||||
}
|
||||
|
||||
public Task withParentTaskUrl(String parentTaskUrl) {
|
||||
this.parentTaskUrl = parentTaskUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Integer getPriority() {
|
||||
return priority;
|
||||
}
|
||||
|
||||
public void setPriority(Integer priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public Task withPriority(Integer priority) {
|
||||
this.priority = priority;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessDefinitionId() {
|
||||
return processDefinitionId;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionId(String processDefinitionId) {
|
||||
this.processDefinitionId = processDefinitionId;
|
||||
}
|
||||
|
||||
public Task withProcessDefinitionId(String processDefinitionId) {
|
||||
this.processDefinitionId = processDefinitionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessDefinitionUrl() {
|
||||
return processDefinitionUrl;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionUrl(String processDefinitionUrl) {
|
||||
this.processDefinitionUrl = processDefinitionUrl;
|
||||
}
|
||||
|
||||
public Task withProcessDefinitionUrl(String processDefinitionUrl) {
|
||||
this.processDefinitionUrl = processDefinitionUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessInstanceId() {
|
||||
return processInstanceId;
|
||||
}
|
||||
|
||||
public void setProcessInstanceId(String processInstanceId) {
|
||||
this.processInstanceId = processInstanceId;
|
||||
}
|
||||
|
||||
public Task withProcessInstanceId(String processInstanceId) {
|
||||
this.processInstanceId = processInstanceId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessInstanceUrl() {
|
||||
return processInstanceUrl;
|
||||
}
|
||||
|
||||
public void setProcessInstanceUrl(String processInstanceUrl) {
|
||||
this.processInstanceUrl = processInstanceUrl;
|
||||
}
|
||||
|
||||
public Task withProcessInstanceUrl(String processInstanceUrl) {
|
||||
this.processInstanceUrl = processInstanceUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean getSuspended() {
|
||||
return suspended;
|
||||
}
|
||||
|
||||
public void setSuspended(Boolean suspended) {
|
||||
this.suspended = suspended;
|
||||
}
|
||||
|
||||
public Task withSuspended(Boolean suspended) {
|
||||
this.suspended = suspended;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTaskDefinitionKey() {
|
||||
return taskDefinitionKey;
|
||||
}
|
||||
|
||||
public void setTaskDefinitionKey(String taskDefinitionKey) {
|
||||
this.taskDefinitionKey = taskDefinitionKey;
|
||||
}
|
||||
|
||||
public Task withTaskDefinitionKey(String taskDefinitionKey) {
|
||||
this.taskDefinitionKey = taskDefinitionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(String tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public Task withTenantId(String tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public Task withUrl(String url) {
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<Variable> getVariables() {
|
||||
return variables;
|
||||
}
|
||||
|
||||
public void setVariables(List<Variable> variables) {
|
||||
this.variables = variables;
|
||||
}
|
||||
|
||||
public Task withVariables(List<Variable> variables) {
|
||||
this.variables = variables;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
78
src/main/java/com/inteligr8/activiti/model/TaskAction.java
Normal file
78
src/main/java/com/inteligr8/activiti/model/TaskAction.java
Normal file
@@ -0,0 +1,78 @@
|
||||
package com.inteligr8.activiti.model;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public class TaskAction {
|
||||
|
||||
public enum ActionValue {
|
||||
@JsonProperty("complete")
|
||||
Complete,
|
||||
@JsonProperty("claim")
|
||||
Claim,
|
||||
@JsonProperty("delegate")
|
||||
Delegate,
|
||||
@JsonProperty("resolve")
|
||||
Resolve
|
||||
}
|
||||
|
||||
@JsonProperty("action")
|
||||
private ActionValue action;
|
||||
@JsonProperty("assignee")
|
||||
private String assignee;
|
||||
@JsonProperty("variables")
|
||||
private List<Variable> variables;
|
||||
|
||||
/**
|
||||
* No args constructor for use in serialization
|
||||
*/
|
||||
public TaskAction() {
|
||||
}
|
||||
|
||||
public TaskAction(ActionValue action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public ActionValue getAction() {
|
||||
return action;
|
||||
}
|
||||
|
||||
public void setAction(ActionValue action) {
|
||||
this.action = action;
|
||||
}
|
||||
|
||||
public TaskAction withAction(ActionValue action) {
|
||||
this.action = action;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getAssignee() {
|
||||
return assignee;
|
||||
}
|
||||
|
||||
public void setAssignee(String assignee) {
|
||||
this.assignee = assignee;
|
||||
}
|
||||
|
||||
public TaskAction withAssignee(String assignee) {
|
||||
this.assignee = assignee;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<Variable> getVariables() {
|
||||
return variables;
|
||||
}
|
||||
|
||||
public void setVariables(List<Variable> variables) {
|
||||
this.variables = variables;
|
||||
}
|
||||
|
||||
public TaskAction withVariables(List<Variable> variables) {
|
||||
this.variables = variables;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
660
src/main/java/com/inteligr8/activiti/model/TasksQueryParams.java
Normal file
660
src/main/java/com/inteligr8/activiti/model/TasksQueryParams.java
Normal file
@@ -0,0 +1,660 @@
|
||||
|
||||
package com.inteligr8.activiti.model;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.inteligr8.activiti.jackson.CollectionJsonSerializer;
|
||||
|
||||
import jakarta.ws.rs.QueryParam;
|
||||
|
||||
public class TasksQueryParams extends QueryParams<TasksQueryParams> {
|
||||
|
||||
@QueryParam("name")
|
||||
private String name;
|
||||
@QueryParam("nameLike")
|
||||
private String nameLike;
|
||||
@QueryParam("description")
|
||||
private String description;
|
||||
@QueryParam("priority")
|
||||
private Integer priority;
|
||||
@QueryParam("minimumPriority")
|
||||
private Integer minimumPriority;
|
||||
@QueryParam("maximumPriority")
|
||||
private Integer maximumPriority;
|
||||
@QueryParam("assignee")
|
||||
private String assignee;
|
||||
@QueryParam("assigneeLike")
|
||||
private String assigneeLike;
|
||||
@QueryParam("owner")
|
||||
private String owner;
|
||||
@QueryParam("ownerLike")
|
||||
private String ownerLike;
|
||||
@QueryParam("unassigned")
|
||||
private Boolean unassigned;
|
||||
@QueryParam("delegationState")
|
||||
private DelegationState delegationState;
|
||||
@QueryParam("candidateUser")
|
||||
private String candidateUser;
|
||||
@QueryParam("candidateGroups")
|
||||
@JsonSerialize(contentUsing = CollectionJsonSerializer.class)
|
||||
private List<String> candidateGroups;
|
||||
@QueryParam("involvedUser")
|
||||
private String involvedUser;
|
||||
@QueryParam("taskDefinitionKey")
|
||||
private String taskDefinitionKey;
|
||||
@QueryParam("taskDefinitionKeyLike")
|
||||
private String taskDefinitionKeyLike;
|
||||
@QueryParam("processInstanceId")
|
||||
private String processInstanceId;
|
||||
@QueryParam("processInstanceBusinessKey")
|
||||
private String processInstanceBusinessKey;
|
||||
@QueryParam("processInstanceBusinessKeyLike")
|
||||
private String processInstanceBusinessKeyLike;
|
||||
@QueryParam("processDefinitionId")
|
||||
private String processDefinitionId;
|
||||
@QueryParam("processDefinitionKey")
|
||||
private String processDefinitionKey;
|
||||
@QueryParam("processDefinitionKeyLike")
|
||||
private String processDefinitionKeyLike;
|
||||
@QueryParam("processDefinitionName")
|
||||
private String processDefinitionName;
|
||||
@QueryParam("processDefinitionNameLike")
|
||||
private String processDefinitionNameLike;
|
||||
@QueryParam("executionId")
|
||||
private String executionId;
|
||||
@QueryParam("createdOn")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd")
|
||||
private LocalDate createdOn;
|
||||
@QueryParam("createdBefore")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd")
|
||||
private LocalDate createdBefore;
|
||||
@QueryParam("createdAfter")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd")
|
||||
private LocalDate createdAfter;
|
||||
@QueryParam("dueOn")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd")
|
||||
private LocalDate dueOn;
|
||||
@QueryParam("dueBefore")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd")
|
||||
private LocalDate dueBefore;
|
||||
@QueryParam("dueAfter")
|
||||
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd")
|
||||
private LocalDate dueAfter;
|
||||
@QueryParam("withoutDueDate")
|
||||
private Boolean withoutDueDate;
|
||||
@QueryParam("excludeSubTasks")
|
||||
private Boolean excludeSubTasks;
|
||||
@QueryParam("active")
|
||||
private Boolean active;
|
||||
@QueryParam("includeProcessVariables")
|
||||
private Boolean includeProcessVariables;
|
||||
@QueryParam("includeTaskLocalVariables")
|
||||
private Boolean includeTaskLocalVariables;
|
||||
@QueryParam("tenantId")
|
||||
private String tenantId;
|
||||
@QueryParam("tenantIdLike")
|
||||
private String tenantIdLike;
|
||||
@QueryParam("withoutTenantId")
|
||||
private Boolean withoutTenantId;
|
||||
@QueryParam("candidateOrAssigned")
|
||||
private String candidateOrAssigned;
|
||||
@QueryParam("category")
|
||||
private String category;
|
||||
|
||||
/**
|
||||
* No args constructor for use in serialization
|
||||
*/
|
||||
public TasksQueryParams() {
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public TasksQueryParams withName(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getNameLike() {
|
||||
return nameLike;
|
||||
}
|
||||
|
||||
public void setNameLike(String nameLike) {
|
||||
this.nameLike = nameLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withNameLike(String nameLike) {
|
||||
this.nameLike = nameLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public TasksQueryParams withDescription(String description) {
|
||||
this.description = description;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Integer getPriority() {
|
||||
return priority;
|
||||
}
|
||||
|
||||
public void setPriority(Integer priority) {
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public TasksQueryParams withPriority(Integer priority) {
|
||||
this.priority = priority;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Integer getMinimumPriority() {
|
||||
return minimumPriority;
|
||||
}
|
||||
|
||||
public void setMinimumPriority(Integer minimumPriority) {
|
||||
this.minimumPriority = minimumPriority;
|
||||
}
|
||||
|
||||
public TasksQueryParams withMinimumPriority(Integer minimumPriority) {
|
||||
this.minimumPriority = minimumPriority;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Integer getMaximumPriority() {
|
||||
return maximumPriority;
|
||||
}
|
||||
|
||||
public void setMaximumPriority(Integer maximumPriority) {
|
||||
this.maximumPriority = maximumPriority;
|
||||
}
|
||||
|
||||
public TasksQueryParams withMaximumPriority(Integer maximumPriority) {
|
||||
this.maximumPriority = maximumPriority;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getAssignee() {
|
||||
return assignee;
|
||||
}
|
||||
|
||||
public void setAssignee(String assignee) {
|
||||
this.assignee = assignee;
|
||||
}
|
||||
|
||||
public TasksQueryParams withAssignee(String assignee) {
|
||||
this.assignee = assignee;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getAssigneeLike() {
|
||||
return assigneeLike;
|
||||
}
|
||||
|
||||
public void setAssigneeLike(String assigneeLike) {
|
||||
this.assigneeLike = assigneeLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withAssigneeLike(String assigneeLike) {
|
||||
this.assigneeLike = assigneeLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOwner() {
|
||||
return owner;
|
||||
}
|
||||
|
||||
public void setOwner(String owner) {
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
public TasksQueryParams withOwner(String owner) {
|
||||
this.owner = owner;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getOwnerLike() {
|
||||
return ownerLike;
|
||||
}
|
||||
|
||||
public void setOwnerLike(String ownerLike) {
|
||||
this.ownerLike = ownerLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withOwnerLike(String ownerLike) {
|
||||
this.ownerLike = ownerLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean isUnassigned() {
|
||||
return unassigned;
|
||||
}
|
||||
|
||||
public void setUnassigned(Boolean unassigned) {
|
||||
this.unassigned = unassigned;
|
||||
}
|
||||
|
||||
public TasksQueryParams withUnassigned(Boolean unassigned) {
|
||||
this.unassigned = unassigned;
|
||||
return this;
|
||||
}
|
||||
|
||||
public DelegationState getDelegationState() {
|
||||
return delegationState;
|
||||
}
|
||||
|
||||
public void setDelegationState(DelegationState delegationState) {
|
||||
this.delegationState = delegationState;
|
||||
}
|
||||
|
||||
public TasksQueryParams withDelegationState(DelegationState delegationState) {
|
||||
this.delegationState = delegationState;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCandidateUser() {
|
||||
return candidateUser;
|
||||
}
|
||||
|
||||
public void setCandidateUser(String candidateUser) {
|
||||
this.candidateUser = candidateUser;
|
||||
}
|
||||
|
||||
public TasksQueryParams withCandidateUser(String candidateUser) {
|
||||
this.candidateUser = candidateUser;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<String> getCandidateGroups() {
|
||||
return candidateGroups;
|
||||
}
|
||||
|
||||
public void setCandidateGroups(List<String> candidateGroups) {
|
||||
this.candidateGroups = candidateGroups;
|
||||
}
|
||||
|
||||
public TasksQueryParams withCandidateGroups(List<String> candidateGroups) {
|
||||
this.candidateGroups = candidateGroups;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getInvolvedUser() {
|
||||
return involvedUser;
|
||||
}
|
||||
|
||||
public void setInvolvedUser(String involvedUser) {
|
||||
this.involvedUser = involvedUser;
|
||||
}
|
||||
|
||||
public TasksQueryParams withInvolvedUser(String involvedUser) {
|
||||
this.involvedUser = involvedUser;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTaskDefinitionKey() {
|
||||
return taskDefinitionKey;
|
||||
}
|
||||
|
||||
public void setTaskDefinitionKey(String taskDefinitionKey) {
|
||||
this.taskDefinitionKey = taskDefinitionKey;
|
||||
}
|
||||
|
||||
public TasksQueryParams withTaskDefinitionKey(String taskDefinitionKey) {
|
||||
this.taskDefinitionKey = taskDefinitionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTaskDefinitionKeyLike() {
|
||||
return taskDefinitionKeyLike;
|
||||
}
|
||||
|
||||
public void setTaskDefinitionKeyLike(String taskDefinitionKeyLike) {
|
||||
this.taskDefinitionKeyLike = taskDefinitionKeyLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withTaskDefinitionKeyLike(String taskDefinitionKeyLike) {
|
||||
this.taskDefinitionKeyLike = taskDefinitionKeyLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessInstanceId() {
|
||||
return processInstanceId;
|
||||
}
|
||||
|
||||
public void setProcessInstanceId(String processInstanceId) {
|
||||
this.processInstanceId = processInstanceId;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessInstanceId(String processInstanceId) {
|
||||
this.processInstanceId = processInstanceId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessInstanceBusinessKey() {
|
||||
return processInstanceBusinessKey;
|
||||
}
|
||||
|
||||
public void setProcessInstanceBusinessKey(String processInstanceBusinessKey) {
|
||||
this.processInstanceBusinessKey = processInstanceBusinessKey;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessInstanceBusinessKey(String processInstanceBusinessKey) {
|
||||
this.processInstanceBusinessKey = processInstanceBusinessKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessInstanceBusinessKeyLike() {
|
||||
return processInstanceBusinessKeyLike;
|
||||
}
|
||||
|
||||
public void setProcessInstanceBusinessKeyLike(String processInstanceBusinessKeyLike) {
|
||||
this.processInstanceBusinessKeyLike = processInstanceBusinessKeyLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessInstanceBusinessKeyLike(String processInstanceBusinessKeyLike) {
|
||||
this.processInstanceBusinessKeyLike = processInstanceBusinessKeyLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessDefinitionId() {
|
||||
return processDefinitionId;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionId(String processDefinitionId) {
|
||||
this.processDefinitionId = processDefinitionId;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessDefinitionId(String processDefinitionId) {
|
||||
this.processDefinitionId = processDefinitionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessDefinitionKey() {
|
||||
return processDefinitionKey;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||
this.processDefinitionKey = processDefinitionKey;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessDefinitionKey(String processDefinitionKey) {
|
||||
this.processDefinitionKey = processDefinitionKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessDefinitionKeyLike() {
|
||||
return processDefinitionKeyLike;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionKeyLike(String processDefinitionKeyLike) {
|
||||
this.processDefinitionKeyLike = processDefinitionKeyLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessDefinitionKeyLike(String processDefinitionKeyLike) {
|
||||
this.processDefinitionKeyLike = processDefinitionKeyLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessDefinitionName() {
|
||||
return processDefinitionName;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionName(String processDefinitionName) {
|
||||
this.processDefinitionName = processDefinitionName;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessDefinitionName(String processDefinitionName) {
|
||||
this.processDefinitionName = processDefinitionName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getProcessDefinitionNameLike() {
|
||||
return processDefinitionNameLike;
|
||||
}
|
||||
|
||||
public void setProcessDefinitionNameLike(String processDefinitionNameLike) {
|
||||
this.processDefinitionNameLike = processDefinitionNameLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withProcessDefinitionNameLike(String processDefinitionNameLike) {
|
||||
this.processDefinitionNameLike = processDefinitionNameLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getExecutionId() {
|
||||
return executionId;
|
||||
}
|
||||
|
||||
public void setExecutionId(String executionId) {
|
||||
this.executionId = executionId;
|
||||
}
|
||||
|
||||
public TasksQueryParams withExecutionId(String executionId) {
|
||||
this.executionId = executionId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocalDate getCreatedOn() {
|
||||
return createdOn;
|
||||
}
|
||||
|
||||
public void setCreatedOn(LocalDate createdOn) {
|
||||
this.createdOn = createdOn;
|
||||
}
|
||||
|
||||
public TasksQueryParams withCreatedOn(LocalDate createdOn) {
|
||||
this.createdOn = createdOn;
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocalDate getCreatedBefore() {
|
||||
return createdBefore;
|
||||
}
|
||||
|
||||
public void setCreatedBefore(LocalDate createdBefore) {
|
||||
this.createdBefore = createdBefore;
|
||||
}
|
||||
|
||||
public TasksQueryParams withCreatedBefore(LocalDate createdBefore) {
|
||||
this.createdBefore = createdBefore;
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocalDate getCreatedAfter() {
|
||||
return createdAfter;
|
||||
}
|
||||
|
||||
public void setCreatedAfter(LocalDate createdAfter) {
|
||||
this.createdAfter = createdAfter;
|
||||
}
|
||||
|
||||
public TasksQueryParams withCreatedAfter(LocalDate createdAfter) {
|
||||
this.createdAfter = createdAfter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocalDate getDueOn() {
|
||||
return dueOn;
|
||||
}
|
||||
|
||||
public void setDueOn(LocalDate dueOn) {
|
||||
this.dueOn = dueOn;
|
||||
}
|
||||
|
||||
public TasksQueryParams withDueOn(LocalDate dueOn) {
|
||||
this.dueOn = dueOn;
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocalDate getDueBefore() {
|
||||
return dueBefore;
|
||||
}
|
||||
|
||||
public void setDueBefore(LocalDate dueBefore) {
|
||||
this.dueBefore = dueBefore;
|
||||
}
|
||||
|
||||
public TasksQueryParams withDueBefore(LocalDate dueBefore) {
|
||||
this.dueBefore = dueBefore;
|
||||
return this;
|
||||
}
|
||||
|
||||
public LocalDate getDueAfter() {
|
||||
return dueAfter;
|
||||
}
|
||||
|
||||
public void setDueAfter(LocalDate dueAfter) {
|
||||
this.dueAfter = dueAfter;
|
||||
}
|
||||
|
||||
public TasksQueryParams withDueAfter(LocalDate dueAfter) {
|
||||
this.dueAfter = dueAfter;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean isWithoutDueDate() {
|
||||
return withoutDueDate;
|
||||
}
|
||||
|
||||
public void setWithoutDueDate(Boolean withoutDueDate) {
|
||||
this.withoutDueDate = withoutDueDate;
|
||||
}
|
||||
|
||||
public TasksQueryParams withWithoutDueDate(Boolean withoutDueDate) {
|
||||
this.withoutDueDate = withoutDueDate;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean isExcludeSubTasks() {
|
||||
return excludeSubTasks;
|
||||
}
|
||||
|
||||
public void setExcludeSubTasks(Boolean excludeSubTasks) {
|
||||
this.excludeSubTasks = excludeSubTasks;
|
||||
}
|
||||
|
||||
public TasksQueryParams withExcludeSubTasks(Boolean excludeSubTasks) {
|
||||
this.excludeSubTasks = excludeSubTasks;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean isActive() {
|
||||
return active;
|
||||
}
|
||||
|
||||
public void setActive(Boolean active) {
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
public TasksQueryParams withActive(Boolean active) {
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean isIncludeProcessVariables() {
|
||||
return includeProcessVariables;
|
||||
}
|
||||
|
||||
public void setIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||
this.includeProcessVariables = includeProcessVariables;
|
||||
}
|
||||
|
||||
public TasksQueryParams withIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||
this.includeProcessVariables = includeProcessVariables;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean isIncludeTaskLocalVariables() {
|
||||
return includeTaskLocalVariables;
|
||||
}
|
||||
|
||||
public void setIncludeTaskLocalVariables(Boolean includeTaskLocalVariables) {
|
||||
this.includeTaskLocalVariables = includeTaskLocalVariables;
|
||||
}
|
||||
|
||||
public TasksQueryParams withIncludeTaskLocalVariables(Boolean includeTaskLocalVariables) {
|
||||
this.includeTaskLocalVariables = includeTaskLocalVariables;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTenantId() {
|
||||
return tenantId;
|
||||
}
|
||||
|
||||
public void setTenantId(String tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
}
|
||||
|
||||
public TasksQueryParams withTenantId(String tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getTenantIdLike() {
|
||||
return tenantIdLike;
|
||||
}
|
||||
|
||||
public void setTenantIdLike(String tenantIdLike) {
|
||||
this.tenantIdLike = tenantIdLike;
|
||||
}
|
||||
|
||||
public TasksQueryParams withTenantIdLike(String tenantIdLike) {
|
||||
this.tenantIdLike = tenantIdLike;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Boolean isWithoutTenantId() {
|
||||
return withoutTenantId;
|
||||
}
|
||||
|
||||
public void setWithoutTenantId(Boolean withoutTenantId) {
|
||||
this.withoutTenantId = withoutTenantId;
|
||||
}
|
||||
|
||||
public TasksQueryParams withWithoutTenantId(Boolean withoutTenantId) {
|
||||
this.withoutTenantId = withoutTenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCandidateOrAssigned() {
|
||||
return candidateOrAssigned;
|
||||
}
|
||||
|
||||
public void setCandidateOrAssigned(String candidateOrAssigned) {
|
||||
this.candidateOrAssigned = candidateOrAssigned;
|
||||
}
|
||||
|
||||
public TasksQueryParams withCandidateOrAssigned(String candidateOrAssigned) {
|
||||
this.candidateOrAssigned = candidateOrAssigned;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(String category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public TasksQueryParams withCategory(String category) {
|
||||
this.category = category;
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user