Compare commits
37
Commits
v2.0.4-aps1
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48f26c8e97 | ||
|
|
b9c7577853 | ||
|
|
9b652c7c6f | ||
|
|
9794832705 | ||
|
|
49a4e85baf | ||
|
|
ebc5b304ff | ||
|
|
35b3ae626c | ||
|
|
e9dcb0cd77 | ||
|
|
58aeabec19 | ||
|
|
dac93ad154 | ||
|
|
3e0a6d7767 | ||
|
|
1c88782ccb | ||
|
|
8440b9ec44 | ||
|
|
16553363ab | ||
|
|
d64ad7feae | ||
|
|
44ec633670 | ||
|
|
9019889239 | ||
|
|
8d993b68be | ||
|
|
962ef8f98c | ||
|
|
c0916958f0 | ||
|
|
09aabea4e3 | ||
|
|
93c593bb41 | ||
|
|
715bf6fd1e | ||
|
|
d1cf12e950 | ||
|
|
c716057a24 | ||
|
|
ce6e4752df | ||
|
|
17515d4be3 | ||
|
|
b146e1d55a | ||
|
|
14a2f74a60 | ||
|
|
24ad70c25c | ||
|
|
117e946460 | ||
|
|
cdeb325e74 | ||
|
|
85d821d70b | ||
|
|
3625e67ce6 | ||
|
|
dc69d34202 | ||
|
|
a3cef80cb3 | ||
|
|
9d031414d3 |
@@ -0,0 +1,4 @@
|
|||||||
|
Regex:
|
||||||
|
public void set([^\{]+)\{(\W*)this\.([^;]+);(\W*)}
|
||||||
|
Replace:
|
||||||
|
public void set$1\{$2this\.$3;$4}\n\n\tpublic HistoricTaskQueryRepresentation with$1\{$2this\.$3;$2return this;$4}
|
||||||
@@ -5,11 +5,11 @@
|
|||||||
|
|
||||||
<groupId>com.inteligr8.alfresco</groupId>
|
<groupId>com.inteligr8.alfresco</groupId>
|
||||||
<artifactId>aps-public-rest-api</artifactId>
|
<artifactId>aps-public-rest-api</artifactId>
|
||||||
<version>2.0-SNAPSHOT</version>
|
<version>3.1-SNAPSHOT</version>
|
||||||
|
|
||||||
<name>Alfresco Process Services ReST API for Java</name>
|
<name>Alfresco Process Services ReST API for Java</name>
|
||||||
<description>An APS API library for building REST API clients that support both the CXF and Jersey frameworks</description>
|
<description>An APS API library for building REST API clients that support both the CXF and Jersey frameworks</description>
|
||||||
<url>https://bitbucket.org/inteligr8/aps-public-rest-api</url>
|
<url>https://git.inteligr8.com/inteligr8/aps-public-rest-api</url>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
@@ -19,9 +19,9 @@
|
|||||||
</licenses>
|
</licenses>
|
||||||
|
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:https://bitbucket.org/inteligr8/aps-public-rest-api.git</connection>
|
<connection>scm:git:https://git.inteligr8.com/inteligr8/aps-public-rest-api.git</connection>
|
||||||
<developerConnection>scm:git:git@bitbucket.org:inteligr8/aps-public-rest-api.git</developerConnection>
|
<developerConnection>scm:git:git@git.inteligr8.com:inteligr8/aps-public-rest-api.git</developerConnection>
|
||||||
<url>https://bitbucket.org/inteligr8/aps-public-rest-api</url>
|
<url>https://git.inteligr8.com/inteligr8/aps-public-rest-api</url>
|
||||||
</scm>
|
</scm>
|
||||||
<organization>
|
<organization>
|
||||||
<name>Inteligr8</name>
|
<name>Inteligr8</name>
|
||||||
@@ -38,24 +38,30 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>8</maven.compiler.source>
|
<maven.compiler.source>11</maven.compiler.source>
|
||||||
<maven.compiler.target>8</maven.compiler.target>
|
<maven.compiler.target>11</maven.compiler.target>
|
||||||
<maven.compiler.debuglevel>lines,vars,source</maven.compiler.debuglevel>
|
<maven.compiler.release>11</maven.compiler.release>
|
||||||
|
|
||||||
<jersey.version>2.35</jersey.version>
|
<jersey.version>4.0.2</jersey.version>
|
||||||
<cxf.version>3.4.7</cxf.version>
|
<cxf.version>4.1.5</cxf.version>
|
||||||
|
<jackson.version>2.21.2</jackson.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>jakarta.ws.rs</groupId>
|
<groupId>jakarta.ws.rs</groupId>
|
||||||
<artifactId>jakarta.ws.rs-api</artifactId>
|
<artifactId>jakarta.ws.rs-api</artifactId>
|
||||||
<version>2.1.6</version>
|
<version>3.1.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>jakarta.activation</groupId>
|
||||||
|
<artifactId>jakarta.activation-api</artifactId>
|
||||||
|
<version>2.1.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.module</groupId>
|
<groupId>com.fasterxml.jackson.module</groupId>
|
||||||
<artifactId>jackson-module-jaxb-annotations</artifactId>
|
<artifactId>jackson-module-jakarta-xmlbind-annotations</artifactId>
|
||||||
<version>2.12.2</version>
|
<version>${jackson.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.cxf</groupId>
|
<groupId>org.apache.cxf</groupId>
|
||||||
@@ -84,10 +90,32 @@
|
|||||||
<basePackage>com.inteligr8.alfresco.activiti</basePackage>
|
<basePackage>com.inteligr8.alfresco.activiti</basePackage>
|
||||||
</properties>
|
</properties>
|
||||||
<build>
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
|
<version>3.5.0</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.googlecode.maven-download-plugin</groupId>
|
||||||
|
<artifactId>download-maven-plugin</artifactId>
|
||||||
|
<version>1.13.0</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.inteligr8</groupId>
|
||||||
|
<artifactId>regex-maven-plugin</artifactId>
|
||||||
|
<version>1.0.7</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.raml.jaxrs</groupId>
|
||||||
|
<artifactId>raml-to-jaxrs-maven-plugin</artifactId>
|
||||||
|
<version>3.0.7</version>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
<version>3.1.0</version>
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<filesets>
|
<filesets>
|
||||||
<fileset>
|
<fileset>
|
||||||
@@ -102,7 +130,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.googlecode.maven-download-plugin</groupId>
|
<groupId>com.googlecode.maven-download-plugin</groupId>
|
||||||
<artifactId>download-maven-plugin</artifactId>
|
<artifactId>download-maven-plugin</artifactId>
|
||||||
<version>1.6.3</version>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>download-aps-raml</id>
|
<id>download-aps-raml</id>
|
||||||
@@ -120,7 +147,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.inteligr8</groupId>
|
<groupId>com.inteligr8</groupId>
|
||||||
<artifactId>regex-maven-plugin</artifactId>
|
<artifactId>regex-maven-plugin</artifactId>
|
||||||
<version>1.0.2</version>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>fix-displayName</id>
|
<id>fix-displayName</id>
|
||||||
@@ -179,7 +205,6 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.raml.jaxrs</groupId>
|
<groupId>org.raml.jaxrs</groupId>
|
||||||
<artifactId>raml-to-jaxrs-maven-plugin</artifactId>
|
<artifactId>raml-to-jaxrs-maven-plugin</artifactId>
|
||||||
<version>3.0.7</version>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>raml-codegen</id>
|
<id>raml-codegen</id>
|
||||||
@@ -202,7 +227,7 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>ossrh-release</id>
|
<id>central-publish</id>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.deploy.skip>true</maven.deploy.skip>
|
<maven.deploy.skip>true</maven.deploy.skip>
|
||||||
</properties>
|
</properties>
|
||||||
@@ -220,7 +245,6 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>3.3.2</version>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>javadoc</id>
|
<id>javadoc</id>
|
||||||
@@ -244,19 +268,20 @@
|
|||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.sonatype.plugins</groupId>
|
<groupId>org.sonatype.central</groupId>
|
||||||
<artifactId>nexus-staging-maven-plugin</artifactId>
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||||
<version>1.6.13</version>
|
<version>0.10.0</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<serverId>ossrh</serverId>
|
<publishingServerId>central</publishingServerId>
|
||||||
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
|
<autoPublish>true</autoPublish>
|
||||||
<autoReleaseAfterClose>true</autoReleaseAfterClose>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<!-- for some reason this is required... -->
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>ossrh-deploy</id>
|
<id>deploy</id>
|
||||||
<phase>deploy</phase>
|
<phase>deploy</phase>
|
||||||
<goals><goal>deploy</goal></goals>
|
<goals><goal>publish</goal></goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
@@ -0,0 +1,68 @@
|
|||||||
|
/*
|
||||||
|
* 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;
|
||||||
|
|
||||||
|
import com.inteligr8.activiti.api.DeadletterJobsApi;
|
||||||
|
import com.inteligr8.activiti.api.ExecutionApi;
|
||||||
|
import com.inteligr8.activiti.api.JobsApi;
|
||||||
|
import com.inteligr8.activiti.api.ManagementApi;
|
||||||
|
import com.inteligr8.activiti.api.ProcessDefinitionApi;
|
||||||
|
import com.inteligr8.activiti.api.ProcessInstanceApi;
|
||||||
|
import com.inteligr8.activiti.api.RuntimeApi;
|
||||||
|
import com.inteligr8.activiti.api.TimerJobsApi;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface consolidates the JAX-RS APIs available in the open-source
|
||||||
|
* Activiti Public ReST API.
|
||||||
|
*
|
||||||
|
* @author brian@inteligr8.com
|
||||||
|
*/
|
||||||
|
public interface ActivitiPublicRestApi {
|
||||||
|
|
||||||
|
<T> T getApi(Class<T> apiClass);
|
||||||
|
|
||||||
|
default ManagementApi getManagementApi() {
|
||||||
|
return this.getApi(ManagementApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default RuntimeApi getRuntimeApi() {
|
||||||
|
return this.getApi(RuntimeApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default JobsApi getJobsApi() {
|
||||||
|
return this.getApi(JobsApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default DeadletterJobsApi getDeadletterJobsApi() {
|
||||||
|
return this.getApi(DeadletterJobsApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default TimerJobsApi getTimerJobsApi() {
|
||||||
|
return this.getApi(TimerJobsApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default ProcessDefinitionApi getProcessDefinitionApi() {
|
||||||
|
return this.getApi(ProcessDefinitionApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default ProcessInstanceApi getProcessInstanceApi() {
|
||||||
|
return this.getApi(ProcessInstanceApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default ExecutionApi getExecutionApi() {
|
||||||
|
return this.getApi(ExecutionApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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.io.File;
|
||||||
|
|
||||||
|
import com.inteligr8.activiti.model.Job;
|
||||||
|
import com.inteligr8.activiti.model.JobsQueryParams;
|
||||||
|
import com.inteligr8.activiti.model.ProcessInstanceAction;
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.BeanParam;
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.DELETE;
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.POST;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.PathParam;
|
||||||
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
public interface BaseJobsApi {
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{jobId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public Job getJob(
|
||||||
|
@PathParam("jobId") String jobId);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("{jobId}")
|
||||||
|
public void deleteJob(
|
||||||
|
@PathParam("jobId") String jobId);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("{jobId}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
public void executeJob(
|
||||||
|
@PathParam("jobId") String jobId,
|
||||||
|
ProcessInstanceAction execute);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{jobId}/execution-stacktrace")
|
||||||
|
@Produces({ MediaType.APPLICATION_OCTET_STREAM })
|
||||||
|
public File getJobStacktrace(
|
||||||
|
@PathParam("jobId") String jobId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<Job> queryJobs(
|
||||||
|
@BeanParam JobsQueryParams jobsConstraint);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 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 jakarta.ws.rs.Path;
|
||||||
|
|
||||||
|
@Path("/api/management/deadletter-jobs")
|
||||||
|
public interface DeadletterJobsApi extends BaseJobsApi {
|
||||||
|
}
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
/*
|
||||||
|
* 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.Execution;
|
||||||
|
import com.inteligr8.activiti.model.ExecutionsQueryParams;
|
||||||
|
import com.inteligr8.activiti.model.ProcessInstanceAction;
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
|
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.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/executions")
|
||||||
|
public interface ExecutionApi {
|
||||||
|
|
||||||
|
public enum Sort {
|
||||||
|
@JsonProperty("id")
|
||||||
|
ProcessInstanceId,
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
ProcessDefinitionId,
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
TenantId,
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
ProcessDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{executionId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
Execution get(
|
||||||
|
@PathParam("executionId") String executionId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{executionId}/activities")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
List<String> getActiveActivities(
|
||||||
|
@PathParam("executionId") String executionId);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("{executionId}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
Execution execute(
|
||||||
|
@PathParam("executionId") String executionId,
|
||||||
|
ProcessInstanceAction action);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
ResultList<Execution> query(
|
||||||
|
@BeanParam ExecutionsQueryParams params);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{executionId}/variables")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
List<Variable> getVariables(
|
||||||
|
@PathParam("executionId") String executionId,
|
||||||
|
@QueryParam("scope") VariableScope scope);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{executionId}/variables/{variableName}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
Variable getVariable(
|
||||||
|
@PathParam("executionId") String executionId,
|
||||||
|
@PathParam("variableName") String variableName);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("{executionId}/variables")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void createVariables(
|
||||||
|
@PathParam("executionId") String executionId,
|
||||||
|
List<Variable> variables);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("{executionId}/variables")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void updateVariables(
|
||||||
|
@PathParam("executionId") String executionId,
|
||||||
|
List<Variable> variables);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("{executionId}/variables/{variableName}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void updateVariable(
|
||||||
|
@PathParam("executionId") String executionId,
|
||||||
|
@PathParam("variableName") String variableName,
|
||||||
|
Variable variable);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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 com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.inteligr8.activiti.model.HistoricProcessInstance;
|
||||||
|
import com.inteligr8.activiti.model.HistoryQueryParams;
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.BeanParam;
|
||||||
|
import jakarta.ws.rs.DELETE;
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.PathParam;
|
||||||
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
@Path("/api/history")
|
||||||
|
public interface HistoryApi {
|
||||||
|
|
||||||
|
public enum Sort {
|
||||||
|
@JsonProperty("processInstanceId")
|
||||||
|
ProcessInstanceId,
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
ProcessDefinitionId,
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
TenantId,
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
ProcessDefinitionKey,
|
||||||
|
@JsonProperty("startTime")
|
||||||
|
StartTime,
|
||||||
|
@JsonProperty("endTime")
|
||||||
|
EndTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("historic-process-instances/{processInstanceId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
HistoricProcessInstance get(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("historic-process-instances/{processInstanceId}")
|
||||||
|
void delete(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("historic-process-instances")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<HistoricProcessInstance> query(
|
||||||
|
@BeanParam HistoryQueryParams params);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 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 jakarta.ws.rs.Path;
|
||||||
|
|
||||||
|
@Path("/api/management/jobs")
|
||||||
|
public interface JobsApi extends BaseJobsApi {
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* 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 jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
import com.inteligr8.activiti.model.Engine;
|
||||||
|
import com.inteligr8.activiti.model.EngineProperties;
|
||||||
|
|
||||||
|
@Path("/api/management")
|
||||||
|
public interface ManagementApi {
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("engine")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public Engine getEngine();
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("properties")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public EngineProperties getEngineProperties();
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* 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 com.inteligr8.activiti.model.ProcessDefinition;
|
||||||
|
import com.inteligr8.activiti.model.ProcessDefinitionAction;
|
||||||
|
import com.inteligr8.activiti.model.ProcessDefinitionsQueryParams;
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.BeanParam;
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.PUT;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.PathParam;
|
||||||
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
@Path("/api/repository/process-definitions")
|
||||||
|
public interface ProcessDefinitionApi {
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{processDefinitionId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
ProcessDefinition get(
|
||||||
|
@PathParam("processDefinitionId") String processDefinitionId);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("{processDefinitionId}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void act(
|
||||||
|
@PathParam("processDefinitionId") String processDefinitionId,
|
||||||
|
ProcessDefinitionAction action);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<ProcessDefinition> query(
|
||||||
|
@BeanParam ProcessDefinitionsQueryParams params);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
/*
|
||||||
|
* 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.io.File;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.inteligr8.activiti.model.ProcessInstance;
|
||||||
|
import com.inteligr8.activiti.model.ProcessInstanceAction;
|
||||||
|
import com.inteligr8.activiti.model.ProcessInstancesQueryParams;
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
|
import com.inteligr8.activiti.model.Variable;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.BeanParam;
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.DELETE;
|
||||||
|
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.core.MediaType;
|
||||||
|
|
||||||
|
@Path("/api/runtime/process-instances")
|
||||||
|
public interface ProcessInstanceApi {
|
||||||
|
|
||||||
|
public enum Sort {
|
||||||
|
@JsonProperty("id")
|
||||||
|
ProcessInstanceId,
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
ProcessDefinitionId,
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
TenantId,
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
ProcessDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{processInstanceId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
ProcessInstance get(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("{processInstanceId}")
|
||||||
|
void delete(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("{processInstanceId}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void act(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId,
|
||||||
|
ProcessInstanceAction action);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<ProcessInstance> query(
|
||||||
|
@BeanParam ProcessInstancesQueryParams params);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{processInstanceId}/diagram")
|
||||||
|
@Produces({ "image/png" })
|
||||||
|
File getDiagram(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{processInstanceId}/variables")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
List<Variable> getVariables(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{processInstanceId}/variables/{variableName}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
Variable getVariable(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId,
|
||||||
|
@PathParam("variableName") String variableName);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("{processInstanceId}/variables")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void createVariables(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId,
|
||||||
|
List<Variable> variables);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("{processInstanceId}/variables")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void updateVariables(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId,
|
||||||
|
List<Variable> variables);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("{processInstanceId}/variables/{variableName}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void updateVariable(
|
||||||
|
@PathParam("processInstanceId") String processInstanceId,
|
||||||
|
@PathParam("variableName") String variableName,
|
||||||
|
Variable variable);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* 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 jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.POST;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
import com.inteligr8.activiti.model.Variable;
|
||||||
|
|
||||||
|
@Path("/api/runtime")
|
||||||
|
public interface RuntimeApi {
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("signals")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
void signalReceived(
|
||||||
|
String signal,
|
||||||
|
String tenantId,
|
||||||
|
Boolean async,
|
||||||
|
List<Variable> variables);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
/*
|
||||||
|
* 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 jakarta.ws.rs.Path;
|
||||||
|
|
||||||
|
@Path("/api/management/timer-jobs")
|
||||||
|
public interface TimerJobsApi extends BaseJobsApi {
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package com.inteligr8.activiti.jackson;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.Collection;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.databind.JsonSerializer;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
|
||||||
|
public class CollectionJsonSerializer extends JsonSerializer<Collection<?>> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize(Collection<?> values, JsonGenerator gen, SerializerProvider serializers) throws IOException {
|
||||||
|
if (values == null) {
|
||||||
|
gen.writeNull();
|
||||||
|
} else if (values.isEmpty()) {
|
||||||
|
gen.writeString("");
|
||||||
|
} else {
|
||||||
|
StringBuilder str = new StringBuilder();
|
||||||
|
for (Object value : values)
|
||||||
|
str.append(value).append(',');
|
||||||
|
str.deleteCharAt(str.length()-1);
|
||||||
|
gen.writeString(str.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package com.inteligr8.activiti.jackson;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JacksonException;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.JsonDeserializer;
|
||||||
|
|
||||||
|
public class StringListJsonDeserializer extends JsonDeserializer<List<String>> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String> deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JacksonException {
|
||||||
|
String values = ctxt.readValue(p, String.class);
|
||||||
|
if (values == null)
|
||||||
|
return null;
|
||||||
|
return Arrays.asList(values.split(","));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package com.inteligr8.activiti.jakarta;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.ext.ParamConverter;
|
||||||
|
|
||||||
|
public class OffsetDateTimeConverter implements ParamConverter<OffsetDateTime> {
|
||||||
|
|
||||||
|
private final DateTimeFormatter formatter;
|
||||||
|
|
||||||
|
public OffsetDateTimeConverter(DateTimeFormatter formatter) {
|
||||||
|
this.formatter = formatter;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OffsetDateTime fromString(String value) {
|
||||||
|
if (value == null)
|
||||||
|
return null;
|
||||||
|
return OffsetDateTime.parse(value, this.formatter);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString(OffsetDateTime value) {
|
||||||
|
if (value == null)
|
||||||
|
return null;
|
||||||
|
return value.format(this.formatter);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package com.inteligr8.activiti.jakarta;
|
||||||
|
|
||||||
|
import java.lang.annotation.Annotation;
|
||||||
|
import java.lang.reflect.Type;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import java.time.format.DateTimeFormatter;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.ext.ParamConverter;
|
||||||
|
import jakarta.ws.rs.ext.ParamConverterProvider;
|
||||||
|
|
||||||
|
public class OffsetDateTimeConverterProvider implements ParamConverterProvider {
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
@Override
|
||||||
|
public <T> ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations) {
|
||||||
|
if (OffsetDateTime.class.isAssignableFrom(rawType)) {
|
||||||
|
return (ParamConverter<T>) new OffsetDateTimeConverter(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXX"));
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+2
-5
@@ -1,18 +1,15 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@JsonPropertyOrder({
|
|
||||||
|
|
||||||
})
|
|
||||||
public class Datum {
|
public class Datum {
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
public enum DelegationState {
|
||||||
|
|
||||||
|
@JsonProperty("pending")
|
||||||
|
Pending,
|
||||||
|
@JsonProperty("resolved")
|
||||||
|
Resolved
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class Engine {
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("version")
|
||||||
|
private String version;
|
||||||
|
@JsonProperty("resourceUrl")
|
||||||
|
private String resourceUrl;
|
||||||
|
@JsonProperty("exception")
|
||||||
|
private String exception;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public Engine() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Engine withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVersion() {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVersion(String version) {
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Engine withVersion(String version) {
|
||||||
|
this.version = version;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResourceUrl() {
|
||||||
|
return resourceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResourceUrl(String resourceUrl) {
|
||||||
|
this.resourceUrl = resourceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Engine withResourceUrl(String resourceUrl) {
|
||||||
|
this.resourceUrl = resourceUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getException() {
|
||||||
|
return exception;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setException(String exception) {
|
||||||
|
this.exception = exception;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Engine withException(String exception) {
|
||||||
|
this.exception = exception;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class EngineProperties {
|
||||||
|
|
||||||
|
@JsonProperty("next.dbid")
|
||||||
|
private String nextDbid;
|
||||||
|
@JsonProperty("schema.history")
|
||||||
|
private String schemaHistory;
|
||||||
|
@JsonProperty("schema.version")
|
||||||
|
private String schemaVersion;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public EngineProperties() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNextDbid() {
|
||||||
|
return nextDbid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNextDbid(String nextDbid) {
|
||||||
|
this.nextDbid = nextDbid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EngineProperties withNextDbid(String nextDbid) {
|
||||||
|
this.nextDbid = nextDbid;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSchemaHistory() {
|
||||||
|
return schemaHistory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchemaHistory(String schemaHistory) {
|
||||||
|
this.schemaHistory = schemaHistory;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EngineProperties withSchemaHistory(String schemaHistory) {
|
||||||
|
this.schemaHistory = schemaHistory;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSchemaVersion() {
|
||||||
|
return schemaVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSchemaVersion(String schemaVersion) {
|
||||||
|
this.schemaVersion = schemaVersion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public EngineProperties withSchemaVersion(String schemaVersion) {
|
||||||
|
this.schemaVersion = schemaVersion;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,182 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class Execution extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("activityId")
|
||||||
|
private String activityId;
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("parentId")
|
||||||
|
private String parentId;
|
||||||
|
@JsonProperty("parentUrl")
|
||||||
|
private String parentUrl;
|
||||||
|
@JsonProperty("processInstanceId")
|
||||||
|
private String processInstanceId;
|
||||||
|
@JsonProperty("processInstanceUrl")
|
||||||
|
private String processInstanceUrl;
|
||||||
|
@JsonProperty("superExecutionId")
|
||||||
|
private String superExecutionId;
|
||||||
|
@JsonProperty("superExecutionUrl")
|
||||||
|
private String superExecutionUrl;
|
||||||
|
@JsonProperty("suspended")
|
||||||
|
private Boolean suspended;
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@JsonProperty("url")
|
||||||
|
private String url;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public Execution() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getActivityId() {
|
||||||
|
return activityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivityId(String activityId) {
|
||||||
|
this.activityId = activityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withActivityId(String activityId) {
|
||||||
|
this.activityId = activityId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParentId() {
|
||||||
|
return parentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParentId(String parentId) {
|
||||||
|
this.parentId = parentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withParentId(String parentId) {
|
||||||
|
this.parentId = parentId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParentUrl() {
|
||||||
|
return parentUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParentUrl(String parentUrl) {
|
||||||
|
this.parentUrl = parentUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withParentUrl(String parentUrl) {
|
||||||
|
this.parentUrl = parentUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceUrl() {
|
||||||
|
return processInstanceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceUrl(String processInstanceUrl) {
|
||||||
|
this.processInstanceUrl = processInstanceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withProcessInstanceUrl(String processInstanceUrl) {
|
||||||
|
this.processInstanceUrl = processInstanceUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSuperExecutionId() {
|
||||||
|
return superExecutionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuperExecutionId(String superExecutionId) {
|
||||||
|
this.superExecutionId = superExecutionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withSuperExecutionId(String superExecutionId) {
|
||||||
|
this.superExecutionId = superExecutionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSuperExecutionUrl() {
|
||||||
|
return superExecutionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuperExecutionUrl(String superExecutionUrl) {
|
||||||
|
this.superExecutionUrl = superExecutionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withSuperExecutionUrl(String superExecutionUrl) {
|
||||||
|
this.superExecutionUrl = superExecutionUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getSuspended() {
|
||||||
|
return suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Execution withUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,182 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
public class ExecutionsQueryParams extends QueryParams<ExecutionsQueryParams> {
|
||||||
|
|
||||||
|
@QueryParam("id")
|
||||||
|
private String id;
|
||||||
|
@QueryParam("activityId")
|
||||||
|
private String activityId;
|
||||||
|
@QueryParam("processInstanceId")
|
||||||
|
private String processInstanceId;
|
||||||
|
@QueryParam("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@QueryParam("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@QueryParam("messageEventSubscriptionName")
|
||||||
|
private String messageEventSubscriptionName;
|
||||||
|
@QueryParam("signalEventSubscriptionName")
|
||||||
|
private String signalEventSubscriptionName;
|
||||||
|
@QueryParam("parentId")
|
||||||
|
private String parentId;
|
||||||
|
@QueryParam("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@QueryParam("tenantIdLike")
|
||||||
|
private String tenantIdLike;
|
||||||
|
@QueryParam("withoutTenantId")
|
||||||
|
private Boolean withoutTenantId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ExecutionsQueryParams() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getActivityId() {
|
||||||
|
return activityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivityId(String activityId) {
|
||||||
|
this.activityId = activityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withActivityId(String activityId) {
|
||||||
|
this.activityId = activityId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMessageEventSubscriptionName() {
|
||||||
|
return messageEventSubscriptionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMessageEventSubscriptionName(String messageEventSubscriptionName) {
|
||||||
|
this.messageEventSubscriptionName = messageEventSubscriptionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withMessageEventSubscriptionName(String messageEventSubscriptionName) {
|
||||||
|
this.messageEventSubscriptionName = messageEventSubscriptionName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSignalEventSubscriptionName() {
|
||||||
|
return signalEventSubscriptionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSignalEventSubscriptionName(String signalEventSubscriptionName) {
|
||||||
|
this.signalEventSubscriptionName = signalEventSubscriptionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withSignalEventSubscriptionName(String signalEventSubscriptionName) {
|
||||||
|
this.signalEventSubscriptionName = signalEventSubscriptionName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParentId() {
|
||||||
|
return parentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParentId(String parentId) {
|
||||||
|
this.parentId = parentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withParentId(String parentId) {
|
||||||
|
this.parentId = parentId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantIdLike() {
|
||||||
|
return tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getWithoutTenantId() {
|
||||||
|
return withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ExecutionsQueryParams withWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,265 @@
|
|||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class HistoricProcessInstance extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("businessKey")
|
||||||
|
private String businessKey;
|
||||||
|
@JsonProperty("deleteReason")
|
||||||
|
private String deleteReason;
|
||||||
|
@JsonProperty("durationInMillis")
|
||||||
|
private Long durationInMillis;
|
||||||
|
@JsonProperty("endActivityId")
|
||||||
|
private String endActivityId;
|
||||||
|
@JsonProperty("endTime")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime endTime;
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@JsonProperty("processDefinitionUrl")
|
||||||
|
private String processDefinitionUrl;
|
||||||
|
@JsonProperty("startActivityId")
|
||||||
|
private String startActivityId;
|
||||||
|
@JsonProperty("startTime")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime startTime;
|
||||||
|
@JsonProperty("startUserId")
|
||||||
|
private String startUserId;
|
||||||
|
@JsonProperty("superProcessInstanceId")
|
||||||
|
private String superProcessInstanceId;
|
||||||
|
@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 HistoricProcessInstance() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessKey() {
|
||||||
|
return businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeleteReason() {
|
||||||
|
return deleteReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeleteReason(String deleteReason) {
|
||||||
|
this.deleteReason = deleteReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withDeleteReason(String deleteReason) {
|
||||||
|
this.deleteReason = deleteReason;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDurationInMillis() {
|
||||||
|
return durationInMillis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDurationInMillis(Long durationInMillis) {
|
||||||
|
this.durationInMillis = durationInMillis;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withDurationInMillis(Long durationInMillis) {
|
||||||
|
this.durationInMillis = durationInMillis;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEndActivityId() {
|
||||||
|
return endActivityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndActivityId(String endActivityId) {
|
||||||
|
this.endActivityId = endActivityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withEndActivityId(String endActivityId) {
|
||||||
|
this.endActivityId = endActivityId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getEndTime() {
|
||||||
|
return endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndTime(OffsetDateTime endTime) {
|
||||||
|
this.endTime = endTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withEndTime(OffsetDateTime endTime) {
|
||||||
|
this.endTime = endTime;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionUrl() {
|
||||||
|
return processDefinitionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionUrl(String processDefinitionUrl) {
|
||||||
|
this.processDefinitionUrl = processDefinitionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withProcessDefinitionUrl(String processDefinitionUrl) {
|
||||||
|
this.processDefinitionUrl = processDefinitionUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartActivityId() {
|
||||||
|
return startActivityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartActivityId(String startActivityId) {
|
||||||
|
this.startActivityId = startActivityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withStartActivityId(String startActivityId) {
|
||||||
|
this.startActivityId = startActivityId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getStartTime() {
|
||||||
|
return startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartTime(OffsetDateTime startTime) {
|
||||||
|
this.startTime = startTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withStartime(OffsetDateTime startTime) {
|
||||||
|
this.startTime = startTime;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartUserId() {
|
||||||
|
return startUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartUserId(String startUserId) {
|
||||||
|
this.startUserId = startUserId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withStartUserId(String startUserId) {
|
||||||
|
this.startUserId = startUserId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSuperProcessInstanceId() {
|
||||||
|
return superProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuperProcessInstanceId(String superProcessInstanceId) {
|
||||||
|
this.superProcessInstanceId = superProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withSuperProcessInstanceId(String superProcessInstanceId) {
|
||||||
|
this.superProcessInstanceId = superProcessInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Variable> getVariables() {
|
||||||
|
return variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricProcessInstance withVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,281 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
public class HistoryQueryParams extends QueryParams<HistoryQueryParams> {
|
||||||
|
|
||||||
|
@QueryParam("processInstanceId")
|
||||||
|
private String processInstanceId;
|
||||||
|
@QueryParam("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@QueryParam("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@QueryParam("businessKey")
|
||||||
|
private String businessKey;
|
||||||
|
@QueryParam("involvedUser")
|
||||||
|
private String involvedUser;
|
||||||
|
@QueryParam("finished")
|
||||||
|
private Boolean finished;
|
||||||
|
@QueryParam("superProcessInstanceId")
|
||||||
|
private String superProcessInstanceId;
|
||||||
|
@QueryParam("excludeSubprocesses")
|
||||||
|
private Boolean excludeSubprocesses;
|
||||||
|
@QueryParam("finishedAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime finishedAfter;
|
||||||
|
@QueryParam("finishedBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime finishedBefore;
|
||||||
|
@QueryParam("startedAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime startedAfter;
|
||||||
|
@QueryParam("startedBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime startedBefore;
|
||||||
|
@QueryParam("startedBy")
|
||||||
|
private String startedBy;
|
||||||
|
@QueryParam("includeProcessVariables")
|
||||||
|
private Boolean includeProcessVariables;
|
||||||
|
@QueryParam("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@QueryParam("tenantIdLike")
|
||||||
|
private String tenantIdLike;
|
||||||
|
@QueryParam("withoutTenantId")
|
||||||
|
private Boolean withoutTenantId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public HistoryQueryParams() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessKey() {
|
||||||
|
return businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInvolvedUser() {
|
||||||
|
return involvedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvolvedUser(String involvedUser) {
|
||||||
|
this.involvedUser = involvedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withInvolvedUser(String involvedUser) {
|
||||||
|
this.involvedUser = involvedUser;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isFinished() {
|
||||||
|
return finished;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFinished(Boolean finished) {
|
||||||
|
this.finished = finished;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withFinished(Boolean finished) {
|
||||||
|
this.finished = finished;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSuperProcessInstanceId() {
|
||||||
|
return superProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuperProcessInstanceId(String superProcessInstanceId) {
|
||||||
|
this.superProcessInstanceId = superProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withSuperProcessInstanceId(String superProcessInstanceId) {
|
||||||
|
this.superProcessInstanceId = superProcessInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isExcludeSubprocesses() {
|
||||||
|
return excludeSubprocesses;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExcludeSubprocesses(Boolean excludeSubprocesses) {
|
||||||
|
this.excludeSubprocesses = excludeSubprocesses;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withExcludeSubprocesses(Boolean excludeSubprocesses) {
|
||||||
|
this.excludeSubprocesses = excludeSubprocesses;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getFinishedAfter() {
|
||||||
|
return finishedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFinishedAfter(OffsetDateTime finishedAfter) {
|
||||||
|
this.finishedAfter = finishedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withFinishedAfter(OffsetDateTime finishedAfter) {
|
||||||
|
this.finishedAfter = finishedAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getFinishedBefore() {
|
||||||
|
return finishedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFinishedBefore(OffsetDateTime finishedBefore) {
|
||||||
|
this.finishedBefore = finishedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withFinishedBefore(OffsetDateTime finishedBefore) {
|
||||||
|
this.finishedBefore = finishedBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getStartedAfter() {
|
||||||
|
return startedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartedAfter(OffsetDateTime startedAfter) {
|
||||||
|
this.startedAfter = startedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withStartedAfter(OffsetDateTime startedAfter) {
|
||||||
|
this.startedAfter = startedAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getStartedBefore() {
|
||||||
|
return startedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartedBefore(OffsetDateTime startedBefore) {
|
||||||
|
this.startedBefore = startedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withStartedBefore(OffsetDateTime startedBefore) {
|
||||||
|
this.startedBefore = startedBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartedBy() {
|
||||||
|
return startedBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartedBy(String startedBy) {
|
||||||
|
this.startedBy = startedBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withStartedBy(String startedBy) {
|
||||||
|
this.startedBy = startedBy;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isIncludeProcessVariables() {
|
||||||
|
return includeProcessVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantIdLike() {
|
||||||
|
return tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getWithoutTenantId() {
|
||||||
|
return withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoryQueryParams withWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,189 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class Job extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("processInstanceId")
|
||||||
|
private String processInstanceId;
|
||||||
|
@JsonProperty("processInstanceUrl")
|
||||||
|
private String processInstanceUrl;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("processDefinitionUrl")
|
||||||
|
private String processDefinitionUrl;
|
||||||
|
@JsonProperty("executionId")
|
||||||
|
private String executionId;
|
||||||
|
@JsonProperty("executionUrl")
|
||||||
|
private String executionUrl;
|
||||||
|
@JsonProperty("retries")
|
||||||
|
private int retries;
|
||||||
|
@JsonProperty("exceptionMessage")
|
||||||
|
private String exceptionMessage;
|
||||||
|
@JsonProperty("dueDate")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueDate;
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public Job() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceUrl() {
|
||||||
|
return processInstanceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceUrl(String processInstanceUrl) {
|
||||||
|
this.processInstanceUrl = processInstanceUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withProcessInstanceUrl(String processInstanceUrl) {
|
||||||
|
this.processInstanceUrl = processInstanceUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionUrl() {
|
||||||
|
return processDefinitionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionUrl(String processDefinitionUrl) {
|
||||||
|
this.processDefinitionUrl = processDefinitionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withProcessDefinitionUrl(String processDefinitionUrl) {
|
||||||
|
this.processDefinitionUrl = processDefinitionUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExecutionId() {
|
||||||
|
return executionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExecutionId(String executionId) {
|
||||||
|
this.executionId = executionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withExecutionId(String executionId) {
|
||||||
|
this.executionId = executionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExecutionUrl() {
|
||||||
|
return executionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExecutionUrl(String executionUrl) {
|
||||||
|
this.executionUrl = executionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withExecutionUrl(String executionUrl) {
|
||||||
|
this.executionUrl = executionUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getRetries() {
|
||||||
|
return retries;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRetries(int retries) {
|
||||||
|
this.retries = retries;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withRetries(int retries) {
|
||||||
|
this.retries = retries;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExceptionMessage() {
|
||||||
|
return exceptionMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExceptionMessage(String exceptionMessage) {
|
||||||
|
this.exceptionMessage = exceptionMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withExceptionMessage(String exceptionMessage) {
|
||||||
|
this.exceptionMessage = exceptionMessage;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueDate() {
|
||||||
|
return dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueDate(OffsetDateTime dueDate) {
|
||||||
|
this.dueDate = dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withDueDate(OffsetDateTime dueDate) {
|
||||||
|
this.dueDate = dueDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Job withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,214 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
public class JobsQueryParams extends QueryParams<JobsQueryParams> {
|
||||||
|
|
||||||
|
@QueryParam("id")
|
||||||
|
private String id;
|
||||||
|
@QueryParam("processInstanceId")
|
||||||
|
private String processInstanceId;
|
||||||
|
@QueryParam("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@QueryParam("executionId")
|
||||||
|
private String executionId;
|
||||||
|
@QueryParam("withRetriesLeft")
|
||||||
|
private Boolean withRetriesLeft;
|
||||||
|
@QueryParam("executable")
|
||||||
|
private Boolean executable;
|
||||||
|
@QueryParam("withException")
|
||||||
|
private Boolean withException;
|
||||||
|
@QueryParam("dueAfter")
|
||||||
|
private OffsetDateTime dueAfter;
|
||||||
|
@QueryParam("dueBefore")
|
||||||
|
private OffsetDateTime dueBefore;
|
||||||
|
@QueryParam("exceptionMessage")
|
||||||
|
private String exceptionMessage;
|
||||||
|
@QueryParam("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@QueryParam("tenantIdLike")
|
||||||
|
private String tenantIdLike;
|
||||||
|
@QueryParam("withoutTenantId")
|
||||||
|
private Boolean withoutTenantId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public JobsQueryParams() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExecutionId() {
|
||||||
|
return executionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExecutionId(String executionId) {
|
||||||
|
this.executionId = executionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withExecutionId(String executionId) {
|
||||||
|
this.executionId = executionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getWithRetriesLeft() {
|
||||||
|
return withRetriesLeft;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithRetriesLeft(Boolean withRetriesLeft) {
|
||||||
|
this.withRetriesLeft = withRetriesLeft;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withRetriesLeft(Boolean withRetriesLeft) {
|
||||||
|
this.withRetriesLeft = withRetriesLeft;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getExecutable() {
|
||||||
|
return executable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExecutable(Boolean executable) {
|
||||||
|
this.executable = executable;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withExecutable(Boolean executable) {
|
||||||
|
this.executable = executable;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getWithException() {
|
||||||
|
return withException;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithException(Boolean withException) {
|
||||||
|
this.withException = withException;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withException(Boolean withException) {
|
||||||
|
this.withException = withException;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueBefore() {
|
||||||
|
return dueBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueBefore(OffsetDateTime dueBefore) {
|
||||||
|
this.dueBefore = dueBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withDueBefore(OffsetDateTime dueBefore) {
|
||||||
|
this.dueBefore = dueBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueAfter() {
|
||||||
|
return dueAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueAfter(OffsetDateTime dueAfter) {
|
||||||
|
this.dueAfter = dueAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withDueAfter(OffsetDateTime dueAfter) {
|
||||||
|
this.dueAfter = dueAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getExceptionMessage() {
|
||||||
|
return exceptionMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExceptionMessage(String exceptionMessage) {
|
||||||
|
this.exceptionMessage = exceptionMessage;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withExceptionMessage(String exceptionMessage) {
|
||||||
|
this.exceptionMessage = exceptionMessage;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantIdLike() {
|
||||||
|
return tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getWithoutTenantId() {
|
||||||
|
return withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JobsQueryParams withWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class MessageEventAction extends ProcessInstanceAction {
|
||||||
|
|
||||||
|
@JsonProperty("messageName")
|
||||||
|
private String message;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public MessageEventAction() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public MessageEventAction(ActionValue action, String message) {
|
||||||
|
super(action);
|
||||||
|
this.message = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMessage() {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMessage(String message) {
|
||||||
|
this.message = message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MessageEventAction withMessage(String message) {
|
||||||
|
this.message = message;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,243 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class ProcessDefinition extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("category")
|
||||||
|
private String category;
|
||||||
|
@JsonProperty("deploymentId")
|
||||||
|
private String deploymentId;
|
||||||
|
@JsonProperty("deploymentUrl")
|
||||||
|
private String deploymentUrl;
|
||||||
|
@JsonProperty("diagramResource")
|
||||||
|
private String diagramResource;
|
||||||
|
@JsonProperty("description")
|
||||||
|
private String description;
|
||||||
|
@JsonProperty("graphicalNotationDefined")
|
||||||
|
private boolean graphicalNotationDefined;
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("key")
|
||||||
|
private String key;
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("resource")
|
||||||
|
private String resource;
|
||||||
|
@JsonProperty("startFormDefined")
|
||||||
|
private boolean startFormDefined;
|
||||||
|
@JsonProperty("suspended")
|
||||||
|
private boolean suspended;
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@JsonProperty("url")
|
||||||
|
private String url;
|
||||||
|
@JsonProperty("version")
|
||||||
|
private Integer version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessDefinition() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeploymentId() {
|
||||||
|
return deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeploymentUrl() {
|
||||||
|
return deploymentUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeploymentUrl(String deploymentUrl) {
|
||||||
|
this.deploymentUrl = deploymentUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withDeploymentUrl(String deploymentUrl) {
|
||||||
|
this.deploymentUrl = deploymentUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDiagramResource() {
|
||||||
|
return diagramResource;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDiagramResource(String diagramResource) {
|
||||||
|
this.diagramResource = diagramResource;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withDiagramResource(String diagramResource) {
|
||||||
|
this.diagramResource = diagramResource;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isGraphicalNotationDefined() {
|
||||||
|
return graphicalNotationDefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGraphicalNotationDefined(boolean graphicalNotationDefined) {
|
||||||
|
this.graphicalNotationDefined = graphicalNotationDefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withGraphicalNotationDefined(boolean graphicalNotationDefined) {
|
||||||
|
this.graphicalNotationDefined = graphicalNotationDefined;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResource() {
|
||||||
|
return resource;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResource(String resource) {
|
||||||
|
this.resource = resource;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withResource(String resource) {
|
||||||
|
this.resource = resource;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isStartFormDefined() {
|
||||||
|
return startFormDefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartFormDefined(boolean startFormDefined) {
|
||||||
|
this.startFormDefined = startFormDefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withStartFormDefined(boolean startFormDefined) {
|
||||||
|
this.startFormDefined = startFormDefined;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSuspended() {
|
||||||
|
return suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspended(boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withSuspended(boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getVersion() {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVersion(Integer version) {
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withVersion(Integer version) {
|
||||||
|
this.version = version;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class ProcessDefinitionAction {
|
||||||
|
|
||||||
|
public enum ActionValue {
|
||||||
|
@JsonProperty("suspend")
|
||||||
|
Suspend,
|
||||||
|
@JsonProperty("activate")
|
||||||
|
Activate
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("action")
|
||||||
|
private ActionValue action;
|
||||||
|
@JsonProperty("includeProcessInstances")
|
||||||
|
private boolean includeProcessInstances;
|
||||||
|
@JsonProperty("date")
|
||||||
|
private OffsetDateTime date;
|
||||||
|
@JsonProperty("category")
|
||||||
|
private String category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessDefinitionAction() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionAction(ActionValue action) {
|
||||||
|
this.action = action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ActionValue getAction() {
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAction(ActionValue action) {
|
||||||
|
this.action = action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionAction withAction(ActionValue action) {
|
||||||
|
this.action = action;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isIncludeProcessInstances() {
|
||||||
|
return includeProcessInstances;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIncludeProcessInstances(boolean includeProcessInstances) {
|
||||||
|
this.includeProcessInstances = includeProcessInstances;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionAction withIncludeProcessInstances(boolean includeProcessInstances) {
|
||||||
|
this.includeProcessInstances = includeProcessInstances;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDate() {
|
||||||
|
return date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDate(OffsetDateTime date) {
|
||||||
|
this.date = date;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionAction withDate(OffsetDateTime date) {
|
||||||
|
this.date = date;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionAction withCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,257 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
public class ProcessDefinitionsQueryParams extends QueryParams<ProcessDefinitionsQueryParams> {
|
||||||
|
|
||||||
|
@QueryParam("category")
|
||||||
|
private String category;
|
||||||
|
@QueryParam("categoryLike")
|
||||||
|
private String categoryLike;
|
||||||
|
@QueryParam("categoryNotEquals")
|
||||||
|
private String categoryNotEquals;
|
||||||
|
@QueryParam("key")
|
||||||
|
private String key;
|
||||||
|
@QueryParam("keyLike")
|
||||||
|
private String keyLike;
|
||||||
|
@QueryParam("name")
|
||||||
|
private String name;
|
||||||
|
@QueryParam("nameLike")
|
||||||
|
private String nameLike;
|
||||||
|
@QueryParam("resourceName")
|
||||||
|
private String resourceName;
|
||||||
|
@QueryParam("resourceNameLike")
|
||||||
|
private String resourceNameLike;
|
||||||
|
@QueryParam("version")
|
||||||
|
private String version;
|
||||||
|
@QueryParam("suspended")
|
||||||
|
private Boolean suspended;
|
||||||
|
@QueryParam("latest")
|
||||||
|
private Boolean latest;
|
||||||
|
@QueryParam("deploymentId")
|
||||||
|
private String deploymentId;
|
||||||
|
@QueryParam("startableByUser")
|
||||||
|
private String startableByUser;
|
||||||
|
@QueryParam("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@QueryParam("tenantIdLike")
|
||||||
|
private String tenantIdLike;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessDefinitionsQueryParams() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategoryLike() {
|
||||||
|
return categoryLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoryLike(String categoryLike) {
|
||||||
|
this.categoryLike = categoryLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withCategoryLike(String categoryLike) {
|
||||||
|
this.categoryLike = categoryLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategoryNotEquals() {
|
||||||
|
return categoryNotEquals;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategoryNotEquals(String categoryNotEquals) {
|
||||||
|
this.categoryNotEquals = categoryNotEquals;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withCategoryNotEquals(String categoryNotEquals) {
|
||||||
|
this.categoryNotEquals = categoryNotEquals;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKeyLike() {
|
||||||
|
return keyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKeyLike(String keyLike) {
|
||||||
|
this.keyLike = keyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withKeyLike(String keyLike) {
|
||||||
|
this.keyLike = keyLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNameLike() {
|
||||||
|
return nameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNameLike(String nameLike) {
|
||||||
|
this.nameLike = nameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withNameLike(String nameLike) {
|
||||||
|
this.nameLike = nameLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResourceName() {
|
||||||
|
return resourceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResourceName(String resourceName) {
|
||||||
|
this.resourceName = resourceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withResourceName(String resourceName) {
|
||||||
|
this.resourceName = resourceName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getResourceNameLike() {
|
||||||
|
return resourceNameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResourceNameLike(String resourceNameLike) {
|
||||||
|
this.resourceNameLike = resourceNameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withResourceNameLike(String resourceNameLike) {
|
||||||
|
this.resourceNameLike = resourceNameLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVersion() {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVersion(String version) {
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withVersion(String version) {
|
||||||
|
this.version = version;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isSuspended() {
|
||||||
|
return suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isLatest() {
|
||||||
|
return latest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLatest(Boolean latest) {
|
||||||
|
this.latest = latest;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withLatest(Boolean latest) {
|
||||||
|
this.latest = latest;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeploymentId() {
|
||||||
|
return deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStartableByUser() {
|
||||||
|
return startableByUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartableByUser(String startableByUser) {
|
||||||
|
this.startableByUser = startableByUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withStartableByUser(String startableByUser) {
|
||||||
|
this.startableByUser = startableByUser;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantIdLike() {
|
||||||
|
return tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinitionsQueryParams withTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,215 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class ProcessInstance extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("activityId")
|
||||||
|
private String activityId;
|
||||||
|
@JsonProperty("businessKey")
|
||||||
|
private String businessKey;
|
||||||
|
@JsonProperty("completed")
|
||||||
|
private Boolean completed;
|
||||||
|
@JsonProperty("ended")
|
||||||
|
private Boolean ended;
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@JsonProperty("processDefinitionUrl")
|
||||||
|
private String processDefinitionUrl;
|
||||||
|
@JsonProperty("suspended")
|
||||||
|
private Boolean suspended;
|
||||||
|
@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 ProcessInstance() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getActivityId() {
|
||||||
|
return activityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setActivityId(String activityId) {
|
||||||
|
this.activityId = activityId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withActivityId(String activityId) {
|
||||||
|
this.activityId = activityId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessKey() {
|
||||||
|
return businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getCompleted() {
|
||||||
|
return completed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCompleted(Boolean completed) {
|
||||||
|
this.completed = completed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withCompleted(Boolean completed) {
|
||||||
|
this.completed = completed;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getEnded() {
|
||||||
|
return ended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEnded(Boolean ended) {
|
||||||
|
this.ended = ended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withEnded(Boolean ended) {
|
||||||
|
this.ended = ended;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionUrl() {
|
||||||
|
return processDefinitionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionUrl(String processDefinitionUrl) {
|
||||||
|
this.processDefinitionUrl = processDefinitionUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withProcessDefinitionUrl(String processDefinitionUrl) {
|
||||||
|
this.processDefinitionUrl = processDefinitionUrl;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getSuspended() {
|
||||||
|
return suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withUrl(String url) {
|
||||||
|
this.url = url;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Variable> getVariables() {
|
||||||
|
return variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstance withVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
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 ProcessInstanceAction {
|
||||||
|
|
||||||
|
public enum ActionValue {
|
||||||
|
@JsonProperty("execute")
|
||||||
|
Execute,
|
||||||
|
@JsonProperty("suspend")
|
||||||
|
Suspend,
|
||||||
|
@JsonProperty("activate")
|
||||||
|
Activate,
|
||||||
|
@JsonProperty("signal")
|
||||||
|
Signal,
|
||||||
|
@JsonProperty("signalEventReceived")
|
||||||
|
SignalReceived,
|
||||||
|
@JsonProperty("messageEventReceived")
|
||||||
|
MessageReceived
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("action")
|
||||||
|
private ActionValue action;
|
||||||
|
@JsonProperty("variables")
|
||||||
|
private List<Variable> variables;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessInstanceAction() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceAction(ActionValue action) {
|
||||||
|
this.action = action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ActionValue getAction() {
|
||||||
|
return action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAction(ActionValue action) {
|
||||||
|
this.action = action;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceAction withAction(ActionValue action) {
|
||||||
|
this.action = action;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Variable> getVariables() {
|
||||||
|
return variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceAction withVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,210 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
public class ProcessInstancesQueryParams extends QueryParams<ProcessDefinitionsQueryParams> {
|
||||||
|
|
||||||
|
@QueryParam("id")
|
||||||
|
private String processInstanceId;
|
||||||
|
@QueryParam("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@QueryParam("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@QueryParam("businessKey")
|
||||||
|
private String businessKey;
|
||||||
|
@QueryParam("involvedUser")
|
||||||
|
private String involvedUser;
|
||||||
|
@QueryParam("suspended")
|
||||||
|
private Boolean suspended;
|
||||||
|
@QueryParam("superProcessInstanceId")
|
||||||
|
private String superProcessInstanceId;
|
||||||
|
@QueryParam("subProcessInstanceId")
|
||||||
|
private String subProcessInstanceId;
|
||||||
|
@QueryParam("excludeSubprocesses")
|
||||||
|
private Boolean excludeSubprocesses;
|
||||||
|
@QueryParam("includeProcessVariables")
|
||||||
|
private Boolean includeProcessVariables;
|
||||||
|
@QueryParam("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@QueryParam("tenantIdLike")
|
||||||
|
private String tenantIdLike;
|
||||||
|
@QueryParam("withoutTenantId")
|
||||||
|
private Boolean withoutTenantId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessInstancesQueryParams() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBusinessKey() {
|
||||||
|
return businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withBusinessKey(String businessKey) {
|
||||||
|
this.businessKey = businessKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getInvolvedUser() {
|
||||||
|
return involvedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setInvolvedUser(String involvedUser) {
|
||||||
|
this.involvedUser = involvedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withInvolvedUser(String involvedUser) {
|
||||||
|
this.involvedUser = involvedUser;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isSuspended() {
|
||||||
|
return suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withSuspended(Boolean suspended) {
|
||||||
|
this.suspended = suspended;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSuperProcessInstanceId() {
|
||||||
|
return superProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSuperProcessInstanceId(String superProcessInstanceId) {
|
||||||
|
this.superProcessInstanceId = superProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withSuperProcessInstanceId(String superProcessInstanceId) {
|
||||||
|
this.superProcessInstanceId = superProcessInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubProcessInstanceId() {
|
||||||
|
return subProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSubProcessInstanceId(String subProcessInstanceId) {
|
||||||
|
this.subProcessInstanceId = subProcessInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withSubProcessInstanceId(String subProcessInstanceId) {
|
||||||
|
this.subProcessInstanceId = subProcessInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isExcludeSubprocesses() {
|
||||||
|
return excludeSubprocesses;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setExcludeSubprocesses(Boolean excludeSubprocesses) {
|
||||||
|
this.excludeSubprocesses = excludeSubprocesses;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withExcludeSubprocesses(Boolean excludeSubprocesses) {
|
||||||
|
this.excludeSubprocesses = excludeSubprocesses;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isIncludeProcessVariables() {
|
||||||
|
return includeProcessVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantIdLike() {
|
||||||
|
return tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isWithoutTenantId() {
|
||||||
|
return withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstancesQueryParams withWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
public class QueryParams<C extends QueryParams<?>> {
|
||||||
|
|
||||||
|
@QueryParam("sort")
|
||||||
|
private String sortField;
|
||||||
|
@QueryParam("order")
|
||||||
|
private SortOrder sortDirection;
|
||||||
|
@QueryParam("start")
|
||||||
|
private Integer startIndex;
|
||||||
|
@QueryParam("size")
|
||||||
|
private Integer maxSize;
|
||||||
|
|
||||||
|
public String getSortField() {
|
||||||
|
return sortField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSortField(String sortField) {
|
||||||
|
this.sortField = sortField;
|
||||||
|
}
|
||||||
|
|
||||||
|
public C withSortField(String sortField) {
|
||||||
|
this.sortField = sortField;
|
||||||
|
return this.castThis();
|
||||||
|
}
|
||||||
|
|
||||||
|
public SortOrder getSortDirection() {
|
||||||
|
return sortDirection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSortDirection(SortOrder sortDirection) {
|
||||||
|
this.sortDirection = sortDirection;
|
||||||
|
}
|
||||||
|
|
||||||
|
public C withSortDirection(SortOrder sortDirection) {
|
||||||
|
this.sortDirection = sortDirection;
|
||||||
|
return this.castThis();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getStartIndex() {
|
||||||
|
return startIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStartIndex(Integer startIndex) {
|
||||||
|
this.startIndex = startIndex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public C withStartIndex(Integer startIndex) {
|
||||||
|
this.startIndex = startIndex;
|
||||||
|
return this.castThis();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getMaxSize() {
|
||||||
|
return maxSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaxSize(Integer maxSize) {
|
||||||
|
this.maxSize = maxSize;
|
||||||
|
}
|
||||||
|
|
||||||
|
public C withMaxSize(Integer maxSize) {
|
||||||
|
this.maxSize = maxSize;
|
||||||
|
return this.castThis();
|
||||||
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
protected C castThis() {
|
||||||
|
return (C) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+31
-11
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -8,16 +8,28 @@ import com.fasterxml.jackson.annotation.JsonInclude;
|
|||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public class ResultList<T> {
|
public class ResultList<T> extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("data")
|
||||||
|
private List<T> data = new LinkedList<T>();
|
||||||
@JsonProperty("size")
|
@JsonProperty("size")
|
||||||
private Integer size;
|
private Integer size;
|
||||||
@JsonProperty("total")
|
@JsonProperty("total")
|
||||||
private Integer total;
|
private Integer total;
|
||||||
@JsonProperty("start")
|
@JsonProperty("start")
|
||||||
private Integer start;
|
private Integer start;
|
||||||
@JsonProperty("data")
|
@JsonProperty("sort")
|
||||||
private List<T> data = new LinkedList<T>();
|
private String sort;
|
||||||
|
@JsonProperty("order")
|
||||||
|
private String order;
|
||||||
|
|
||||||
|
public List<T> getData() {
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setData(List<T> data) {
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
|
||||||
public Integer getSize() {
|
public Integer getSize() {
|
||||||
return size;
|
return size;
|
||||||
@@ -43,12 +55,20 @@ public class ResultList<T> {
|
|||||||
this.start = start;
|
this.start = start;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<T> getData() {
|
public String getSort() {
|
||||||
return data;
|
return sort;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setData(List<T> data) {
|
public void setSort(String sort) {
|
||||||
this.data = data;
|
this.sort = sort;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getOrder() {
|
||||||
|
return order;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrder(String order) {
|
||||||
|
this.order = order;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
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 SignalEvent {
|
||||||
|
|
||||||
|
@JsonProperty("signalName")
|
||||||
|
private String signal;
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@JsonProperty("async")
|
||||||
|
private Boolean async;
|
||||||
|
@JsonProperty("variables")
|
||||||
|
private List<Variable> variables;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public SignalEvent() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public SignalEvent(String signal, String tenantId, Boolean async) {
|
||||||
|
this.signal = signal;
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
this.async = async;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSignal() {
|
||||||
|
return signal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSignal(String signal) {
|
||||||
|
this.signal = signal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SignalEvent withSignal(String signal) {
|
||||||
|
this.signal = signal;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SignalEvent withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getAsync() {
|
||||||
|
return async;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAsync(Boolean async) {
|
||||||
|
this.async = async;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SignalEvent withAsync(Boolean async) {
|
||||||
|
this.async = async;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Variable> getVariables() {
|
||||||
|
return variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SignalEvent withVariables(List<Variable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class SignalEventAction extends ProcessInstanceAction {
|
||||||
|
|
||||||
|
@JsonProperty("signalName")
|
||||||
|
private String signal;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public SignalEventAction() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public SignalEventAction(ActionValue action, String signal) {
|
||||||
|
super(action);
|
||||||
|
this.signal = signal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSignal() {
|
||||||
|
return signal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSignal(String signal) {
|
||||||
|
this.signal = signal;
|
||||||
|
}
|
||||||
|
|
||||||
|
public SignalEventAction withSignal(String signal) {
|
||||||
|
this.signal = signal;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
public enum SortOrder {
|
||||||
|
|
||||||
|
@JsonProperty("asc")
|
||||||
|
Ascending,
|
||||||
|
@JsonProperty("desc")
|
||||||
|
Descending
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"name",
|
||||||
|
"type",
|
||||||
|
"value",
|
||||||
|
"scope"
|
||||||
|
})
|
||||||
|
public class Variable {
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("scope")
|
||||||
|
private VariableScope scope;
|
||||||
|
@JsonProperty("type")
|
||||||
|
private String type;
|
||||||
|
@JsonProperty("value")
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public Variable() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Variable(String name, VariableScope scope, String type, Object value) {
|
||||||
|
this.name = name;
|
||||||
|
this.scope = scope;
|
||||||
|
this.type = type;
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Variable withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public VariableScope getScope() {
|
||||||
|
return scope;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScope(VariableScope scope) {
|
||||||
|
this.scope = scope;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Variable withScope(VariableScope scope) {
|
||||||
|
this.scope = scope;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Variable withType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(Object value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Variable withValue(Object value) {
|
||||||
|
this.value = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.inteligr8.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
public enum VariableScope {
|
||||||
|
|
||||||
|
@JsonProperty("local")
|
||||||
|
Task,
|
||||||
|
@JsonProperty("global")
|
||||||
|
ProcessInstance
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* 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.alfresco.activiti;
|
||||||
|
|
||||||
|
import com.inteligr8.alfresco.activiti.api.ShareApi;
|
||||||
|
import com.inteligr8.alfresco.activiti.api.TemplatesApi;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface consolidates the JAX-RS APIs available in the Activiti & APS
|
||||||
|
* public ReST APIs, plus some useful non-public APIs available in APS.
|
||||||
|
*
|
||||||
|
* @author brian@inteligr8.com
|
||||||
|
*/
|
||||||
|
public interface ApsProtectedRestApi extends ApsPublicRestApi {
|
||||||
|
|
||||||
|
default ShareApi getShareApi() {
|
||||||
|
return this.getApi(ShareApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
default TemplatesApi getTemplatesApi() {
|
||||||
|
return this.getApi(TemplatesApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface appends CXF implementation specific methods to the JAX-RS API
|
||||||
|
* of the APS Protected ReST API. This is due to a lack of multi-part in the
|
||||||
|
* JAX-RS specification.
|
||||||
|
*
|
||||||
|
* @author brian@inteligr8.com
|
||||||
|
*/
|
||||||
|
public interface ApsProtectedRestCxfApi extends ApsProtectedRestApi, ApsPublicRestCxfApi {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This interface appends Jersey implementation specific methods to the JAX-RS
|
||||||
|
* API of the APS Protected ReST API. This is due to a lack of multi-part in
|
||||||
|
* the JAX-RS specification.
|
||||||
|
*
|
||||||
|
* @author brian@inteligr8.com
|
||||||
|
*/
|
||||||
|
public interface ApsProtectedRestJerseyApi extends ApsProtectedRestApi, ApsPublicRestJerseyApi {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -14,29 +14,33 @@
|
|||||||
*/
|
*/
|
||||||
package com.inteligr8.alfresco.activiti;
|
package com.inteligr8.alfresco.activiti;
|
||||||
|
|
||||||
|
import com.inteligr8.activiti.ActivitiPublicRestApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.AdminApi;
|
import com.inteligr8.alfresco.activiti.api.AdminApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.AppDefinitionsApi;
|
import com.inteligr8.alfresco.activiti.api.AppDefinitionsApi;
|
||||||
|
import com.inteligr8.alfresco.activiti.api.AppDeploymentsApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.AppVersionApi;
|
import com.inteligr8.alfresco.activiti.api.AppVersionApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.HistoricProcessInstancesApi;
|
import com.inteligr8.alfresco.activiti.api.HistoricApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.ModelsApi;
|
import com.inteligr8.alfresco.activiti.api.ModelsApi;
|
||||||
|
import com.inteligr8.alfresco.activiti.api.ProcessDefinitionsApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.ProcessInstancesApi;
|
import com.inteligr8.alfresco.activiti.api.ProcessInstancesApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.ProfileApi;
|
import com.inteligr8.alfresco.activiti.api.ProfileApi;
|
||||||
import com.inteligr8.alfresco.activiti.api.ShareApi;
|
|
||||||
import com.inteligr8.alfresco.activiti.api.TasksApi;
|
import com.inteligr8.alfresco.activiti.api.TasksApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface consolidates the JAX-RS APIs available in the APS Public
|
* This interface consolidates the JAX-RS APIs available in the Activiti & APS
|
||||||
* ReST API.
|
* public ReST APIs.
|
||||||
*
|
*
|
||||||
* @author brian@inteligr8.com
|
* @author brian@inteligr8.com
|
||||||
*/
|
*/
|
||||||
public interface ApsPublicRestApi {
|
public interface ApsPublicRestApi extends ActivitiPublicRestApi {
|
||||||
|
|
||||||
<T> T getApi(Class<T> apiClass);
|
|
||||||
|
|
||||||
default AdminApi getAdminApi() {
|
default AdminApi getAdminApi() {
|
||||||
return this.getApi(AdminApi.class);
|
return this.getApi(AdminApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default AppDeploymentsApi getAppDeploymentsApi() {
|
||||||
|
return this.getApi(AppDeploymentsApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
default AppDefinitionsApi getAppDefinitionsApi() {
|
default AppDefinitionsApi getAppDefinitionsApi() {
|
||||||
return this.getApi(AppDefinitionsApi.class);
|
return this.getApi(AppDefinitionsApi.class);
|
||||||
@@ -46,13 +50,17 @@ public interface ApsPublicRestApi {
|
|||||||
return this.getApi(AppVersionApi.class);
|
return this.getApi(AppVersionApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
default HistoricProcessInstancesApi getHistoricProcessInstancesApi() {
|
default HistoricApi getHistoricApi() {
|
||||||
return this.getApi(HistoricProcessInstancesApi.class);
|
return this.getApi(HistoricApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
default ModelsApi getModelsApi() {
|
default ModelsApi getModelsApi() {
|
||||||
return this.getApi(ModelsApi.class);
|
return this.getApi(ModelsApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default ProcessDefinitionsApi getProcessDefinitionsApi() {
|
||||||
|
return this.getApi(ProcessDefinitionsApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
default ProcessInstancesApi getProcessInstancesApi() {
|
default ProcessInstancesApi getProcessInstancesApi() {
|
||||||
return this.getApi(ProcessInstancesApi.class);
|
return this.getApi(ProcessInstancesApi.class);
|
||||||
@@ -65,13 +73,5 @@ public interface ApsPublicRestApi {
|
|||||||
default TasksApi getTasksApi() {
|
default TasksApi getTasksApi() {
|
||||||
return this.getApi(TasksApi.class);
|
return this.getApi(TasksApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The following are not part of the official open source or enterprise APIs
|
|
||||||
*/
|
|
||||||
default ShareApi getShareApi() {
|
|
||||||
return this.getApi(ShareApi.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.inteligr8.alfresco.activiti;
|
package com.inteligr8.alfresco.activiti;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.api.AppDefinitionsCxfApi;
|
import com.inteligr8.alfresco.activiti.api.AppDefinitionsCxfApi;
|
||||||
|
import com.inteligr8.alfresco.activiti.api.TemplatesCxfApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface appends Apache CXF implementation specific methods to the
|
* This interface appends Apache CXF implementation specific methods to the
|
||||||
@@ -14,5 +15,9 @@ public interface ApsPublicRestCxfApi extends ApsPublicRestApi {
|
|||||||
default AppDefinitionsCxfApi getAppDefinitionsCxfApi() {
|
default AppDefinitionsCxfApi getAppDefinitionsCxfApi() {
|
||||||
return this.getApi(AppDefinitionsCxfApi.class);
|
return this.getApi(AppDefinitionsCxfApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default TemplatesCxfApi getTemplatesCxfApi() {
|
||||||
|
return this.getApi(TemplatesCxfApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.inteligr8.alfresco.activiti;
|
package com.inteligr8.alfresco.activiti;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.api.AppDefinitionsJerseyApi;
|
import com.inteligr8.alfresco.activiti.api.AppDefinitionsJerseyApi;
|
||||||
|
import com.inteligr8.alfresco.activiti.api.TemplatesJerseyApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface appends Jersey implementation specific methods to the JAX-RS
|
* This interface appends Jersey implementation specific methods to the JAX-RS
|
||||||
@@ -14,5 +15,9 @@ public interface ApsPublicRestJerseyApi extends ApsPublicRestApi {
|
|||||||
default AppDefinitionsJerseyApi getAppDefinitionsJerseyApi() {
|
default AppDefinitionsJerseyApi getAppDefinitionsJerseyApi() {
|
||||||
return this.getApi(AppDefinitionsJerseyApi.class);
|
return this.getApi(AppDefinitionsJerseyApi.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default TemplatesJerseyApi getTemplatesJerseyApi() {
|
||||||
|
return this.getApi(TemplatesJerseyApi.class);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,19 +16,19 @@ package com.inteligr8.alfresco.activiti.api;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import jakarta.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import jakarta.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.POST;
|
import jakarta.ws.rs.POST;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
import javax.ws.rs.QueryParam;
|
import jakarta.ws.rs.QueryParam;
|
||||||
import javax.ws.rs.core.MediaType;
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
import com.inteligr8.alfresco.activiti.model.Group;
|
import com.inteligr8.alfresco.activiti.model.Group;
|
||||||
import com.inteligr8.alfresco.activiti.model.GroupLight;
|
import com.inteligr8.alfresco.activiti.model.GroupLight;
|
||||||
import com.inteligr8.alfresco.activiti.model.ResultList;
|
|
||||||
import com.inteligr8.alfresco.activiti.model.Tenant;
|
import com.inteligr8.alfresco.activiti.model.Tenant;
|
||||||
import com.inteligr8.alfresco.activiti.model.UserLight;
|
import com.inteligr8.alfresco.activiti.model.UserLight;
|
||||||
|
|
||||||
|
|||||||
@@ -16,32 +16,38 @@ package com.inteligr8.alfresco.activiti.api;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
import javax.ws.rs.DELETE;
|
|
||||||
import javax.ws.rs.GET;
|
|
||||||
import javax.ws.rs.POST;
|
|
||||||
import javax.ws.rs.PUT;
|
|
||||||
import javax.ws.rs.Path;
|
|
||||||
import javax.ws.rs.PathParam;
|
|
||||||
import javax.ws.rs.Produces;
|
|
||||||
import javax.ws.rs.core.MediaType;
|
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionPublishRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionPublishRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionSaveRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionSaveRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
||||||
|
|
||||||
@Path("/api/enterprise/app-definitions")
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.DELETE;
|
||||||
|
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.core.MediaType;
|
||||||
|
|
||||||
|
@Path("/api/enterprise")
|
||||||
public interface AppDefinitionsApi {
|
public interface AppDefinitionsApi {
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("{modelId}")
|
@Path("runtime-app-definitions")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
ResultList<AppDefinitionRepresentation> get();
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("app-definitions/{modelId}")
|
||||||
@Produces({ MediaType.APPLICATION_JSON })
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
AppDefinitionRepresentation get(
|
AppDefinitionRepresentation get(
|
||||||
@PathParam("modelId") Long appId);
|
@PathParam("modelId") Long appId);
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("{modelId}")
|
@Path("app-definitions/{modelId}")
|
||||||
@Consumes({ MediaType.APPLICATION_JSON })
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
@Produces({ MediaType.APPLICATION_JSON })
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
AppDefinitionUpdateResultRepresentation update(
|
AppDefinitionUpdateResultRepresentation update(
|
||||||
@@ -49,22 +55,29 @@ public interface AppDefinitionsApi {
|
|||||||
AppDefinitionSaveRepresentation updatedModel);
|
AppDefinitionSaveRepresentation updatedModel);
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("{appDefinitionId}")
|
@Path("app-definitions/{appDefinitionId}")
|
||||||
void delete(
|
void delete(
|
||||||
@PathParam("appDefinitionId") Long appId);
|
@PathParam("appDefinitionId") Long appId);
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("{modelId}/export")
|
@Path("app-definitions/{modelId}/export")
|
||||||
@Produces({ MediaType.APPLICATION_JSON, "application/zip" })
|
@Produces({ MediaType.APPLICATION_JSON, "application/zip" })
|
||||||
File export(
|
File export(
|
||||||
@PathParam("modelId") Long appId);
|
@PathParam("modelId") Long appId);
|
||||||
|
|
||||||
|
// @POST
|
||||||
|
// @Path("runtime-app-definitions")
|
||||||
|
// @Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
// @Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
// void publish(
|
||||||
|
// AppDefinitionsRepresentation publishModel);
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("{modelId}/publish")
|
@Path("app-definitions/{modelId}/publish")
|
||||||
@Consumes({ MediaType.APPLICATION_JSON })
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
@Produces({ MediaType.APPLICATION_JSON })
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
AppDefinitionUpdateResultRepresentation publish(
|
AppDefinitionUpdateResultRepresentation publish(
|
||||||
@PathParam("modelId") Long appId,
|
@PathParam("modelId") Long appId,
|
||||||
AppDefinitionPublishRepresentation publishModel);
|
AppDefinitionPublishRepresentation publishModel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import jakarta.ws.rs.Consumes;
|
||||||
import javax.ws.rs.POST;
|
import jakarta.ws.rs.POST;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
import javax.ws.rs.QueryParam;
|
import jakarta.ws.rs.QueryParam;
|
||||||
import javax.ws.rs.core.MediaType;
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import jakarta.ws.rs.Consumes;
|
||||||
import javax.ws.rs.POST;
|
import jakarta.ws.rs.POST;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
import javax.ws.rs.QueryParam;
|
import jakarta.ws.rs.QueryParam;
|
||||||
import javax.ws.rs.core.MediaType;
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
import com.inteligr8.alfresco.activiti.model.AppDefinitionUpdateResultRepresentation;
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* 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.alfresco.activiti.api;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.DELETE;
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
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;
|
||||||
|
|
||||||
|
import com.inteligr8.alfresco.activiti.model.AppDeployment;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
||||||
|
|
||||||
|
@Path("/api/enterprise")
|
||||||
|
public interface AppDeploymentsApi {
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("runtime-app-deployment")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
AppDeployment get(
|
||||||
|
@QueryParam("deploymentId") String deploymentId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("runtime-app-deployments/{deploymentId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
AppDeployment get(
|
||||||
|
@PathParam("deploymentId") long deploymentId);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("runtime-app-deployments/{deploymentId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
void remove(
|
||||||
|
@PathParam("deploymentId") long deploymentId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("runtime-app-deployments")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
ResultListDataRepresentation<AppDeployment> query(
|
||||||
|
@QueryParam("nameLike") String nameLike,
|
||||||
|
@QueryParam("tenantId") Long tenantId,
|
||||||
|
@QueryParam("latest") Boolean latest,
|
||||||
|
@QueryParam("start") Integer start,
|
||||||
|
@QueryParam("sort") String sort,
|
||||||
|
@QueryParam("order") String order,
|
||||||
|
@QueryParam("size") Integer size);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -14,9 +14,9 @@
|
|||||||
*/
|
*/
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.AppVersion;
|
import com.inteligr8.alfresco.activiti.model.AppVersion;
|
||||||
|
|
||||||
|
|||||||
@@ -14,14 +14,14 @@
|
|||||||
*/
|
*/
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
import javax.ws.rs.QueryParam;
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
import com.inteligr8.alfresco.activiti.model.GroupLight;
|
import com.inteligr8.alfresco.activiti.model.GroupLight;
|
||||||
import com.inteligr8.alfresco.activiti.model.ResultList;
|
|
||||||
import com.inteligr8.alfresco.activiti.model.UserLight;
|
import com.inteligr8.alfresco.activiti.model.UserLight;
|
||||||
|
|
||||||
@Path("/api/enterprise/groups")
|
@Path("/api/enterprise/groups")
|
||||||
|
|||||||
+15
-6
@@ -14,21 +14,30 @@
|
|||||||
*/
|
*/
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import jakarta.ws.rs.Consumes;
|
||||||
import javax.ws.rs.POST;
|
import jakarta.ws.rs.POST;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.HistoricProcessInstanceQueryRepresentation;
|
import com.inteligr8.alfresco.activiti.model.HistoricProcessInstanceQueryRepresentation;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.HistoricTaskQueryRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.ProcessInstance;
|
import com.inteligr8.alfresco.activiti.model.ProcessInstance;
|
||||||
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.Task;
|
||||||
|
|
||||||
@Path("/api/enterprise/historic-process-instances")
|
@Path("/api/enterprise")
|
||||||
public interface HistoricProcessInstancesApi {
|
public interface HistoricApi {
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
|
@Path("historic-process-instances/query")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
ResultListDataRepresentation<ProcessInstance> query(HistoricProcessInstanceQueryRepresentation request);
|
ResultListDataRepresentation<ProcessInstance> query(HistoricProcessInstanceQueryRepresentation request);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("historic-tasks/query")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
ResultListDataRepresentation<Task> query(HistoricTaskQueryRepresentation request);
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -14,12 +14,14 @@
|
|||||||
*/
|
*/
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.QueryParam;
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.ModelRepresentation;
|
||||||
|
|
||||||
@Path("/api/enterprise/models")
|
@Path("/api/enterprise/models")
|
||||||
public interface ModelsApi {
|
public interface ModelsApi {
|
||||||
@@ -27,7 +29,9 @@ public interface ModelsApi {
|
|||||||
enum ModelType {
|
enum ModelType {
|
||||||
Process(0),
|
Process(0),
|
||||||
Form(2),
|
Form(2),
|
||||||
App(3);
|
App(3),
|
||||||
|
DecisionTable(4),
|
||||||
|
DataModel(5);
|
||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
private ModelType(int id) {
|
private ModelType(int id) {
|
||||||
@@ -40,8 +44,14 @@ public interface ModelsApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
|
@Path("{id}")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public ResultListDataRepresentation get(
|
public ModelRepresentation get(
|
||||||
|
@PathParam("id") String id);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
public ResultList<ModelRepresentation> get(
|
||||||
@QueryParam("filter") String filter,
|
@QueryParam("filter") String filter,
|
||||||
@QueryParam("sort") String sort,
|
@QueryParam("sort") String sort,
|
||||||
@QueryParam("modelType") Integer modelType,
|
@QueryParam("modelType") Integer modelType,
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* 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.alfresco.activiti.api;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.GET;
|
||||||
|
import jakarta.ws.rs.Path;
|
||||||
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
import com.inteligr8.alfresco.activiti.model.ProcessDefinition;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
||||||
|
|
||||||
|
@Path("/api/enterprise/process-definitions")
|
||||||
|
public interface ProcessDefinitionsApi {
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
ResultListDataRepresentation<ProcessDefinition> get(
|
||||||
|
@QueryParam("latest") Boolean latest,
|
||||||
|
@QueryParam("appDefinitionId") Long appDefinitionId,
|
||||||
|
@QueryParam("deploymentId") String deploymentId);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -16,18 +16,20 @@ package com.inteligr8.alfresco.activiti.api;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import jakarta.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import jakarta.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.POST;
|
import jakarta.ws.rs.POST;
|
||||||
import javax.ws.rs.PUT;
|
import jakarta.ws.rs.PUT;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.CreateProcessInstance;
|
import com.inteligr8.alfresco.activiti.model.CreateProcessInstance;
|
||||||
import com.inteligr8.alfresco.activiti.model.ProcessInstance;
|
import com.inteligr8.alfresco.activiti.model.ProcessInstance;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.ProcessInstanceFilterRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.ProcessInstanceQueryRepresentation;
|
import com.inteligr8.alfresco.activiti.model.ProcessInstanceQueryRepresentation;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.ProcessInstanceVariable;
|
||||||
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.Variable;
|
import com.inteligr8.alfresco.activiti.model.Variable;
|
||||||
|
|
||||||
@@ -40,6 +42,13 @@ public interface ProcessInstancesApi {
|
|||||||
ProcessInstance create(CreateProcessInstance processInstance);
|
ProcessInstance create(CreateProcessInstance processInstance);
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
|
@Path("filter")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
ResultListDataRepresentation<ProcessInstance> filter(ProcessInstanceFilterRepresentation request);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("query")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
ResultListDataRepresentation<ProcessInstance> query(ProcessInstanceQueryRepresentation request);
|
ResultListDataRepresentation<ProcessInstance> query(ProcessInstanceQueryRepresentation request);
|
||||||
@@ -63,6 +72,11 @@ public interface ProcessInstancesApi {
|
|||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
ProcessInstance suspend(@PathParam("processInstanceId") String processInstanceId);
|
ProcessInstance suspend(@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("{processInstanceId}/historic-variables")
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
List<ProcessInstanceVariable> getHistoricVariables(@PathParam("processInstanceId") String processInstanceId);
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("{processInstanceId}/variables")
|
@Path("{processInstanceId}/variables")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
@@ -87,6 +101,6 @@ public interface ProcessInstancesApi {
|
|||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("{processInstanceId}/variables/{variableName}")
|
@Path("{processInstanceId}/variables/{variableName}")
|
||||||
void deleteVariable(@PathParam("processInstanceId") String processInstanceId, @PathParam("variableName") String variableName);
|
void removeVariable(@PathParam("processInstanceId") String processInstanceId, @PathParam("variableName") String variableName);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
*/
|
*/
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.User;
|
import com.inteligr8.alfresco.activiti.model.User;
|
||||||
|
|
||||||
|
|||||||
@@ -14,15 +14,15 @@
|
|||||||
*/
|
*/
|
||||||
package com.inteligr8.alfresco.activiti.api;
|
package com.inteligr8.alfresco.activiti.api;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import jakarta.ws.rs.Consumes;
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.PUT;
|
import jakarta.ws.rs.PUT;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.PathParam;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.Produces;
|
||||||
import javax.ws.rs.core.MediaType;
|
import jakarta.ws.rs.core.MediaType;
|
||||||
|
|
||||||
import com.inteligr8.alfresco.activiti.model.ResultList;
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
import com.inteligr8.alfresco.activiti.model.ShareInfoRequest;
|
import com.inteligr8.alfresco.activiti.model.ShareInfoRequest;
|
||||||
import com.inteligr8.alfresco.activiti.model.SharePermission;
|
import com.inteligr8.alfresco.activiti.model.SharePermission;
|
||||||
|
|
||||||
|
|||||||
@@ -16,52 +16,152 @@ package com.inteligr8.alfresco.activiti.api;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.ws.rs.Consumes;
|
import jakarta.ws.rs.Consumes;
|
||||||
import javax.ws.rs.DELETE;
|
import jakarta.ws.rs.DELETE;
|
||||||
import javax.ws.rs.GET;
|
import jakarta.ws.rs.GET;
|
||||||
import javax.ws.rs.PUT;
|
import jakarta.ws.rs.POST;
|
||||||
import javax.ws.rs.Path;
|
import jakarta.ws.rs.PUT;
|
||||||
import javax.ws.rs.PathParam;
|
import jakarta.ws.rs.Path;
|
||||||
import javax.ws.rs.Produces;
|
import jakarta.ws.rs.PathParam;
|
||||||
import javax.ws.rs.QueryParam;
|
import jakarta.ws.rs.Produces;
|
||||||
|
import jakarta.ws.rs.QueryParam;
|
||||||
|
|
||||||
|
import com.inteligr8.alfresco.activiti.model.AssigneeIdentifier;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.CompleteForm;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.FormDefinition;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.FormValue;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.ResultListDataRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.Task;
|
import com.inteligr8.alfresco.activiti.model.Task;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.TaskFilterRepresentation;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.TaskQueryRepresentation;
|
||||||
import com.inteligr8.alfresco.activiti.model.TaskUpdate;
|
import com.inteligr8.alfresco.activiti.model.TaskUpdate;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.UserIdentifier;
|
||||||
import com.inteligr8.alfresco.activiti.model.Variable;
|
import com.inteligr8.alfresco.activiti.model.Variable;
|
||||||
|
|
||||||
@Path("/api/enterprise/tasks")
|
@Path("/api/enterprise")
|
||||||
public interface TasksApi {
|
public interface TasksApi {
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("tasks/{taskId}")
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
Task get(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("task-forms/{taskId}")
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
FormDefinition getForm(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("task-forms/{taskId}/form-values/{field}")
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
FormValue getFormValue(@PathParam("taskId") String taskId, @PathParam("field") String field);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("task-forms/{taskId}/form-values/{field}/{column}")
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
FormValue getFormValue(@PathParam("taskId") String taskId, @PathParam("field") String field, @PathParam("column") String column);
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("{taskId}")
|
@Path("tasks/{taskId}")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Task update(@PathParam("taskId") String taskId, TaskUpdate taskUpdate);
|
Task update(@PathParam("taskId") String taskId, TaskUpdate taskUpdate);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("tasks/{taskId}")
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
void delete(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("tasks/query")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
ResultListDataRepresentation<Task> query(TaskQueryRepresentation request);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("tasks/filter")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
ResultListDataRepresentation<Task> filter(TaskFilterRepresentation request);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/assign")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
@Produces({ "application/json" })
|
||||||
|
Task assign(@PathParam("taskId") String taskId, AssigneeIdentifier request);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/claim")
|
||||||
|
void claim(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/complete")
|
||||||
|
void complete(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("task-forms/{taskId}")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
void complete(@PathParam("taskId") String taskId, CompleteForm request);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/delegate")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
void delegate(@PathParam("taskId") String taskId, UserIdentifier request);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/involve")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
void involve(@PathParam("taskId") String taskId, UserIdentifier request);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("tasks/{taskId}/groups/{groupId}")
|
||||||
|
void involveGroup(@PathParam("taskId") String taskId, @PathParam("groupId") String groupId);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("tasks/{taskId}/groups/{groupId}")
|
||||||
|
void removeInvolvedGroup(@PathParam("taskId") String taskId, @PathParam("groupId") String groupId);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/remove-involved")
|
||||||
|
@Consumes({ "application/json" })
|
||||||
|
void removeInvolved(@PathParam("taskId") String taskId, UserIdentifier request);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/resolve")
|
||||||
|
void resolve(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("tasks/{taskId}/action/unclaim")
|
||||||
|
void unclaim(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("{taskId}/variables")
|
@Path("tasks/{taskId}/variables")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
List<Variable> getVariables(@PathParam("taskId") String taskId, @QueryParam("scope") String scope);
|
List<Variable> getVariables(@PathParam("taskId") String taskId, @QueryParam("scope") String scope);
|
||||||
|
|
||||||
@PUT
|
@POST
|
||||||
@Path("{taskId}/variables")
|
@Path("tasks/{taskId}/variables")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
List<Variable> setVariables(@PathParam("taskId") String taskId, List<Variable> variables);
|
List<Variable> setVariables(@PathParam("taskId") String taskId, List<Variable> variables);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("tasks/{taskId}/variables")
|
||||||
|
List<Variable> removeVariables(@PathParam("taskId") String taskId);
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("{taskId}/variables/{variableName}")
|
@Path("tasks/{taskId}/variables/{variableName}")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
Variable getVariable(@PathParam("taskId") String taskId, @PathParam("variableName") String variableName, @QueryParam("scope") String scope);
|
Variable getVariable(@PathParam("taskId") String taskId, @PathParam("variableName") String variableName, @QueryParam("scope") String scope);
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("{taskId}/variables/{variableName}")
|
@Path("tasks/{taskId}/variables/{variableName}")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
Variable setVariable(@PathParam("taskId") String taskId, @PathParam("variableName") String variableName, Variable variable);
|
Variable setVariable(@PathParam("taskId") String taskId, @PathParam("variableName") String variableName, Variable variable);
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("{taskId}/variables/{variableName}")
|
@Path("tasks/{taskId}/variables/{variableName}")
|
||||||
void deleteVariable(@PathParam("taskId") String taskId, @PathParam("variableName") String variableName, @QueryParam("scope") String scope);
|
void removeVariable(@PathParam("taskId") String taskId, @PathParam("variableName") String variableName, @QueryParam("scope") String scope);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,162 @@
|
|||||||
|
/*
|
||||||
|
* 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.alfresco.activiti.api;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.DELETE;
|
||||||
|
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;
|
||||||
|
import jakarta.ws.rs.core.Response;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.inteligr8.activiti.model.ResultList;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.DocumentTemplateLight;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.EmailTemplate;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.EmailTemplateLight;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is an undocumented API.
|
||||||
|
*
|
||||||
|
* @author brian@inteligr8.com
|
||||||
|
*/
|
||||||
|
@Path("/app/rest")
|
||||||
|
public interface TemplatesApi {
|
||||||
|
|
||||||
|
public enum TemplateSort {
|
||||||
|
@JsonProperty("sort_by_name_asc")
|
||||||
|
NameAscending,
|
||||||
|
@JsonProperty("sort_by_name_desc")
|
||||||
|
NameDescending
|
||||||
|
}
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("email-templates/system")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<EmailTemplateLight> getSystemEmailTemplates(
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("email-templates/custom")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<EmailTemplateLight> getCustomEmailTemplates(
|
||||||
|
@QueryParam("nameFilter") String nameFilter,
|
||||||
|
@QueryParam("start") Integer start,
|
||||||
|
@QueryParam("size") Integer size,
|
||||||
|
@QueryParam("sort") String sort,
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("email-templates/custom")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<EmailTemplateLight> getCustomEmailTemplates(
|
||||||
|
@QueryParam("nameFilter") String nameFilter,
|
||||||
|
@QueryParam("start") Integer start,
|
||||||
|
@QueryParam("size") Integer size,
|
||||||
|
@QueryParam("sort") TemplateSort sort,
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("email-templates/system/{templateName}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public EmailTemplate getSystemEmailTemplate(
|
||||||
|
@PathParam("templateName") String name,
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("email-templates/custom/{templateId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public EmailTemplate getCustomEmailTemplate(
|
||||||
|
@PathParam("templateId") long id,
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("email-templates/custom")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public EmailTemplateLight createCustomEmailTemplate(
|
||||||
|
EmailTemplate template);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("email-templates/system/{templateName}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public EmailTemplate updateSystemEmailTemplate(
|
||||||
|
@PathParam("templateName") String name,
|
||||||
|
EmailTemplate template);
|
||||||
|
|
||||||
|
@PUT
|
||||||
|
@Path("email-templates/custom/{templateId}")
|
||||||
|
@Consumes({ MediaType.APPLICATION_JSON })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public EmailTemplate updateCustomEmailTemplate(
|
||||||
|
@PathParam("templateId") long id,
|
||||||
|
EmailTemplate template);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("email-templates/custom/{templateId}")
|
||||||
|
public void deleteCustomEmailTemplate(
|
||||||
|
@PathParam("templateId") long id,
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("document-templates")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<DocumentTemplateLight> getDocumentTemplates(
|
||||||
|
@QueryParam("nameFilter") String nameFilter,
|
||||||
|
@QueryParam("start") Integer start,
|
||||||
|
@QueryParam("size") Integer size,
|
||||||
|
@QueryParam("sort") String sort,
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("document-templates")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public ResultList<DocumentTemplateLight> getDocumentTemplates(
|
||||||
|
@QueryParam("nameFilter") String nameFilter,
|
||||||
|
@QueryParam("start") Integer start,
|
||||||
|
@QueryParam("size") Integer size,
|
||||||
|
@QueryParam("sort") TemplateSort sort,
|
||||||
|
@QueryParam("tenantId") Long tenantId);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("document-templates/{templateId}")
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public DocumentTemplateLight getDocumentTemplate(
|
||||||
|
@PathParam("templateId") long id);
|
||||||
|
|
||||||
|
@GET
|
||||||
|
@Path("document-templates/{templateId}/file")
|
||||||
|
@Produces({
|
||||||
|
"application/msword",
|
||||||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.template"
|
||||||
|
})
|
||||||
|
public Response getDocumentTemplate(
|
||||||
|
@PathParam("templateId") long id,
|
||||||
|
@QueryParam("version") Long version);
|
||||||
|
|
||||||
|
@DELETE
|
||||||
|
@Path("document-templates/{templateId}")
|
||||||
|
public void deleteDocumentTemplate();
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* 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.alfresco.activiti.api;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.POST;
|
||||||
|
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;
|
||||||
|
|
||||||
|
import com.inteligr8.alfresco.activiti.model.DocumentTemplateLight;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.FileMultipartCxf;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is an undocumented API.
|
||||||
|
*
|
||||||
|
* @author brian@inteligr8.com
|
||||||
|
*/
|
||||||
|
@Path("/app/rest")
|
||||||
|
public interface TemplatesCxfApi extends TemplatesApi {
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("admin/document-templates")
|
||||||
|
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public DocumentTemplateLight createDocumentTemplate(
|
||||||
|
@QueryParam("tenantId") Long tenantId,
|
||||||
|
FileMultipartCxf file);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("admin/document-templates/{templateId}")
|
||||||
|
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public DocumentTemplateLight updateDocumentTemplate(
|
||||||
|
@PathParam("templateId") long id,
|
||||||
|
@QueryParam("tenantId") Long tenantId,
|
||||||
|
FileMultipartCxf file);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* 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.alfresco.activiti.api;
|
||||||
|
|
||||||
|
import jakarta.ws.rs.Consumes;
|
||||||
|
import jakarta.ws.rs.POST;
|
||||||
|
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;
|
||||||
|
|
||||||
|
import com.inteligr8.alfresco.activiti.model.DocumentTemplateLight;
|
||||||
|
import com.inteligr8.alfresco.activiti.model.FileMultipartJersey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is an undocumented API.
|
||||||
|
*
|
||||||
|
* @author brian@inteligr8.com
|
||||||
|
*/
|
||||||
|
@Path("/app/rest")
|
||||||
|
public interface TemplatesJerseyApi extends TemplatesApi {
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("admin/document-templates")
|
||||||
|
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public DocumentTemplateLight createDocumentTemplate(
|
||||||
|
@QueryParam("tenantId") Long tenantId,
|
||||||
|
FileMultipartJersey file);
|
||||||
|
|
||||||
|
@POST
|
||||||
|
@Path("admin/document-templates/{templateId}")
|
||||||
|
@Consumes({ MediaType.MULTIPART_FORM_DATA })
|
||||||
|
@Produces({ MediaType.APPLICATION_JSON })
|
||||||
|
public DocumentTemplateLight updateDocumentTemplate(
|
||||||
|
@PathParam("templateId") long id,
|
||||||
|
@QueryParam("tenantId") Long tenantId,
|
||||||
|
FileMultipartJersey file);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -40,13 +40,13 @@ public class AppDefinition {
|
|||||||
@JsonProperty("icon")
|
@JsonProperty("icon")
|
||||||
private String icon;
|
private String icon;
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Integer id;
|
private Long id;
|
||||||
@JsonProperty("modelId")
|
@JsonProperty("modelId")
|
||||||
private Integer modelId;
|
private Long modelId;
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private String name;
|
private String name;
|
||||||
@JsonProperty("tenantId")
|
@JsonProperty("tenantId")
|
||||||
private Integer tenantId;
|
private Long tenantId;
|
||||||
@JsonProperty("theme")
|
@JsonProperty("theme")
|
||||||
private String theme;
|
private String theme;
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@@ -113,31 +113,31 @@ public class AppDefinition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Integer getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public void setId(Integer id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AppDefinition withId(Integer id) {
|
public AppDefinition withId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("modelId")
|
@JsonProperty("modelId")
|
||||||
public Integer getModelId() {
|
public Long getModelId() {
|
||||||
return modelId;
|
return modelId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("modelId")
|
@JsonProperty("modelId")
|
||||||
public void setModelId(Integer modelId) {
|
public void setModelId(Long modelId) {
|
||||||
this.modelId = modelId;
|
this.modelId = modelId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AppDefinition withModelId(Integer modelId) {
|
public AppDefinition withModelId(Long modelId) {
|
||||||
this.modelId = modelId;
|
this.modelId = modelId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -158,16 +158,16 @@ public class AppDefinition {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("tenantId")
|
@JsonProperty("tenantId")
|
||||||
public Integer getTenantId() {
|
public Long getTenantId() {
|
||||||
return tenantId;
|
return tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("tenantId")
|
@JsonProperty("tenantId")
|
||||||
public void setTenantId(Integer tenantId) {
|
public void setTenantId(Long tenantId) {
|
||||||
this.tenantId = tenantId;
|
this.tenantId = tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AppDefinition withTenantId(Integer tenantId) {
|
public AppDefinition withTenantId(Long tenantId) {
|
||||||
this.tenantId = tenantId;
|
this.tenantId = tenantId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-194
@@ -1,205 +1,12 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AppDefinitionRepresentation
|
* AppDefinitionRepresentation
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
public class AppDefinitionRepresentation extends AppDefinition {
|
||||||
@JsonPropertyOrder({
|
|
||||||
"defaultAppId",
|
|
||||||
"deploymentId",
|
|
||||||
"description",
|
|
||||||
"icon",
|
|
||||||
"id",
|
|
||||||
"modelId",
|
|
||||||
"name",
|
|
||||||
"tenantId",
|
|
||||||
"theme"
|
|
||||||
})
|
|
||||||
public class AppDefinitionRepresentation {
|
|
||||||
|
|
||||||
@JsonProperty("defaultAppId")
|
|
||||||
private String defaultAppId;
|
|
||||||
@JsonProperty("deploymentId")
|
|
||||||
private String deploymentId;
|
|
||||||
@JsonProperty("description")
|
|
||||||
private String description;
|
|
||||||
@JsonProperty("icon")
|
|
||||||
private String icon;
|
|
||||||
@JsonProperty("id")
|
|
||||||
private Integer id;
|
|
||||||
@JsonProperty("modelId")
|
|
||||||
private Integer modelId;
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
|
||||||
@JsonProperty("tenantId")
|
|
||||||
private Integer tenantId;
|
|
||||||
@JsonProperty("theme")
|
|
||||||
private String theme;
|
|
||||||
@JsonIgnore
|
|
||||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
@JsonProperty("defaultAppId")
|
|
||||||
public String getDefaultAppId() {
|
|
||||||
return defaultAppId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("defaultAppId")
|
|
||||||
public void setDefaultAppId(String defaultAppId) {
|
|
||||||
this.defaultAppId = defaultAppId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withDefaultAppId(String defaultAppId) {
|
|
||||||
this.defaultAppId = defaultAppId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("deploymentId")
|
|
||||||
public String getDeploymentId() {
|
|
||||||
return deploymentId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("deploymentId")
|
|
||||||
public void setDeploymentId(String deploymentId) {
|
|
||||||
this.deploymentId = deploymentId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withDeploymentId(String deploymentId) {
|
|
||||||
this.deploymentId = deploymentId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("description")
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("description")
|
|
||||||
public void setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("icon")
|
|
||||||
public String getIcon() {
|
|
||||||
return icon;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("icon")
|
|
||||||
public void setIcon(String icon) {
|
|
||||||
this.icon = icon;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withIcon(String icon) {
|
|
||||||
this.icon = icon;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("id")
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("modelId")
|
|
||||||
public Integer getModelId() {
|
|
||||||
return modelId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("modelId")
|
|
||||||
public void setModelId(Integer modelId) {
|
|
||||||
this.modelId = modelId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withModelId(Integer modelId) {
|
|
||||||
this.modelId = modelId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("tenantId")
|
|
||||||
public Integer getTenantId() {
|
|
||||||
return tenantId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("tenantId")
|
|
||||||
public void setTenantId(Integer tenantId) {
|
|
||||||
this.tenantId = tenantId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withTenantId(Integer tenantId) {
|
|
||||||
this.tenantId = tenantId;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("theme")
|
|
||||||
public String getTheme() {
|
|
||||||
return theme;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonProperty("theme")
|
|
||||||
public void setTheme(String theme) {
|
|
||||||
this.theme = theme;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withTheme(String theme) {
|
|
||||||
this.theme = theme;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonAnyGetter
|
|
||||||
public Map<String, Object> getAdditionalProperties() {
|
|
||||||
return this.additionalProperties;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonAnySetter
|
|
||||||
public void setAdditionalProperty(String name, Object value) {
|
|
||||||
this.additionalProperties.put(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public AppDefinitionRepresentation withAdditionalProperty(String name, Object value) {
|
|
||||||
this.additionalProperties.put(name, value);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,123 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
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.activiti.model.Datum;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AppDeploymentRepresentation
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"id",
|
||||||
|
"appDefinition",
|
||||||
|
"created",
|
||||||
|
"createdBy",
|
||||||
|
"deploymentId",
|
||||||
|
"dmnDeploymentId"
|
||||||
|
})
|
||||||
|
public class AppDeployment extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private long id;
|
||||||
|
@JsonProperty("appDefinition")
|
||||||
|
private AppDefinition appDefinition;
|
||||||
|
@JsonProperty("created")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime created;
|
||||||
|
@JsonProperty("createdBy")
|
||||||
|
private UserLight createdBy;
|
||||||
|
@JsonProperty("deploymentId")
|
||||||
|
private String deploymentId;
|
||||||
|
@JsonProperty("dmnDeploymentId")
|
||||||
|
private Long dmnDeploymentId;
|
||||||
|
|
||||||
|
public long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppDeployment withId(long id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppDefinition getAppDefinition() {
|
||||||
|
return appDefinition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppDefinition(AppDefinition appDefinition) {
|
||||||
|
this.appDefinition = appDefinition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppDeployment withAppDefinition(AppDefinition appDefinition) {
|
||||||
|
this.appDefinition = appDefinition;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getCreated() {
|
||||||
|
return created;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreated(OffsetDateTime created) {
|
||||||
|
this.created = created;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppDeployment withCreated(OffsetDateTime created) {
|
||||||
|
this.created = created;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserLight getCreatedBy() {
|
||||||
|
return createdBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedBy(UserLight createdBy) {
|
||||||
|
this.createdBy = createdBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppDeployment withCreatedBy(UserLight createdBy) {
|
||||||
|
this.createdBy = createdBy;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeploymentId() {
|
||||||
|
return deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppDeployment withDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDmnDeploymentId() {
|
||||||
|
return dmnDeploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDmnDeploymentId(Long dmnDeploymentId) {
|
||||||
|
this.dmnDeploymentId = dmnDeploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AppDeployment withDmnDeploymentId(Long dmnDeploymentId) {
|
||||||
|
this.dmnDeploymentId = dmnDeploymentId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class AssigneeIdentifier {
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private String assignee;
|
||||||
|
@JsonProperty
|
||||||
|
private String email;
|
||||||
|
|
||||||
|
public String getAssignee() {
|
||||||
|
return assignee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAssignee(String assignee) {
|
||||||
|
this.assignee = assignee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AssigneeIdentifier withAssignee(String assignee) {
|
||||||
|
this.assignee = assignee;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmail() {
|
||||||
|
return email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmail(String email) {
|
||||||
|
this.email = email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AssigneeIdentifier withEmail(String email) {
|
||||||
|
this.email = email;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class BaseTemplateLight {
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private Long id;
|
||||||
|
@JsonProperty(required = true)
|
||||||
|
private String name;
|
||||||
|
@JsonProperty
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
|
||||||
|
private OffsetDateTime created;
|
||||||
|
@JsonProperty
|
||||||
|
private UserLight createdBy;
|
||||||
|
@JsonProperty
|
||||||
|
private Integer tenantId;
|
||||||
|
|
||||||
|
public Long getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getCreated() {
|
||||||
|
return created;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreated(OffsetDateTime created) {
|
||||||
|
this.created = created;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserLight getCreatedBy() {
|
||||||
|
return createdBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreatedBy(UserLight createdBy) {
|
||||||
|
this.createdBy = createdBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(Integer tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"outcome"
|
||||||
|
})
|
||||||
|
public class CompleteForm {
|
||||||
|
|
||||||
|
@JsonProperty("outcome")
|
||||||
|
private String outcome;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public CompleteForm() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public CompleteForm(String outcome) {
|
||||||
|
this.outcome = outcome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOutcome() {
|
||||||
|
return outcome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOutcome(String outcome) {
|
||||||
|
this.outcome = outcome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public CompleteForm withOutcome(String outcome) {
|
||||||
|
this.outcome = outcome;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class DocumentTemplateLight extends BaseTemplateLight {
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private Integer modelId;
|
||||||
|
@JsonProperty
|
||||||
|
private String mimeType;
|
||||||
|
@JsonProperty
|
||||||
|
private String simpleType;
|
||||||
|
|
||||||
|
public Integer getModelId() {
|
||||||
|
return modelId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setModelId(Integer modelId) {
|
||||||
|
this.modelId = modelId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMimeType() {
|
||||||
|
return mimeType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMimeType(String mimeType) {
|
||||||
|
this.mimeType = mimeType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSimpleType() {
|
||||||
|
return simpleType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSimpleType(String simpleType) {
|
||||||
|
this.simpleType = simpleType;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class EmailTemplate extends EmailTemplateLight {
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private String template;
|
||||||
|
|
||||||
|
public String getTemplate() {
|
||||||
|
return template;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTemplate(String template) {
|
||||||
|
this.template = template;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class EmailTemplateLight extends BaseTemplateLight {
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private String systemTemplateId;
|
||||||
|
@JsonProperty
|
||||||
|
private String subject;
|
||||||
|
|
||||||
|
public String getSystemTemplateId() {
|
||||||
|
return systemTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSystemTemplateId(String systemTemplateId) {
|
||||||
|
this.systemTemplateId = systemTemplateId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubject() {
|
||||||
|
return subject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSubject(String subject) {
|
||||||
|
this.subject = subject;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,201 @@
|
|||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.inteligr8.activiti.model.Datum;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class FormDefinition extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("className")
|
||||||
|
private String className;
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@JsonProperty("processDefinitionName")
|
||||||
|
private String processDefinitionName;
|
||||||
|
@JsonProperty("outcomes")
|
||||||
|
private List<FormOutcome> outcomes = new ArrayList<>();
|
||||||
|
@JsonProperty("selectedOutcome")
|
||||||
|
private String selectedOutcome;
|
||||||
|
@JsonProperty("taskDefinitionKey")
|
||||||
|
private String taskDefinitionKey;
|
||||||
|
@JsonProperty("taskId")
|
||||||
|
private String taskId;
|
||||||
|
@JsonProperty("taskName")
|
||||||
|
private String taskName;
|
||||||
|
@JsonProperty("variables")
|
||||||
|
private List<FormVariable> variables = new ArrayList<>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public FormDefinition() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getClassName() {
|
||||||
|
return className;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setClassName(String className) {
|
||||||
|
this.className = className;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withClassName(String className) {
|
||||||
|
this.className = className;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionName() {
|
||||||
|
return processDefinitionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionName(String processDefinitionName) {
|
||||||
|
this.processDefinitionName = processDefinitionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withProcessDefinitionName(String processDefinitionName) {
|
||||||
|
this.processDefinitionName = processDefinitionName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<FormOutcome> getOutcomes() {
|
||||||
|
return outcomes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOutcomes(List<FormOutcome> outcomes) {
|
||||||
|
this.outcomes = outcomes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withOutcomes(List<FormOutcome> outcomes) {
|
||||||
|
this.outcomes = outcomes;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSelectedOutcome() {
|
||||||
|
return selectedOutcome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSelectedOutcome(String selectedOutcome) {
|
||||||
|
this.selectedOutcome = selectedOutcome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withSelectedOutcome(String selectedOutcome) {
|
||||||
|
this.selectedOutcome = selectedOutcome;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskDefinitionKey() {
|
||||||
|
return taskDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDefinitionKey(String taskDefinitionKey) {
|
||||||
|
this.taskDefinitionKey = taskDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withTaskDefinitionKey(String taskDefinitionKey) {
|
||||||
|
this.taskDefinitionKey = taskDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskId() {
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskId(String taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withTaskId(String taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskName() {
|
||||||
|
return taskName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskName(String taskName) {
|
||||||
|
this.taskName = taskName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withTaskName(String taskName) {
|
||||||
|
this.taskName = taskName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<FormVariable> getVariables() {
|
||||||
|
return variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVariables(List<FormVariable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormDefinition withVariables(List<FormVariable> variables) {
|
||||||
|
this.variables = variables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"id",
|
||||||
|
"name"
|
||||||
|
})
|
||||||
|
public class FormOutcome {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public FormOutcome() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormOutcome(String id, String name) {
|
||||||
|
this.id = id;
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormOutcome withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormOutcome withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"id",
|
||||||
|
"name"
|
||||||
|
})
|
||||||
|
public class FormValue {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public FormValue() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormValue(String id, String name) {
|
||||||
|
this.id = id;
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormValue withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormValue withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"name",
|
||||||
|
"type",
|
||||||
|
"value"
|
||||||
|
})
|
||||||
|
public class FormVariable {
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("type")
|
||||||
|
private String type;
|
||||||
|
@JsonProperty("value")
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public FormVariable() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormVariable(String name, String type, Object value) {
|
||||||
|
this.name = name;
|
||||||
|
this.type = type;
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormVariable withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormVariable withType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(Object value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public FormVariable withValue(Object value) {
|
||||||
|
this.value = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+34
-26
@@ -3,12 +3,14 @@
|
|||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import java.util.ArrayList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
@@ -39,15 +41,17 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
public class HistoricProcessInstanceQueryRepresentation {
|
public class HistoricProcessInstanceQueryRepresentation {
|
||||||
|
|
||||||
@JsonProperty("excludeSubprocesses")
|
@JsonProperty("excludeSubprocesses")
|
||||||
private boolean excludeSubprocesses;
|
private Boolean excludeSubprocesses;
|
||||||
@JsonProperty("finished")
|
@JsonProperty("finished")
|
||||||
private boolean finished;
|
private Boolean finished;
|
||||||
@JsonProperty("finishedAfter")
|
@JsonProperty("finishedAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
private OffsetDateTime finishedAfter;
|
private OffsetDateTime finishedAfter;
|
||||||
@JsonProperty("finishedBefore")
|
@JsonProperty("finishedBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
private OffsetDateTime finishedBefore;
|
private OffsetDateTime finishedBefore;
|
||||||
@JsonProperty("includeProcessVariables")
|
@JsonProperty("includeProcessVariables")
|
||||||
private boolean includeProcessVariables;
|
private Boolean includeProcessVariables;
|
||||||
@JsonProperty("involvedUser")
|
@JsonProperty("involvedUser")
|
||||||
private String involvedUser;
|
private String involvedUser;
|
||||||
@JsonProperty("order")
|
@JsonProperty("order")
|
||||||
@@ -63,14 +67,16 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
@JsonProperty("processInstanceIds")
|
@JsonProperty("processInstanceIds")
|
||||||
private List<String> processInstanceIds;
|
private List<String> processInstanceIds;
|
||||||
@JsonProperty("size")
|
@JsonProperty("size")
|
||||||
private int size;
|
private Integer size;
|
||||||
@JsonProperty("sort")
|
@JsonProperty("sort")
|
||||||
private String sort;
|
private String sort;
|
||||||
@JsonProperty("start")
|
@JsonProperty("start")
|
||||||
private int start;
|
private Integer start;
|
||||||
@JsonProperty("startedAfter")
|
@JsonProperty("startedAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
private OffsetDateTime startedAfter;
|
private OffsetDateTime startedAfter;
|
||||||
@JsonProperty("startedBefore")
|
@JsonProperty("startedBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
private OffsetDateTime startedBefore;
|
private OffsetDateTime startedBefore;
|
||||||
@JsonProperty("startedBy")
|
@JsonProperty("startedBy")
|
||||||
private String startedBy;
|
private String startedBy;
|
||||||
@@ -81,9 +87,9 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
@JsonProperty("tenantIdLike")
|
@JsonProperty("tenantIdLike")
|
||||||
private String tenantIdLike;
|
private String tenantIdLike;
|
||||||
@JsonProperty("variables")
|
@JsonProperty("variables")
|
||||||
private List<QueryVariable> variables = new ArrayList<QueryVariable>();
|
private List<QueryVariable> variables;
|
||||||
@JsonProperty("withoutTenantId")
|
@JsonProperty("withoutTenantId")
|
||||||
private boolean withoutTenantId;
|
private Boolean withoutTenantId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No args constructor for use in serialization
|
* No args constructor for use in serialization
|
||||||
@@ -91,28 +97,28 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
public HistoricProcessInstanceQueryRepresentation() {
|
public HistoricProcessInstanceQueryRepresentation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isExcludeSubprocesses() {
|
public Boolean isExcludeSubprocesses() {
|
||||||
return excludeSubprocesses;
|
return excludeSubprocesses;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setExcludeSubprocesses(boolean excludeSubprocesses) {
|
public void setExcludeSubprocesses(Boolean excludeSubprocesses) {
|
||||||
this.excludeSubprocesses = excludeSubprocesses;
|
this.excludeSubprocesses = excludeSubprocesses;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoricProcessInstanceQueryRepresentation withExcludeSubprocesses(boolean excludeSubprocesses) {
|
public HistoricProcessInstanceQueryRepresentation withExcludeSubprocesses(Boolean excludeSubprocesses) {
|
||||||
this.excludeSubprocesses = excludeSubprocesses;
|
this.excludeSubprocesses = excludeSubprocesses;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isFinished() {
|
public Boolean isFinished() {
|
||||||
return finished;
|
return finished;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFinished(boolean finished) {
|
public void setFinished(Boolean finished) {
|
||||||
this.finished = finished;
|
this.finished = finished;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoricProcessInstanceQueryRepresentation withFinished(boolean finished) {
|
public HistoricProcessInstanceQueryRepresentation withFinished(Boolean finished) {
|
||||||
this.finished = finished;
|
this.finished = finished;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -143,15 +149,15 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isIncludeProcessVariables() {
|
public Boolean isIncludeProcessVariables() {
|
||||||
return includeProcessVariables;
|
return includeProcessVariables;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIncludeProcessVariables(boolean includeProcessVariables) {
|
public void setIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
this.includeProcessVariables = includeProcessVariables;
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoricProcessInstanceQueryRepresentation withIncludeProcessVariables(boolean includeProcessVariables) {
|
public HistoricProcessInstanceQueryRepresentation withIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
this.includeProcessVariables = includeProcessVariables;
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -247,15 +253,15 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSize() {
|
public Integer getSize() {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSize(int size) {
|
public void setSize(Integer size) {
|
||||||
this.size = size;
|
this.size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoricProcessInstanceQueryRepresentation withSize(int size) {
|
public HistoricProcessInstanceQueryRepresentation withSize(Integer size) {
|
||||||
this.size = size;
|
this.size = size;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -273,15 +279,15 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStart() {
|
public Integer getStart() {
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStart(int start) {
|
public void setStart(Integer start) {
|
||||||
this.start = start;
|
this.start = start;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoricProcessInstanceQueryRepresentation withStart(int start) {
|
public HistoricProcessInstanceQueryRepresentation withStart(Integer start) {
|
||||||
this.start = start;
|
this.start = start;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -365,6 +371,8 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<QueryVariable> getVariables() {
|
public List<QueryVariable> getVariables() {
|
||||||
|
if (variables == null)
|
||||||
|
variables = new LinkedList<>();
|
||||||
return variables;
|
return variables;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -377,15 +385,15 @@ public class HistoricProcessInstanceQueryRepresentation {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isWithoutTenantId() {
|
public Boolean isWithoutTenantId() {
|
||||||
return withoutTenantId;
|
return withoutTenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWithoutTenantId(boolean withoutTenantId) {
|
public void setWithoutTenantId(Boolean withoutTenantId) {
|
||||||
this.withoutTenantId = withoutTenantId;
|
this.withoutTenantId = withoutTenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoricProcessInstanceQueryRepresentation withWithoutTenantId(boolean withoutTenantId) {
|
public HistoricProcessInstanceQueryRepresentation withWithoutTenantId(Boolean withoutTenantId) {
|
||||||
this.withoutTenantId = withoutTenantId;
|
this.withoutTenantId = withoutTenantId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
+835
@@ -0,0 +1,835 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
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;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"taskId",
|
||||||
|
"parentTaskId",
|
||||||
|
"taskName",
|
||||||
|
"taskNameLike",
|
||||||
|
"taskDefinitionKey",
|
||||||
|
"taskDefinitionKeyLike",
|
||||||
|
"finished",
|
||||||
|
"taskPriority",
|
||||||
|
"taskMinPriority",
|
||||||
|
"taskMaxPriority",
|
||||||
|
"taskAssignee",
|
||||||
|
"taskAssigneeLike",
|
||||||
|
"taskOwner",
|
||||||
|
"taskOwnerLike",
|
||||||
|
"taskInvolvedUser",
|
||||||
|
"taskCandidateGroup",
|
||||||
|
"taskCreatedOn",
|
||||||
|
"taskCreatedAfter",
|
||||||
|
"taskCreatedBefore",
|
||||||
|
"dueDate",
|
||||||
|
"dueDateAfter",
|
||||||
|
"dueDateBefore",
|
||||||
|
"withoutDueDate",
|
||||||
|
"taskCompletedOn",
|
||||||
|
"taskCompletedAfter",
|
||||||
|
"taskCompletedBefore",
|
||||||
|
"taskDeleteReason",
|
||||||
|
"taskDeleteReasonLike",
|
||||||
|
"taskDescription",
|
||||||
|
"taskDescriptionLike",
|
||||||
|
"processBusinessKey",
|
||||||
|
"processBusinessKeyLike",
|
||||||
|
"processDefinitionId",
|
||||||
|
"processDefinitionKey",
|
||||||
|
"processDefinitionKeyLike",
|
||||||
|
"processDefinitionName",
|
||||||
|
"processDefinitionNameLike",
|
||||||
|
"processFinished",
|
||||||
|
"processInstanceId",
|
||||||
|
"includeProcessVariables",
|
||||||
|
"includeTaskLocalVariables",
|
||||||
|
"processVariables",
|
||||||
|
"taskVariables",
|
||||||
|
"size",
|
||||||
|
"sort",
|
||||||
|
"order",
|
||||||
|
"start",
|
||||||
|
"tenantId",
|
||||||
|
"tenantIdLike",
|
||||||
|
"withoutTenantId",
|
||||||
|
})
|
||||||
|
public class HistoricTaskQueryRepresentation {
|
||||||
|
|
||||||
|
@JsonProperty("taskId")
|
||||||
|
private String taskId;
|
||||||
|
@JsonProperty("parentTaskId")
|
||||||
|
private String parentTaskId;
|
||||||
|
@JsonProperty("taskName")
|
||||||
|
private String taskName;
|
||||||
|
@JsonProperty("taskNameLike")
|
||||||
|
private String taskNameLike;
|
||||||
|
@JsonProperty("taskDefinitionKey")
|
||||||
|
private String taskDefinitionKey;
|
||||||
|
@JsonProperty("taskDefinitionKeyLike")
|
||||||
|
private String taskDefinitionKeyLike;
|
||||||
|
@JsonProperty("finished")
|
||||||
|
private Boolean finished;
|
||||||
|
@JsonProperty("taskPriority")
|
||||||
|
private Integer taskPriority;
|
||||||
|
@JsonProperty("taskMinPriority")
|
||||||
|
private Integer taskMinPriority;
|
||||||
|
@JsonProperty("taskMaxPriority")
|
||||||
|
private Integer taskMaxPriority;
|
||||||
|
@JsonProperty("taskAssignee")
|
||||||
|
private String taskAssignee;
|
||||||
|
@JsonProperty("taskAssigneeLike")
|
||||||
|
private String taskAssigneeLike;
|
||||||
|
@JsonProperty("taskOwner")
|
||||||
|
private String taskOwner;
|
||||||
|
@JsonProperty("taskOwnerLike")
|
||||||
|
private String taskOwnerLike;
|
||||||
|
@JsonProperty("taskInvolvedUser")
|
||||||
|
private String taskInvolvedUser;
|
||||||
|
@JsonProperty("taskCandidateGroup")
|
||||||
|
private String taskCandidateGroup;
|
||||||
|
@JsonProperty("taskCreatedOn")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime taskCreated;
|
||||||
|
@JsonProperty("taskCreatedBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime taskCreatedBefore;
|
||||||
|
@JsonProperty("taskCreatedAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime taskCreatedAfter;
|
||||||
|
@JsonProperty("dueDate")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueDate;
|
||||||
|
@JsonProperty("dueDateBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueDateBefore;
|
||||||
|
@JsonProperty("dueDateAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueDateAfter;
|
||||||
|
@JsonProperty("withoutDueDate")
|
||||||
|
private Boolean withoutDueDate;
|
||||||
|
@JsonProperty("taskCompletedOn")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime taskCompleted;
|
||||||
|
@JsonProperty("taskCompletedBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime taskCompletedBefore;
|
||||||
|
@JsonProperty("taskCompletedAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime taskCompletedAfter;
|
||||||
|
@JsonProperty("taskDeleteReason")
|
||||||
|
private String taskDeleteReason;
|
||||||
|
@JsonProperty("taskDeleteReasonLike")
|
||||||
|
private String taskDeleteReasonLike;
|
||||||
|
@JsonProperty("taskDescription")
|
||||||
|
private String taskDescription;
|
||||||
|
@JsonProperty("taskDescriptionLike")
|
||||||
|
private String taskDescriptionLike;
|
||||||
|
@JsonProperty("processBusinessKey")
|
||||||
|
private String processBusinessKey;
|
||||||
|
@JsonProperty("processBusinessKeyLike")
|
||||||
|
private String processBusinessKeyLike;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@JsonProperty("processDefinitionKeyLike")
|
||||||
|
private String processDefinitionKeyLike;
|
||||||
|
@JsonProperty("processDefinitionName")
|
||||||
|
private String processDefinitionName;
|
||||||
|
@JsonProperty("processDefinitionNameLike")
|
||||||
|
private String processDefinitionNameLike;
|
||||||
|
@JsonProperty("processFinished")
|
||||||
|
private Boolean processFinished;
|
||||||
|
@JsonProperty("processInstanceId")
|
||||||
|
private String processInstanceId;
|
||||||
|
@JsonProperty("includeProcessVariables")
|
||||||
|
private Boolean includeProcessVariables;
|
||||||
|
@JsonProperty("includeTaskLocalVariables")
|
||||||
|
private Boolean includeTaskLocalVariables;
|
||||||
|
@JsonProperty("taskVariables")
|
||||||
|
private List<QueryVariable> taskVariables;
|
||||||
|
@JsonProperty("processVariables")
|
||||||
|
private List<QueryVariable> processVariables;
|
||||||
|
@JsonProperty("size")
|
||||||
|
private Integer size;
|
||||||
|
@JsonProperty("sort")
|
||||||
|
private String sort;
|
||||||
|
@JsonProperty("order")
|
||||||
|
private String order;
|
||||||
|
@JsonProperty("start")
|
||||||
|
private Integer start;
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@JsonProperty("tenantIdLike")
|
||||||
|
private String tenantIdLike;
|
||||||
|
@JsonProperty("withoutTenantId")
|
||||||
|
private Boolean withoutTenantId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public HistoricTaskQueryRepresentation() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskId() {
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskId(String taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskId(String taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParentTaskId() {
|
||||||
|
return parentTaskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParentTaskId(String parentTaskId) {
|
||||||
|
this.parentTaskId = parentTaskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withParentTaskId(String parentTaskId) {
|
||||||
|
this.parentTaskId = parentTaskId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskName() {
|
||||||
|
return taskName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskName(String taskName) {
|
||||||
|
this.taskName = taskName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskName(String taskName) {
|
||||||
|
this.taskName = taskName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskNameLike() {
|
||||||
|
return taskNameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskNameLike(String taskNameLike) {
|
||||||
|
this.taskNameLike = taskNameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskNameLike(String taskNameLike) {
|
||||||
|
this.taskNameLike = taskNameLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskDefinitionKey() {
|
||||||
|
return taskDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDefinitionKey(String taskDefinitionKey) {
|
||||||
|
this.taskDefinitionKey = taskDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskDefinitionKey(String taskDefinitionKey) {
|
||||||
|
this.taskDefinitionKey = taskDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskDefinitionKeyLike() {
|
||||||
|
return taskDefinitionKeyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDefinitionKeyLike(String taskDefinitionKeyLike) {
|
||||||
|
this.taskDefinitionKeyLike = taskDefinitionKeyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskDefinitionKeyLike(String taskDefinitionKeyLike) {
|
||||||
|
this.taskDefinitionKeyLike = taskDefinitionKeyLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getFinished() {
|
||||||
|
return finished;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFinished(Boolean finished) {
|
||||||
|
this.finished = finished;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withFinished(Boolean finished) {
|
||||||
|
this.finished = finished;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTaskPriority() {
|
||||||
|
return taskPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskPriority(Integer taskPriority) {
|
||||||
|
this.taskPriority = taskPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskPriority(Integer taskPriority) {
|
||||||
|
this.taskPriority = taskPriority;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTaskMinPriority() {
|
||||||
|
return taskMinPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskMinPriority(Integer taskMinPriority) {
|
||||||
|
this.taskMinPriority = taskMinPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskMinPriority(Integer taskMinPriority) {
|
||||||
|
this.taskMinPriority = taskMinPriority;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTaskMaxPriority() {
|
||||||
|
return taskMaxPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskMaxPriority(Integer taskMaxPriority) {
|
||||||
|
this.taskMaxPriority = taskMaxPriority;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskMaxPriority(Integer taskMaxPriority) {
|
||||||
|
this.taskMaxPriority = taskMaxPriority;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskAssignee() {
|
||||||
|
return taskAssignee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskAssignee(String taskAssignee) {
|
||||||
|
this.taskAssignee = taskAssignee;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskAssignee(String taskAssignee) {
|
||||||
|
this.taskAssignee = taskAssignee;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskAssigneeLike() {
|
||||||
|
return taskAssigneeLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskAssigneeLike(String taskAssigneeLike) {
|
||||||
|
this.taskAssigneeLike = taskAssigneeLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskAssigneeLike(String taskAssigneeLike) {
|
||||||
|
this.taskAssigneeLike = taskAssigneeLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskOwner() {
|
||||||
|
return taskOwner;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskOwner(String taskOwner) {
|
||||||
|
this.taskOwner = taskOwner;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskOwner(String taskOwner) {
|
||||||
|
this.taskOwner = taskOwner;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskOwnerLike() {
|
||||||
|
return taskOwnerLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskOwnerLike(String taskOwnerLike) {
|
||||||
|
this.taskOwnerLike = taskOwnerLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskOwnerLike(String taskOwnerLike) {
|
||||||
|
this.taskOwnerLike = taskOwnerLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskInvolvedUser() {
|
||||||
|
return taskInvolvedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskInvolvedUser(String taskInvolvedUser) {
|
||||||
|
this.taskInvolvedUser = taskInvolvedUser;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskInvolvedUser(String taskInvolvedUser) {
|
||||||
|
this.taskInvolvedUser = taskInvolvedUser;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskCandidateGroup() {
|
||||||
|
return taskCandidateGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCandidateGroup(String taskCandidateGroup) {
|
||||||
|
this.taskCandidateGroup = taskCandidateGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskCandidateGroup(String taskCandidateGroup) {
|
||||||
|
this.taskCandidateGroup = taskCandidateGroup;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getTaskCreated() {
|
||||||
|
return taskCreated;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCreated(OffsetDateTime taskCreated) {
|
||||||
|
this.taskCreated = taskCreated;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskCreated(OffsetDateTime taskCreated) {
|
||||||
|
this.taskCreated = taskCreated;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getTaskCreatedBefore() {
|
||||||
|
return taskCreatedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCreatedBefore(OffsetDateTime taskCreatedBefore) {
|
||||||
|
this.taskCreatedBefore = taskCreatedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskCreatedBefore(OffsetDateTime taskCreatedBefore) {
|
||||||
|
this.taskCreatedBefore = taskCreatedBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getTaskCreatedAfter() {
|
||||||
|
return taskCreatedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCreatedAfter(OffsetDateTime taskCreatedAfter) {
|
||||||
|
this.taskCreatedAfter = taskCreatedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskCreatedAfter(OffsetDateTime taskCreatedAfter) {
|
||||||
|
this.taskCreatedAfter = taskCreatedAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueDate() {
|
||||||
|
return dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueDate(OffsetDateTime dueDate) {
|
||||||
|
this.dueDate = dueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withDueDate(OffsetDateTime dueDate) {
|
||||||
|
this.dueDate = dueDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueDateBefore() {
|
||||||
|
return dueDateBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueDateBefore(OffsetDateTime dueDateBefore) {
|
||||||
|
this.dueDateBefore = dueDateBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withDueDateBefore(OffsetDateTime dueDateBefore) {
|
||||||
|
this.dueDateBefore = dueDateBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueDateAfter() {
|
||||||
|
return dueDateAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueDateAfter(OffsetDateTime dueDateAfter) {
|
||||||
|
this.dueDateAfter = dueDateAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withDueDateAfter(OffsetDateTime dueDateAfter) {
|
||||||
|
this.dueDateAfter = dueDateAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getWithoutDueDate() {
|
||||||
|
return withoutDueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithoutDueDate(Boolean withoutDueDate) {
|
||||||
|
this.withoutDueDate = withoutDueDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withWithoutDueDate(Boolean withoutDueDate) {
|
||||||
|
this.withoutDueDate = withoutDueDate;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getTaskCompleted() {
|
||||||
|
return taskCompleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCompleted(OffsetDateTime taskCompleted) {
|
||||||
|
this.taskCompleted = taskCompleted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskCompleted(OffsetDateTime taskCompleted) {
|
||||||
|
this.taskCompleted = taskCompleted;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getTaskCompletedBefore() {
|
||||||
|
return taskCompletedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCompletedBefore(OffsetDateTime taskCompletedBefore) {
|
||||||
|
this.taskCompletedBefore = taskCompletedBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskCompletedBefore(OffsetDateTime taskCompletedBefore) {
|
||||||
|
this.taskCompletedBefore = taskCompletedBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getTaskCompletedAfter() {
|
||||||
|
return taskCompletedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskCompletedAfter(OffsetDateTime taskCompletedAfter) {
|
||||||
|
this.taskCompletedAfter = taskCompletedAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskCompletedAfter(OffsetDateTime taskCompletedAfter) {
|
||||||
|
this.taskCompletedAfter = taskCompletedAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskDeleteReason() {
|
||||||
|
return taskDeleteReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDeleteReason(String taskDeleteReason) {
|
||||||
|
this.taskDeleteReason = taskDeleteReason;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskDeleteReason(String taskDeleteReason) {
|
||||||
|
this.taskDeleteReason = taskDeleteReason;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskDeleteReasonLike() {
|
||||||
|
return taskDeleteReasonLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDeleteReasonLike(String taskDeleteReasonLike) {
|
||||||
|
this.taskDeleteReasonLike = taskDeleteReasonLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskDeleteReasonLike(String taskDeleteReasonLike) {
|
||||||
|
this.taskDeleteReasonLike = taskDeleteReasonLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskDescription() {
|
||||||
|
return taskDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDescription(String taskDescription) {
|
||||||
|
this.taskDescription = taskDescription;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskDescription(String taskDescription) {
|
||||||
|
this.taskDescription = taskDescription;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskDescriptionLike() {
|
||||||
|
return taskDescriptionLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskDescriptionLike(String taskDescriptionLike) {
|
||||||
|
this.taskDescriptionLike = taskDescriptionLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskDescriptionLike(String taskDescriptionLike) {
|
||||||
|
this.taskDescriptionLike = taskDescriptionLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessBusinessKey() {
|
||||||
|
return processBusinessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessBusinessKey(String processBusinessKey) {
|
||||||
|
this.processBusinessKey = processBusinessKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessBusinessKey(String processBusinessKey) {
|
||||||
|
this.processBusinessKey = processBusinessKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessBusinessKeyLike() {
|
||||||
|
return processBusinessKeyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessBusinessKeyLike(String processBusinessKeyLike) {
|
||||||
|
this.processBusinessKeyLike = processBusinessKeyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessBusinessKeyLike(String processBusinessKeyLike) {
|
||||||
|
this.processBusinessKeyLike = processBusinessKeyLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessDefinitionKey(String processDefinitionKey) {
|
||||||
|
this.processDefinitionKey = processDefinitionKey;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKeyLike() {
|
||||||
|
return processDefinitionKeyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKeyLike(String processDefinitionKeyLike) {
|
||||||
|
this.processDefinitionKeyLike = processDefinitionKeyLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessDefinitionKeyLike(String processDefinitionKeyLike) {
|
||||||
|
this.processDefinitionKeyLike = processDefinitionKeyLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionName() {
|
||||||
|
return processDefinitionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionName(String processDefinitionName) {
|
||||||
|
this.processDefinitionName = processDefinitionName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessDefinitionName(String processDefinitionName) {
|
||||||
|
this.processDefinitionName = processDefinitionName;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionNameLike() {
|
||||||
|
return processDefinitionNameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionNameLike(String processDefinitionNameLike) {
|
||||||
|
this.processDefinitionNameLike = processDefinitionNameLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessDefinitionNameLike(String processDefinitionNameLike) {
|
||||||
|
this.processDefinitionNameLike = processDefinitionNameLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getProcessFinished() {
|
||||||
|
return processFinished;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessFinished(Boolean processFinished) {
|
||||||
|
this.processFinished = processFinished;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessFinished(Boolean processFinished) {
|
||||||
|
this.processFinished = processFinished;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIncludeProcessVariables() {
|
||||||
|
return includeProcessVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withIncludeProcessVariables(Boolean includeProcessVariables) {
|
||||||
|
this.includeProcessVariables = includeProcessVariables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getIncludeTaskLocalVariables() {
|
||||||
|
return includeTaskLocalVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIncludeTaskLocalVariables(Boolean includeTaskLocalVariables) {
|
||||||
|
this.includeTaskLocalVariables = includeTaskLocalVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withIncludeTaskLocalVariables(Boolean includeTaskLocalVariables) {
|
||||||
|
this.includeTaskLocalVariables = includeTaskLocalVariables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<QueryVariable> getTaskVariables() {
|
||||||
|
return taskVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskVariables(List<QueryVariable> taskVariables) {
|
||||||
|
this.taskVariables = taskVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTaskVariables(List<QueryVariable> taskVariables) {
|
||||||
|
this.taskVariables = taskVariables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<QueryVariable> getProcessVariables() {
|
||||||
|
return processVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessVariables(List<QueryVariable> processVariables) {
|
||||||
|
this.processVariables = processVariables;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withProcessVariables(List<QueryVariable> processVariables) {
|
||||||
|
this.processVariables = processVariables;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSize() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(String sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withSort(String sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrder() {
|
||||||
|
return order;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrder(String order) {
|
||||||
|
this.order = order;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withOrder(String order) {
|
||||||
|
this.order = order;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getStart() {
|
||||||
|
return start;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStart(Integer start) {
|
||||||
|
this.start = start;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withStart(Integer start) {
|
||||||
|
this.start = start;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantIdLike() {
|
||||||
|
return tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withTenantIdLike(String tenantIdLike) {
|
||||||
|
this.tenantIdLike = tenantIdLike;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean getWithoutTenantId() {
|
||||||
|
return withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HistoricTaskQueryRepresentation withWithoutTenantId(Boolean withoutTenantId) {
|
||||||
|
this.withoutTenantId = withoutTenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,10 +1,13 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
@@ -42,7 +45,7 @@ public class ModelRepresentation {
|
|||||||
@JsonProperty("comment")
|
@JsonProperty("comment")
|
||||||
private String comment;
|
private String comment;
|
||||||
@JsonProperty("createdBy")
|
@JsonProperty("createdBy")
|
||||||
private Integer createdBy;
|
private Long createdBy;
|
||||||
@JsonProperty("createdByFullName")
|
@JsonProperty("createdByFullName")
|
||||||
private String createdByFullName;
|
private String createdByFullName;
|
||||||
@JsonProperty("description")
|
@JsonProperty("description")
|
||||||
@@ -50,11 +53,12 @@ public class ModelRepresentation {
|
|||||||
@JsonProperty("favorite")
|
@JsonProperty("favorite")
|
||||||
private Boolean favorite;
|
private Boolean favorite;
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Integer id;
|
private Long id;
|
||||||
@JsonProperty("lastUpdated")
|
@JsonProperty("lastUpdated")
|
||||||
private String lastUpdated;
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime lastUpdated;
|
||||||
@JsonProperty("lastUpdatedBy")
|
@JsonProperty("lastUpdatedBy")
|
||||||
private Integer lastUpdatedBy;
|
private Long lastUpdatedBy;
|
||||||
@JsonProperty("lastUpdatedByFullName")
|
@JsonProperty("lastUpdatedByFullName")
|
||||||
private String lastUpdatedByFullName;
|
private String lastUpdatedByFullName;
|
||||||
@JsonProperty("latestVersion")
|
@JsonProperty("latestVersion")
|
||||||
@@ -66,11 +70,11 @@ public class ModelRepresentation {
|
|||||||
@JsonProperty("permission")
|
@JsonProperty("permission")
|
||||||
private String permission;
|
private String permission;
|
||||||
@JsonProperty("referenceId")
|
@JsonProperty("referenceId")
|
||||||
private Integer referenceId;
|
private Long referenceId;
|
||||||
@JsonProperty("stencilSet")
|
@JsonProperty("stencilSet")
|
||||||
private Integer stencilSet;
|
private Long stencilSet;
|
||||||
@JsonProperty("tenantId")
|
@JsonProperty("tenantId")
|
||||||
private Integer tenantId;
|
private Long tenantId;
|
||||||
@JsonProperty("version")
|
@JsonProperty("version")
|
||||||
private Integer version;
|
private Integer version;
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
@@ -92,16 +96,16 @@ public class ModelRepresentation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("createdBy")
|
@JsonProperty("createdBy")
|
||||||
public Integer getCreatedBy() {
|
public Long getCreatedBy() {
|
||||||
return createdBy;
|
return createdBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("createdBy")
|
@JsonProperty("createdBy")
|
||||||
public void setCreatedBy(Integer createdBy) {
|
public void setCreatedBy(Long createdBy) {
|
||||||
this.createdBy = createdBy;
|
this.createdBy = createdBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelRepresentation withCreatedBy(Integer createdBy) {
|
public ModelRepresentation withCreatedBy(Long createdBy) {
|
||||||
this.createdBy = createdBy;
|
this.createdBy = createdBy;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -152,46 +156,46 @@ public class ModelRepresentation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public Integer getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
public void setId(Integer id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelRepresentation withId(Integer id) {
|
public ModelRepresentation withId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("lastUpdated")
|
@JsonProperty("lastUpdated")
|
||||||
public String getLastUpdated() {
|
public OffsetDateTime getLastUpdated() {
|
||||||
return lastUpdated;
|
return lastUpdated;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("lastUpdated")
|
@JsonProperty("lastUpdated")
|
||||||
public void setLastUpdated(String lastUpdated) {
|
public void setLastUpdated(OffsetDateTime lastUpdated) {
|
||||||
this.lastUpdated = lastUpdated;
|
this.lastUpdated = lastUpdated;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelRepresentation withLastUpdated(String lastUpdated) {
|
public ModelRepresentation withLastUpdated(OffsetDateTime lastUpdated) {
|
||||||
this.lastUpdated = lastUpdated;
|
this.lastUpdated = lastUpdated;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("lastUpdatedBy")
|
@JsonProperty("lastUpdatedBy")
|
||||||
public Integer getLastUpdatedBy() {
|
public Long getLastUpdatedBy() {
|
||||||
return lastUpdatedBy;
|
return lastUpdatedBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("lastUpdatedBy")
|
@JsonProperty("lastUpdatedBy")
|
||||||
public void setLastUpdatedBy(Integer lastUpdatedBy) {
|
public void setLastUpdatedBy(Long lastUpdatedBy) {
|
||||||
this.lastUpdatedBy = lastUpdatedBy;
|
this.lastUpdatedBy = lastUpdatedBy;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelRepresentation withLastUpdatedBy(Integer lastUpdatedBy) {
|
public ModelRepresentation withLastUpdatedBy(Long lastUpdatedBy) {
|
||||||
this.lastUpdatedBy = lastUpdatedBy;
|
this.lastUpdatedBy = lastUpdatedBy;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -272,46 +276,46 @@ public class ModelRepresentation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("referenceId")
|
@JsonProperty("referenceId")
|
||||||
public Integer getReferenceId() {
|
public Long getReferenceId() {
|
||||||
return referenceId;
|
return referenceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("referenceId")
|
@JsonProperty("referenceId")
|
||||||
public void setReferenceId(Integer referenceId) {
|
public void setReferenceId(Long referenceId) {
|
||||||
this.referenceId = referenceId;
|
this.referenceId = referenceId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelRepresentation withReferenceId(Integer referenceId) {
|
public ModelRepresentation withReferenceId(Long referenceId) {
|
||||||
this.referenceId = referenceId;
|
this.referenceId = referenceId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("stencilSet")
|
@JsonProperty("stencilSet")
|
||||||
public Integer getStencilSet() {
|
public Long getStencilSet() {
|
||||||
return stencilSet;
|
return stencilSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("stencilSet")
|
@JsonProperty("stencilSet")
|
||||||
public void setStencilSet(Integer stencilSet) {
|
public void setStencilSet(Long stencilSet) {
|
||||||
this.stencilSet = stencilSet;
|
this.stencilSet = stencilSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelRepresentation withStencilSet(Integer stencilSet) {
|
public ModelRepresentation withStencilSet(Long stencilSet) {
|
||||||
this.stencilSet = stencilSet;
|
this.stencilSet = stencilSet;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("tenantId")
|
@JsonProperty("tenantId")
|
||||||
public Integer getTenantId() {
|
public Long getTenantId() {
|
||||||
return tenantId;
|
return tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("tenantId")
|
@JsonProperty("tenantId")
|
||||||
public void setTenantId(Integer tenantId) {
|
public void setTenantId(Long tenantId) {
|
||||||
this.tenantId = tenantId;
|
this.tenantId = tenantId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ModelRepresentation withTenantId(Integer tenantId) {
|
public ModelRepresentation withTenantId(Long tenantId) {
|
||||||
this.tenantId = tenantId;
|
this.tenantId = tenantId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,166 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.inteligr8.activiti.model.Datum;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"id",
|
||||||
|
"key",
|
||||||
|
"name",
|
||||||
|
"description",
|
||||||
|
"hasStartForm",
|
||||||
|
"deploymentId",
|
||||||
|
"version",
|
||||||
|
"category",
|
||||||
|
"tenantId"
|
||||||
|
})
|
||||||
|
public class ProcessDefinition extends Datum {
|
||||||
|
|
||||||
|
@JsonProperty("category")
|
||||||
|
private String category;
|
||||||
|
@JsonProperty("deploymentId")
|
||||||
|
private String deploymentId;
|
||||||
|
@JsonProperty("description")
|
||||||
|
private String description;
|
||||||
|
@JsonProperty("hasStartForm")
|
||||||
|
private boolean hasStartForm;
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("key")
|
||||||
|
private String key;
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("tenantId")
|
||||||
|
private String tenantId;
|
||||||
|
@JsonProperty("version")
|
||||||
|
private Integer version;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessDefinition() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCategory() {
|
||||||
|
return category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withCategory(String category) {
|
||||||
|
this.category = category;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeploymentId() {
|
||||||
|
return deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withDeploymentId(String deploymentId) {
|
||||||
|
this.deploymentId = deploymentId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription() {
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withDescription(String description) {
|
||||||
|
this.description = description;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isHasStartForm() {
|
||||||
|
return hasStartForm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setHasStartForm(boolean hasStartForm) {
|
||||||
|
this.hasStartForm = hasStartForm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withHasStartForm(boolean hasStartForm) {
|
||||||
|
this.hasStartForm = hasStartForm;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTenantId() {
|
||||||
|
return tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withTenantId(String tenantId) {
|
||||||
|
this.tenantId = tenantId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getVersion() {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVersion(Integer version) {
|
||||||
|
this.version = version;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessDefinition withVersion(Integer version) {
|
||||||
|
this.version = version;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -2,12 +2,16 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
import com.inteligr8.activiti.model.Datum;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
@@ -35,7 +39,8 @@ public class ProcessInstance extends Datum {
|
|||||||
@JsonProperty("businessKey")
|
@JsonProperty("businessKey")
|
||||||
private String businessKey;
|
private String businessKey;
|
||||||
@JsonProperty("ended")
|
@JsonProperty("ended")
|
||||||
private String ended;
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime ended;
|
||||||
@JsonProperty("graphicalNotationDefined")
|
@JsonProperty("graphicalNotationDefined")
|
||||||
private Boolean graphicalNotationDefined;
|
private Boolean graphicalNotationDefined;
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
@@ -59,7 +64,8 @@ public class ProcessInstance extends Datum {
|
|||||||
@JsonProperty("startFormDefined")
|
@JsonProperty("startFormDefined")
|
||||||
private Boolean startFormDefined;
|
private Boolean startFormDefined;
|
||||||
@JsonProperty("started")
|
@JsonProperty("started")
|
||||||
private String started;
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime started;
|
||||||
@JsonProperty("startedBy")
|
@JsonProperty("startedBy")
|
||||||
private UserLight startedBy;
|
private UserLight startedBy;
|
||||||
@JsonProperty("suspended")
|
@JsonProperty("suspended")
|
||||||
@@ -88,15 +94,15 @@ public class ProcessInstance extends Datum {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEnded() {
|
public OffsetDateTime getEnded() {
|
||||||
return ended;
|
return ended;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEnded(String ended) {
|
public void setEnded(OffsetDateTime ended) {
|
||||||
this.ended = ended;
|
this.ended = ended;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProcessInstance withEnded(String ended) {
|
public ProcessInstance withEnded(OffsetDateTime ended) {
|
||||||
this.ended = ended;
|
this.ended = ended;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -244,15 +250,15 @@ public class ProcessInstance extends Datum {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getStarted() {
|
public OffsetDateTime getStarted() {
|
||||||
return started;
|
return started;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStarted(String started) {
|
public void setStarted(OffsetDateTime started) {
|
||||||
this.started = started;
|
this.started = started;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProcessInstance withStarted(String started) {
|
public ProcessInstance withStarted(OffsetDateTime started) {
|
||||||
this.started = started;
|
this.started = started;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,127 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.inteligr8.activiti.model.Datum;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"name",
|
||||||
|
"processDefinitionId",
|
||||||
|
"processDefinitionKey",
|
||||||
|
"sort",
|
||||||
|
"asc",
|
||||||
|
"state"
|
||||||
|
})
|
||||||
|
public class ProcessInstanceFilter extends Datum {
|
||||||
|
|
||||||
|
public enum State {
|
||||||
|
@JsonProperty("all")
|
||||||
|
All,
|
||||||
|
@JsonProperty("completed")
|
||||||
|
Completed,
|
||||||
|
@JsonProperty("running")
|
||||||
|
Running
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@JsonProperty("sort")
|
||||||
|
private String sort;
|
||||||
|
@JsonProperty("asc")
|
||||||
|
private Boolean asc;
|
||||||
|
@JsonProperty("state")
|
||||||
|
private State state;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessInstanceFilter() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilter withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String id) {
|
||||||
|
this.processDefinitionId = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilter withProcessDefinitionId(String id) {
|
||||||
|
this.processDefinitionId = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String key) {
|
||||||
|
this.processDefinitionKey = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilter withProcessDefinitionKey(String key) {
|
||||||
|
this.processDefinitionKey = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(String sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilter withSort(String sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isAsc() {
|
||||||
|
return asc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAsc(Boolean asc) {
|
||||||
|
this.asc = asc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilter withAsc(Boolean asc) {
|
||||||
|
this.asc = asc;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public State getState() {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setState(State state) {
|
||||||
|
this.state = state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilter withState(State state) {
|
||||||
|
this.state = state;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+101
@@ -0,0 +1,101 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"filterId",
|
||||||
|
"filter",
|
||||||
|
"appDefinitionId",
|
||||||
|
"page",
|
||||||
|
"size"
|
||||||
|
})
|
||||||
|
public class ProcessInstanceFilterRepresentation {
|
||||||
|
|
||||||
|
@JsonProperty("filterId")
|
||||||
|
private Long filterId;
|
||||||
|
@JsonProperty("filter")
|
||||||
|
private ProcessInstanceFilter filter;
|
||||||
|
@JsonProperty("appDefinitionId")
|
||||||
|
private Long appDefinitionId;
|
||||||
|
@JsonProperty("page")
|
||||||
|
private Integer page;
|
||||||
|
@JsonProperty("size")
|
||||||
|
private Integer size;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessInstanceFilterRepresentation() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getFilterId() {
|
||||||
|
return filterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilterId(Long filterId) {
|
||||||
|
this.filterId = filterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilterRepresentation withFilterId(Long filterId) {
|
||||||
|
this.filterId = filterId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilter getFilter() {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilter(ProcessInstanceFilter filter) {
|
||||||
|
this.filter = filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilterRepresentation withFilter(ProcessInstanceFilter filter) {
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAppDefinitionId() {
|
||||||
|
return appDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppDefinitionId(Long appDefinitionId) {
|
||||||
|
this.appDefinitionId = appDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilterRepresentation withAppDefinitionId(Long appDefinitionId) {
|
||||||
|
this.appDefinitionId = appDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPage() {
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilterRepresentation withPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSize() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceFilterRepresentation withSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+27
-12
@@ -40,17 +40,19 @@ public class ProcessInstanceQueryRepresentation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("appDefinitionId")
|
@JsonProperty("appDefinitionId")
|
||||||
private long appDefinitionId;
|
private Long appDefinitionId;
|
||||||
@JsonProperty("processDefinitionId")
|
@JsonProperty("processDefinitionId")
|
||||||
private String processDefinitionId;
|
private String processDefinitionId;
|
||||||
@JsonProperty("processInstanceId")
|
@JsonProperty("processInstanceId")
|
||||||
private String processInstanceId;
|
private String processInstanceId;
|
||||||
|
@JsonProperty("page")
|
||||||
|
private Integer page;
|
||||||
@JsonProperty("size")
|
@JsonProperty("size")
|
||||||
private int size;
|
private Integer size;
|
||||||
@JsonProperty("sort")
|
@JsonProperty("sort")
|
||||||
private Sort sort;
|
private Sort sort;
|
||||||
@JsonProperty("start")
|
@JsonProperty("start")
|
||||||
private int start;
|
private Integer start;
|
||||||
@JsonProperty("state")
|
@JsonProperty("state")
|
||||||
private State state;
|
private State state;
|
||||||
|
|
||||||
@@ -60,15 +62,15 @@ public class ProcessInstanceQueryRepresentation {
|
|||||||
public ProcessInstanceQueryRepresentation() {
|
public ProcessInstanceQueryRepresentation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getAppDefinitionId() {
|
public Long getAppDefinitionId() {
|
||||||
return appDefinitionId;
|
return appDefinitionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAppDefinitionId(long appDefinitionId) {
|
public void setAppDefinitionId(Long appDefinitionId) {
|
||||||
this.appDefinitionId = appDefinitionId;
|
this.appDefinitionId = appDefinitionId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProcessInstanceQueryRepresentation withAppDefinitionId(long appDefinitionId) {
|
public ProcessInstanceQueryRepresentation withAppDefinitionId(Long appDefinitionId) {
|
||||||
this.appDefinitionId = appDefinitionId;
|
this.appDefinitionId = appDefinitionId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -98,16 +100,29 @@ public class ProcessInstanceQueryRepresentation {
|
|||||||
this.processInstanceId = processInstanceId;
|
this.processInstanceId = processInstanceId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Integer getPage() {
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceQueryRepresentation withPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public int getSize() {
|
public Integer getSize() {
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSize(int size) {
|
public void setSize(Integer size) {
|
||||||
this.size = size;
|
this.size = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProcessInstanceQueryRepresentation withSize(int size) {
|
public ProcessInstanceQueryRepresentation withSize(Integer size) {
|
||||||
this.size = size;
|
this.size = size;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -125,15 +140,15 @@ public class ProcessInstanceQueryRepresentation {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStart() {
|
public Integer getStart() {
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStart(int start) {
|
public void setStart(Integer start) {
|
||||||
this.start = start;
|
this.start = start;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ProcessInstanceQueryRepresentation withStart(int start) {
|
public ProcessInstanceQueryRepresentation withStart(Integer start) {
|
||||||
this.start = start;
|
this.start = start;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,73 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"id",
|
||||||
|
"type",
|
||||||
|
"value"
|
||||||
|
})
|
||||||
|
public class ProcessInstanceVariable {
|
||||||
|
|
||||||
|
@JsonProperty("id")
|
||||||
|
private String id;
|
||||||
|
@JsonProperty("type")
|
||||||
|
private String type;
|
||||||
|
@JsonProperty("value")
|
||||||
|
private Object value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public ProcessInstanceVariable() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceVariable(String id, String type, Object value) {
|
||||||
|
this.id = id;
|
||||||
|
this.type = type;
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceVariable withId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceVariable withType(String type) {
|
||||||
|
this.type = type;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(Object value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ProcessInstanceVariable withValue(Object value) {
|
||||||
|
this.value = value;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+3
-23
@@ -2,15 +2,12 @@
|
|||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.inteligr8.activiti.model.Datum;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -26,7 +23,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
"start",
|
"start",
|
||||||
"total"
|
"total"
|
||||||
})
|
})
|
||||||
public class ResultListDataRepresentation<T extends Datum> {
|
public class ResultListDataRepresentation<T extends Datum> extends Datum {
|
||||||
|
|
||||||
@JsonProperty("data")
|
@JsonProperty("data")
|
||||||
private List<T> data = new ArrayList<>();
|
private List<T> data = new ArrayList<>();
|
||||||
@@ -36,8 +33,6 @@ public class ResultListDataRepresentation<T extends Datum> {
|
|||||||
private Integer start;
|
private Integer start;
|
||||||
@JsonProperty("total")
|
@JsonProperty("total")
|
||||||
private Integer total;
|
private Integer total;
|
||||||
@JsonIgnore
|
|
||||||
private Map<String, Object> additionalProperties = new HashMap<String, Object>();
|
|
||||||
|
|
||||||
@JsonProperty("data")
|
@JsonProperty("data")
|
||||||
public List<T> getData() {
|
public List<T> getData() {
|
||||||
@@ -99,19 +94,4 @@ public class ResultListDataRepresentation<T extends Datum> {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonAnyGetter
|
|
||||||
public Map<String, Object> getAdditionalProperties() {
|
|
||||||
return this.additionalProperties;
|
|
||||||
}
|
|
||||||
|
|
||||||
@JsonAnySetter
|
|
||||||
public void setAdditionalProperty(String name, Object value) {
|
|
||||||
this.additionalProperties.put(name, value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public ResultListDataRepresentation<T> withAdditionalProperty(String name, Object value) {
|
|
||||||
this.additionalProperties.put(name, value);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
import com.inteligr8.activiti.model.Datum;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
@@ -43,7 +47,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
"taskDefinitionKey",
|
"taskDefinitionKey",
|
||||||
"variables"
|
"variables"
|
||||||
})
|
})
|
||||||
public class Task {
|
public class Task extends Datum {
|
||||||
|
|
||||||
@JsonProperty("adhocTaskCanBeReassigned")
|
@JsonProperty("adhocTaskCanBeReassigned")
|
||||||
private Boolean adhocTaskCanBeReassigned;
|
private Boolean adhocTaskCanBeReassigned;
|
||||||
@@ -52,15 +56,18 @@ public class Task {
|
|||||||
@JsonProperty("category")
|
@JsonProperty("category")
|
||||||
private String category;
|
private String category;
|
||||||
@JsonProperty("created")
|
@JsonProperty("created")
|
||||||
private String created;
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime created;
|
||||||
@JsonProperty("description")
|
@JsonProperty("description")
|
||||||
private String description;
|
private String description;
|
||||||
@JsonProperty("dueDate")
|
@JsonProperty("dueDate")
|
||||||
private String dueDate;
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueDate;
|
||||||
@JsonProperty("duration")
|
@JsonProperty("duration")
|
||||||
private Long duration;
|
private Long duration;
|
||||||
@JsonProperty("endDate")
|
@JsonProperty("endDate")
|
||||||
private String endDate;
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime endDate;
|
||||||
@JsonProperty("executionId")
|
@JsonProperty("executionId")
|
||||||
private String executionId;
|
private String executionId;
|
||||||
@JsonProperty("formKey")
|
@JsonProperty("formKey")
|
||||||
@@ -84,7 +91,7 @@ public class Task {
|
|||||||
@JsonProperty("parentTaskName")
|
@JsonProperty("parentTaskName")
|
||||||
private String parentTaskName;
|
private String parentTaskName;
|
||||||
@JsonProperty("priority")
|
@JsonProperty("priority")
|
||||||
private Long priority;
|
private Integer priority;
|
||||||
@JsonProperty("processDefinitionCategory")
|
@JsonProperty("processDefinitionCategory")
|
||||||
private String processDefinitionCategory;
|
private String processDefinitionCategory;
|
||||||
@JsonProperty("processDefinitionDeploymentId")
|
@JsonProperty("processDefinitionDeploymentId")
|
||||||
@@ -98,7 +105,7 @@ public class Task {
|
|||||||
@JsonProperty("processDefinitionName")
|
@JsonProperty("processDefinitionName")
|
||||||
private String processDefinitionName;
|
private String processDefinitionName;
|
||||||
@JsonProperty("processDefinitionVersion")
|
@JsonProperty("processDefinitionVersion")
|
||||||
private Long processDefinitionVersion;
|
private Integer processDefinitionVersion;
|
||||||
@JsonProperty("processInstanceId")
|
@JsonProperty("processInstanceId")
|
||||||
private String processInstanceId;
|
private String processInstanceId;
|
||||||
@JsonProperty("processInstanceName")
|
@JsonProperty("processInstanceName")
|
||||||
@@ -155,15 +162,15 @@ public class Task {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCreated() {
|
public OffsetDateTime getCreated() {
|
||||||
return created;
|
return created;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCreated(String created) {
|
public void setCreated(OffsetDateTime created) {
|
||||||
this.created = created;
|
this.created = created;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task withCreated(String created) {
|
public Task withCreated(OffsetDateTime created) {
|
||||||
this.created = created;
|
this.created = created;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -181,15 +188,15 @@ public class Task {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDueDate() {
|
public OffsetDateTime getDueDate() {
|
||||||
return dueDate;
|
return dueDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDueDate(String dueDate) {
|
public void setDueDate(OffsetDateTime dueDate) {
|
||||||
this.dueDate = dueDate;
|
this.dueDate = dueDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task withDueDate(String dueDate) {
|
public Task withDueDate(OffsetDateTime dueDate) {
|
||||||
this.dueDate = dueDate;
|
this.dueDate = dueDate;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -207,15 +214,15 @@ public class Task {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getEndDate() {
|
public OffsetDateTime getEndDate() {
|
||||||
return endDate;
|
return endDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEndDate(String endDate) {
|
public void setEndDate(OffsetDateTime endDate) {
|
||||||
this.endDate = endDate;
|
this.endDate = endDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task withEndDate(String endDate) {
|
public Task withEndDate(OffsetDateTime endDate) {
|
||||||
this.endDate = endDate;
|
this.endDate = endDate;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -363,15 +370,15 @@ public class Task {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getPriority() {
|
public Integer getPriority() {
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPriority(Long priority) {
|
public void setPriority(Integer priority) {
|
||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task withPriority(Long priority) {
|
public Task withPriority(Integer priority) {
|
||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@@ -454,15 +461,15 @@ public class Task {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long getProcessDefinitionVersion() {
|
public Integer getProcessDefinitionVersion() {
|
||||||
return processDefinitionVersion;
|
return processDefinitionVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProcessDefinitionVersion(Long processDefinitionVersion) {
|
public void setProcessDefinitionVersion(Integer processDefinitionVersion) {
|
||||||
this.processDefinitionVersion = processDefinitionVersion;
|
this.processDefinitionVersion = processDefinitionVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task withProcessDefinitionVersion(Long processDefinitionVersion) {
|
public Task withProcessDefinitionVersion(Integer processDefinitionVersion) {
|
||||||
this.processDefinitionVersion = processDefinitionVersion;
|
this.processDefinitionVersion = processDefinitionVersion;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,181 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
import com.inteligr8.activiti.model.Datum;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"name",
|
||||||
|
"assignment",
|
||||||
|
"dueAfter",
|
||||||
|
"dueBefore",
|
||||||
|
"processDefinitionId",
|
||||||
|
"processDefinitionKey",
|
||||||
|
"sort",
|
||||||
|
"asc",
|
||||||
|
"state"
|
||||||
|
})
|
||||||
|
public class TaskFilter extends Datum {
|
||||||
|
|
||||||
|
public enum State {
|
||||||
|
@JsonProperty("all")
|
||||||
|
All,
|
||||||
|
@JsonProperty("completed")
|
||||||
|
Completed,
|
||||||
|
@JsonProperty("running")
|
||||||
|
Running
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("name")
|
||||||
|
private String name;
|
||||||
|
@JsonProperty("assignment")
|
||||||
|
private String assignment;
|
||||||
|
@JsonProperty("dueBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueBefore;
|
||||||
|
@JsonProperty("dueAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueAfter;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("processDefinitionKey")
|
||||||
|
private String processDefinitionKey;
|
||||||
|
@JsonProperty("sort")
|
||||||
|
private String sort;
|
||||||
|
@JsonProperty("asc")
|
||||||
|
private Boolean asc;
|
||||||
|
@JsonProperty("state")
|
||||||
|
private State state;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public TaskFilter() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withName(String name) {
|
||||||
|
this.name = name;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAssignment() {
|
||||||
|
return assignment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAssignment(String assignment) {
|
||||||
|
this.assignment = assignment;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withAssignment(String assignment) {
|
||||||
|
this.assignment = assignment;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueAfter() {
|
||||||
|
return dueAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueAfter(OffsetDateTime dueAfter) {
|
||||||
|
this.dueAfter = dueAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withDueAfter(OffsetDateTime dueAfter) {
|
||||||
|
this.dueAfter = dueAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueBefore() {
|
||||||
|
return dueBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueBefore(OffsetDateTime dueBefore) {
|
||||||
|
this.dueBefore = dueBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withDueBefore(OffsetDateTime dueBefore) {
|
||||||
|
this.dueBefore = dueBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String id) {
|
||||||
|
this.processDefinitionId = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withProcessDefinitionId(String id) {
|
||||||
|
this.processDefinitionId = id;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionKey() {
|
||||||
|
return processDefinitionKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionKey(String key) {
|
||||||
|
this.processDefinitionKey = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withProcessDefinitionKey(String key) {
|
||||||
|
this.processDefinitionKey = key;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(String sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withSort(String sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean isAsc() {
|
||||||
|
return asc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAsc(Boolean asc) {
|
||||||
|
this.asc = asc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withAsc(Boolean asc) {
|
||||||
|
this.asc = asc;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public State getState() {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setState(State state) {
|
||||||
|
this.state = state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter withState(State state) {
|
||||||
|
this.state = state;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,101 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"filterId",
|
||||||
|
"filter",
|
||||||
|
"appDefinitionId",
|
||||||
|
"page",
|
||||||
|
"size"
|
||||||
|
})
|
||||||
|
public class TaskFilterRepresentation {
|
||||||
|
|
||||||
|
@JsonProperty("filterId")
|
||||||
|
private Long filterId;
|
||||||
|
@JsonProperty("filter")
|
||||||
|
private TaskFilter filter;
|
||||||
|
@JsonProperty("appDefinitionId")
|
||||||
|
private Long appDefinitionId;
|
||||||
|
@JsonProperty("page")
|
||||||
|
private Integer page;
|
||||||
|
@JsonProperty("size")
|
||||||
|
private Integer size;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public TaskFilterRepresentation() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getFilterId() {
|
||||||
|
return filterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilterId(Long filterId) {
|
||||||
|
this.filterId = filterId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilterRepresentation withFilterId(Long filterId) {
|
||||||
|
this.filterId = filterId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilter getFilter() {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFilter(TaskFilter filter) {
|
||||||
|
this.filter = filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilterRepresentation withFilter(TaskFilter filter) {
|
||||||
|
this.filter = filter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAppDefinitionId() {
|
||||||
|
return appDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppDefinitionId(Long appDefinitionId) {
|
||||||
|
this.appDefinitionId = appDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilterRepresentation withAppDefinitionId(Long appDefinitionId) {
|
||||||
|
this.appDefinitionId = appDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPage() {
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilterRepresentation withPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSize() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskFilterRepresentation withSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,243 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
"text",
|
||||||
|
"assignment",
|
||||||
|
"taskId",
|
||||||
|
"dueAfter",
|
||||||
|
"dueBefore",
|
||||||
|
"processInstanceId",
|
||||||
|
"processDefinitionId",
|
||||||
|
"appDefinitionId",
|
||||||
|
"includeProcessInstance",
|
||||||
|
"includeProcessVariables",
|
||||||
|
"includeTaskLocalVariables",
|
||||||
|
"page",
|
||||||
|
"size",
|
||||||
|
"sort",
|
||||||
|
"start",
|
||||||
|
"state"
|
||||||
|
})
|
||||||
|
public class TaskQueryRepresentation {
|
||||||
|
|
||||||
|
public enum Sort {
|
||||||
|
@JsonProperty("created-asc")
|
||||||
|
CreatedAsc,
|
||||||
|
@JsonProperty("created-desc")
|
||||||
|
CreatedDesc,
|
||||||
|
@JsonProperty("due-asc")
|
||||||
|
DueAsc,
|
||||||
|
@JsonProperty("due-desc")
|
||||||
|
DueDesc,
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum State {
|
||||||
|
@JsonProperty("all")
|
||||||
|
All,
|
||||||
|
@JsonProperty("completed")
|
||||||
|
Completed,
|
||||||
|
@JsonProperty("active")
|
||||||
|
Active
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonProperty("text")
|
||||||
|
private String text;
|
||||||
|
@JsonProperty("dueBefore")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueBefore;
|
||||||
|
@JsonProperty("dueAfter")
|
||||||
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueAfter;
|
||||||
|
@JsonProperty("taskId")
|
||||||
|
private String taskId;
|
||||||
|
@JsonProperty("processInstanceId")
|
||||||
|
private String processInstanceId;
|
||||||
|
@JsonProperty("processDefinitionId")
|
||||||
|
private String processDefinitionId;
|
||||||
|
@JsonProperty("appDefinitionId")
|
||||||
|
private Long appDefinitionId;
|
||||||
|
@JsonProperty("page")
|
||||||
|
private Integer page;
|
||||||
|
@JsonProperty("size")
|
||||||
|
private Integer size;
|
||||||
|
@JsonProperty("sort")
|
||||||
|
private Sort sort;
|
||||||
|
@JsonProperty("start")
|
||||||
|
private Integer start;
|
||||||
|
@JsonProperty("state")
|
||||||
|
private State state;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No args constructor for use in serialization
|
||||||
|
*/
|
||||||
|
public TaskQueryRepresentation() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getText() {
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setText(String text) {
|
||||||
|
this.text = text;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withText(String text) {
|
||||||
|
this.text = text;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueAfter() {
|
||||||
|
return dueAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueAfter(OffsetDateTime dueAfter) {
|
||||||
|
this.dueAfter = dueAfter;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withDueAfter(OffsetDateTime dueAfter) {
|
||||||
|
this.dueAfter = dueAfter;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public OffsetDateTime getDueBefore() {
|
||||||
|
return dueBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDueBefore(OffsetDateTime dueBefore) {
|
||||||
|
this.dueBefore = dueBefore;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withDueBefore(OffsetDateTime dueBefore) {
|
||||||
|
this.dueBefore = dueBefore;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTaskId() {
|
||||||
|
return taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaskId(String taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withTaskId(String taskId) {
|
||||||
|
this.taskId = taskId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAppDefinitionId() {
|
||||||
|
return appDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAppDefinitionId(Long appDefinitionId) {
|
||||||
|
this.appDefinitionId = appDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withAppDefinitionId(Long appDefinitionId) {
|
||||||
|
this.appDefinitionId = appDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessDefinitionId() {
|
||||||
|
return processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withProcessDefinitionId(String processDefinitionId) {
|
||||||
|
this.processDefinitionId = processDefinitionId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getProcessInstanceId() {
|
||||||
|
return processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withProcessInstanceId(String processInstanceId) {
|
||||||
|
this.processInstanceId = processInstanceId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getPage() {
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withPage(Integer page) {
|
||||||
|
this.page = page;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSize() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withSize(Integer size) {
|
||||||
|
this.size = size;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Sort getSort() {
|
||||||
|
return sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSort(Sort sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withSort(Sort sort) {
|
||||||
|
this.sort = sort;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getStart() {
|
||||||
|
return start;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStart(Integer start) {
|
||||||
|
this.start = start;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withStart(Integer start) {
|
||||||
|
this.start = start;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public State getState() {
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setState(State state) {
|
||||||
|
this.state = state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public TaskQueryRepresentation withState(State state) {
|
||||||
|
this.state = state;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,9 +1,13 @@
|
|||||||
|
|
||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat.Shape;
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
@@ -33,7 +37,8 @@ public class TaskUpdate {
|
|||||||
@JsonProperty("descriptionSet")
|
@JsonProperty("descriptionSet")
|
||||||
private Boolean descriptionSet;
|
private Boolean descriptionSet;
|
||||||
@JsonProperty("dueDate")
|
@JsonProperty("dueDate")
|
||||||
private String dueDate;
|
@JsonFormat(shape = Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXX")
|
||||||
|
private OffsetDateTime dueDate;
|
||||||
@JsonProperty("dueDateSet")
|
@JsonProperty("dueDateSet")
|
||||||
private Boolean dueDateSet;
|
private Boolean dueDateSet;
|
||||||
@JsonProperty("formKey")
|
@JsonProperty("formKey")
|
||||||
@@ -111,15 +116,15 @@ public class TaskUpdate {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDueDate() {
|
public OffsetDateTime getDueDate() {
|
||||||
return dueDate;
|
return dueDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDueDate(String dueDate) {
|
public void setDueDate(OffsetDateTime dueDate) {
|
||||||
this.dueDate = dueDate;
|
this.dueDate = dueDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public TaskUpdate withDueDate(String dueDate) {
|
public TaskUpdate withDueDate(OffsetDateTime dueDate) {
|
||||||
this.dueDate = dueDate;
|
this.dueDate = dueDate;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,42 @@
|
|||||||
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class UserIdentifier {
|
||||||
|
|
||||||
|
@JsonProperty
|
||||||
|
private String userId;
|
||||||
|
@JsonProperty
|
||||||
|
private String email;
|
||||||
|
|
||||||
|
public String getUserId() {
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserId(String userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserIdentifier withUserId(String userId) {
|
||||||
|
this.userId = userId;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmail() {
|
||||||
|
return email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmail(String email) {
|
||||||
|
this.email = email;
|
||||||
|
}
|
||||||
|
|
||||||
|
public UserIdentifier withEmail(String email) {
|
||||||
|
this.email = email;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -1,25 +1,10 @@
|
|||||||
package com.inteligr8.alfresco.activiti.model;
|
package com.inteligr8.alfresco.activiti.model;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.inteligr8.activiti.model.VariableScope;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|
||||||
|
|
||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
@JsonPropertyOrder({
|
public class Variable extends com.inteligr8.activiti.model.Variable {
|
||||||
"name",
|
|
||||||
"type",
|
|
||||||
"value"
|
|
||||||
})
|
|
||||||
public class Variable {
|
|
||||||
|
|
||||||
@JsonProperty("name")
|
|
||||||
private String name;
|
|
||||||
@JsonProperty("scope")
|
|
||||||
private String scope;
|
|
||||||
@JsonProperty("type")
|
|
||||||
private String type;
|
|
||||||
@JsonProperty("value")
|
|
||||||
private Object value;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No args constructor for use in serialization
|
* No args constructor for use in serialization
|
||||||
@@ -27,63 +12,8 @@ public class Variable {
|
|||||||
public Variable() {
|
public Variable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Variable(String name, String scope, String type, Object value) {
|
public Variable(String name, VariableScope scope, String type, Object value) {
|
||||||
this.name = name;
|
super(name, scope, type, value);
|
||||||
this.scope = scope;
|
|
||||||
this.type = type;
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Variable withName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getScope() {
|
|
||||||
return scope;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setScope(String scope) {
|
|
||||||
this.scope = scope;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Variable withScope(String scope) {
|
|
||||||
this.scope = scope;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Variable withType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Object getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setValue(Object value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Variable withValue(Object value) {
|
|
||||||
this.value = value;
|
|
||||||
return this;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user