Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.camunda.community.rest.client.dto.VariableInstanceDto Maven / Gradle / Ivy
/*
* Camunda Platform REST API
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.21.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.camunda.community.rest.client.dto;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.HashMap;
import java.util.Map;
import org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.StringJoiner;
/**
* VariableInstanceDto
*/
@JsonPropertyOrder({
VariableInstanceDto.JSON_PROPERTY_VALUE,
VariableInstanceDto.JSON_PROPERTY_TYPE,
VariableInstanceDto.JSON_PROPERTY_VALUE_INFO,
VariableInstanceDto.JSON_PROPERTY_ID,
VariableInstanceDto.JSON_PROPERTY_NAME,
VariableInstanceDto.JSON_PROPERTY_PROCESS_DEFINITION_ID,
VariableInstanceDto.JSON_PROPERTY_PROCESS_INSTANCE_ID,
VariableInstanceDto.JSON_PROPERTY_EXECUTION_ID,
VariableInstanceDto.JSON_PROPERTY_CASE_INSTANCE_ID,
VariableInstanceDto.JSON_PROPERTY_CASE_EXECUTION_ID,
VariableInstanceDto.JSON_PROPERTY_TASK_ID,
VariableInstanceDto.JSON_PROPERTY_BATCH_ID,
VariableInstanceDto.JSON_PROPERTY_ACTIVITY_INSTANCE_ID,
VariableInstanceDto.JSON_PROPERTY_TENANT_ID,
VariableInstanceDto.JSON_PROPERTY_ERROR_MESSAGE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-27T13:50:23.655629899Z[Etc/UTC]")
public class VariableInstanceDto {
public static final String JSON_PROPERTY_VALUE = "value";
private JsonNullable value = JsonNullable.of(null);
public static final String JSON_PROPERTY_TYPE = "type";
private JsonNullable type = JsonNullable.undefined();
public static final String JSON_PROPERTY_VALUE_INFO = "valueInfo";
private Map valueInfo = new HashMap<>();
public static final String JSON_PROPERTY_ID = "id";
private JsonNullable id = JsonNullable.undefined();
public static final String JSON_PROPERTY_NAME = "name";
private JsonNullable name = JsonNullable.undefined();
public static final String JSON_PROPERTY_PROCESS_DEFINITION_ID = "processDefinitionId";
private JsonNullable processDefinitionId = JsonNullable.undefined();
public static final String JSON_PROPERTY_PROCESS_INSTANCE_ID = "processInstanceId";
private JsonNullable processInstanceId = JsonNullable.undefined();
public static final String JSON_PROPERTY_EXECUTION_ID = "executionId";
private JsonNullable executionId = JsonNullable.undefined();
public static final String JSON_PROPERTY_CASE_INSTANCE_ID = "caseInstanceId";
private JsonNullable caseInstanceId = JsonNullable.undefined();
public static final String JSON_PROPERTY_CASE_EXECUTION_ID = "caseExecutionId";
private JsonNullable caseExecutionId = JsonNullable.undefined();
public static final String JSON_PROPERTY_TASK_ID = "taskId";
private JsonNullable taskId = JsonNullable.undefined();
public static final String JSON_PROPERTY_BATCH_ID = "batchId";
private JsonNullable batchId = JsonNullable.undefined();
public static final String JSON_PROPERTY_ACTIVITY_INSTANCE_ID = "activityInstanceId";
private JsonNullable activityInstanceId = JsonNullable.undefined();
public static final String JSON_PROPERTY_TENANT_ID = "tenantId";
private JsonNullable tenantId = JsonNullable.undefined();
public static final String JSON_PROPERTY_ERROR_MESSAGE = "errorMessage";
private JsonNullable errorMessage = JsonNullable.undefined();
public VariableInstanceDto() {
}
public VariableInstanceDto value(Object value) {
this.value = JsonNullable.of(value);
return this;
}
/**
* Can be any value - string, number, boolean, array or object. **Note**: Not every endpoint supports every type.
* @return value
**/
@javax.annotation.Nullable
@JsonIgnore
public Object getValue() {
return value.orElse(null);
}
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getValue_JsonNullable() {
return value;
}
@JsonProperty(JSON_PROPERTY_VALUE)
public void setValue_JsonNullable(JsonNullable value) {
this.value = value;
}
public void setValue(Object value) {
this.value = JsonNullable.of(value);
}
public VariableInstanceDto type(String type) {
this.type = JsonNullable.of(type);
return this;
}
/**
* The value type of the variable.
* @return type
**/
@javax.annotation.Nullable
@JsonIgnore
public String getType() {
return type.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getType_JsonNullable() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
public void setType_JsonNullable(JsonNullable type) {
this.type = type;
}
public void setType(String type) {
this.type = JsonNullable.of(type);
}
public VariableInstanceDto valueInfo(Map valueInfo) {
this.valueInfo = valueInfo;
return this;
}
public VariableInstanceDto putValueInfoItem(String key, Object valueInfoItem) {
if (this.valueInfo == null) {
this.valueInfo = new HashMap<>();
}
this.valueInfo.put(key, valueInfoItem);
return this;
}
/**
* A JSON object containing additional, value-type-dependent properties. For serialized variables of type Object, the following properties can be provided: * `objectTypeName`: A string representation of the object's type name. * `serializationDataFormat`: The serialization format used to store the variable. For serialized variables of type File, the following properties can be provided: * `filename`: The name of the file. This is not the variable name but the name that will be used when downloading the file again. * `mimetype`: The MIME type of the file that is being uploaded. * `encoding`: The encoding of the file that is being uploaded. The following property can be provided for all value types: * `transient`: Indicates whether the variable should be transient or not. See [documentation](https://docs.camunda.org/manual/7.21/user-guide/process-engine/variables#transient-variables) for more informations. (Not applicable for `decision-definition`, ` /process-instance/variables-async`, and `/migration/executeAsync` endpoints)
* @return valueInfo
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VALUE_INFO)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public Map getValueInfo() {
return valueInfo;
}
@JsonProperty(JSON_PROPERTY_VALUE_INFO)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setValueInfo(Map valueInfo) {
this.valueInfo = valueInfo;
}
public VariableInstanceDto id(String id) {
this.id = JsonNullable.of(id);
return this;
}
/**
* The id of the variable instance.
* @return id
**/
@javax.annotation.Nullable
@JsonIgnore
public String getId() {
return id.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getId_JsonNullable() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
public void setId_JsonNullable(JsonNullable id) {
this.id = id;
}
public void setId(String id) {
this.id = JsonNullable.of(id);
}
public VariableInstanceDto name(String name) {
this.name = JsonNullable.of(name);
return this;
}
/**
* The name of the variable instance.
* @return name
**/
@javax.annotation.Nullable
@JsonIgnore
public String getName() {
return name.orElse(null);
}
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getName_JsonNullable() {
return name;
}
@JsonProperty(JSON_PROPERTY_NAME)
public void setName_JsonNullable(JsonNullable name) {
this.name = name;
}
public void setName(String name) {
this.name = JsonNullable.of(name);
}
public VariableInstanceDto processDefinitionId(String processDefinitionId) {
this.processDefinitionId = JsonNullable.of(processDefinitionId);
return this;
}
/**
* The id of the process definition that this variable instance belongs to.
* @return processDefinitionId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getProcessDefinitionId() {
return processDefinitionId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_PROCESS_DEFINITION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getProcessDefinitionId_JsonNullable() {
return processDefinitionId;
}
@JsonProperty(JSON_PROPERTY_PROCESS_DEFINITION_ID)
public void setProcessDefinitionId_JsonNullable(JsonNullable processDefinitionId) {
this.processDefinitionId = processDefinitionId;
}
public void setProcessDefinitionId(String processDefinitionId) {
this.processDefinitionId = JsonNullable.of(processDefinitionId);
}
public VariableInstanceDto processInstanceId(String processInstanceId) {
this.processInstanceId = JsonNullable.of(processInstanceId);
return this;
}
/**
* The id of the process instance that this variable instance belongs to.
* @return processInstanceId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getProcessInstanceId() {
return processInstanceId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_PROCESS_INSTANCE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getProcessInstanceId_JsonNullable() {
return processInstanceId;
}
@JsonProperty(JSON_PROPERTY_PROCESS_INSTANCE_ID)
public void setProcessInstanceId_JsonNullable(JsonNullable processInstanceId) {
this.processInstanceId = processInstanceId;
}
public void setProcessInstanceId(String processInstanceId) {
this.processInstanceId = JsonNullable.of(processInstanceId);
}
public VariableInstanceDto executionId(String executionId) {
this.executionId = JsonNullable.of(executionId);
return this;
}
/**
* The id of the execution that this variable instance belongs to.
* @return executionId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getExecutionId() {
return executionId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_EXECUTION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getExecutionId_JsonNullable() {
return executionId;
}
@JsonProperty(JSON_PROPERTY_EXECUTION_ID)
public void setExecutionId_JsonNullable(JsonNullable executionId) {
this.executionId = executionId;
}
public void setExecutionId(String executionId) {
this.executionId = JsonNullable.of(executionId);
}
public VariableInstanceDto caseInstanceId(String caseInstanceId) {
this.caseInstanceId = JsonNullable.of(caseInstanceId);
return this;
}
/**
* The id of the case instance that this variable instance belongs to.
* @return caseInstanceId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getCaseInstanceId() {
return caseInstanceId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CASE_INSTANCE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getCaseInstanceId_JsonNullable() {
return caseInstanceId;
}
@JsonProperty(JSON_PROPERTY_CASE_INSTANCE_ID)
public void setCaseInstanceId_JsonNullable(JsonNullable caseInstanceId) {
this.caseInstanceId = caseInstanceId;
}
public void setCaseInstanceId(String caseInstanceId) {
this.caseInstanceId = JsonNullable.of(caseInstanceId);
}
public VariableInstanceDto caseExecutionId(String caseExecutionId) {
this.caseExecutionId = JsonNullable.of(caseExecutionId);
return this;
}
/**
* The id of the case execution that this variable instance belongs to.
* @return caseExecutionId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getCaseExecutionId() {
return caseExecutionId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_CASE_EXECUTION_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getCaseExecutionId_JsonNullable() {
return caseExecutionId;
}
@JsonProperty(JSON_PROPERTY_CASE_EXECUTION_ID)
public void setCaseExecutionId_JsonNullable(JsonNullable caseExecutionId) {
this.caseExecutionId = caseExecutionId;
}
public void setCaseExecutionId(String caseExecutionId) {
this.caseExecutionId = JsonNullable.of(caseExecutionId);
}
public VariableInstanceDto taskId(String taskId) {
this.taskId = JsonNullable.of(taskId);
return this;
}
/**
* The id of the task that this variable instance belongs to.
* @return taskId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getTaskId() {
return taskId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TASK_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getTaskId_JsonNullable() {
return taskId;
}
@JsonProperty(JSON_PROPERTY_TASK_ID)
public void setTaskId_JsonNullable(JsonNullable taskId) {
this.taskId = taskId;
}
public void setTaskId(String taskId) {
this.taskId = JsonNullable.of(taskId);
}
public VariableInstanceDto batchId(String batchId) {
this.batchId = JsonNullable.of(batchId);
return this;
}
/**
* The id of the batch that this variable instance belongs to.<
* @return batchId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getBatchId() {
return batchId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_BATCH_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getBatchId_JsonNullable() {
return batchId;
}
@JsonProperty(JSON_PROPERTY_BATCH_ID)
public void setBatchId_JsonNullable(JsonNullable batchId) {
this.batchId = batchId;
}
public void setBatchId(String batchId) {
this.batchId = JsonNullable.of(batchId);
}
public VariableInstanceDto activityInstanceId(String activityInstanceId) {
this.activityInstanceId = JsonNullable.of(activityInstanceId);
return this;
}
/**
* The id of the activity instance that this variable instance belongs to.
* @return activityInstanceId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getActivityInstanceId() {
return activityInstanceId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ACTIVITY_INSTANCE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getActivityInstanceId_JsonNullable() {
return activityInstanceId;
}
@JsonProperty(JSON_PROPERTY_ACTIVITY_INSTANCE_ID)
public void setActivityInstanceId_JsonNullable(JsonNullable activityInstanceId) {
this.activityInstanceId = activityInstanceId;
}
public void setActivityInstanceId(String activityInstanceId) {
this.activityInstanceId = JsonNullable.of(activityInstanceId);
}
public VariableInstanceDto tenantId(String tenantId) {
this.tenantId = JsonNullable.of(tenantId);
return this;
}
/**
* The id of the tenant that this variable instance belongs to.
* @return tenantId
**/
@javax.annotation.Nullable
@JsonIgnore
public String getTenantId() {
return tenantId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_TENANT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getTenantId_JsonNullable() {
return tenantId;
}
@JsonProperty(JSON_PROPERTY_TENANT_ID)
public void setTenantId_JsonNullable(JsonNullable tenantId) {
this.tenantId = tenantId;
}
public void setTenantId(String tenantId) {
this.tenantId = JsonNullable.of(tenantId);
}
public VariableInstanceDto errorMessage(String errorMessage) {
this.errorMessage = JsonNullable.of(errorMessage);
return this;
}
/**
* An error message in case a Java Serialized Object could not be de-serialized.
* @return errorMessage
**/
@javax.annotation.Nullable
@JsonIgnore
public String getErrorMessage() {
return errorMessage.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getErrorMessage_JsonNullable() {
return errorMessage;
}
@JsonProperty(JSON_PROPERTY_ERROR_MESSAGE)
public void setErrorMessage_JsonNullable(JsonNullable errorMessage) {
this.errorMessage = errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = JsonNullable.of(errorMessage);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
VariableInstanceDto variableInstanceDto = (VariableInstanceDto) o;
return equalsNullable(this.value, variableInstanceDto.value) &&
equalsNullable(this.type, variableInstanceDto.type) &&
Objects.equals(this.valueInfo, variableInstanceDto.valueInfo) &&
equalsNullable(this.id, variableInstanceDto.id) &&
equalsNullable(this.name, variableInstanceDto.name) &&
equalsNullable(this.processDefinitionId, variableInstanceDto.processDefinitionId) &&
equalsNullable(this.processInstanceId, variableInstanceDto.processInstanceId) &&
equalsNullable(this.executionId, variableInstanceDto.executionId) &&
equalsNullable(this.caseInstanceId, variableInstanceDto.caseInstanceId) &&
equalsNullable(this.caseExecutionId, variableInstanceDto.caseExecutionId) &&
equalsNullable(this.taskId, variableInstanceDto.taskId) &&
equalsNullable(this.batchId, variableInstanceDto.batchId) &&
equalsNullable(this.activityInstanceId, variableInstanceDto.activityInstanceId) &&
equalsNullable(this.tenantId, variableInstanceDto.tenantId) &&
equalsNullable(this.errorMessage, variableInstanceDto.errorMessage);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(hashCodeNullable(value), hashCodeNullable(type), valueInfo, hashCodeNullable(id), hashCodeNullable(name), hashCodeNullable(processDefinitionId), hashCodeNullable(processInstanceId), hashCodeNullable(executionId), hashCodeNullable(caseInstanceId), hashCodeNullable(caseExecutionId), hashCodeNullable(taskId), hashCodeNullable(batchId), hashCodeNullable(activityInstanceId), hashCodeNullable(tenantId), hashCodeNullable(errorMessage));
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class VariableInstanceDto {\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" valueInfo: ").append(toIndentedString(valueInfo)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" processDefinitionId: ").append(toIndentedString(processDefinitionId)).append("\n");
sb.append(" processInstanceId: ").append(toIndentedString(processInstanceId)).append("\n");
sb.append(" executionId: ").append(toIndentedString(executionId)).append("\n");
sb.append(" caseInstanceId: ").append(toIndentedString(caseInstanceId)).append("\n");
sb.append(" caseExecutionId: ").append(toIndentedString(caseExecutionId)).append("\n");
sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n");
sb.append(" batchId: ").append(toIndentedString(batchId)).append("\n");
sb.append(" activityInstanceId: ").append(toIndentedString(activityInstanceId)).append("\n");
sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n");
sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `value` to the URL query string
if (getValue() != null) {
try {
joiner.add(String.format("%svalue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getValue()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `type` to the URL query string
if (getType() != null) {
try {
joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `valueInfo` to the URL query string
if (getValueInfo() != null) {
for (String _key : getValueInfo().keySet()) {
try {
joiner.add(String.format("%svalueInfo%s%s=%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix),
getValueInfo().get(_key), URLEncoder.encode(String.valueOf(getValueInfo().get(_key)), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
}
// add `id` to the URL query string
if (getId() != null) {
try {
joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `name` to the URL query string
if (getName() != null) {
try {
joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `processDefinitionId` to the URL query string
if (getProcessDefinitionId() != null) {
try {
joiner.add(String.format("%sprocessDefinitionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProcessDefinitionId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `processInstanceId` to the URL query string
if (getProcessInstanceId() != null) {
try {
joiner.add(String.format("%sprocessInstanceId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProcessInstanceId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `executionId` to the URL query string
if (getExecutionId() != null) {
try {
joiner.add(String.format("%sexecutionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExecutionId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `caseInstanceId` to the URL query string
if (getCaseInstanceId() != null) {
try {
joiner.add(String.format("%scaseInstanceId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCaseInstanceId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `caseExecutionId` to the URL query string
if (getCaseExecutionId() != null) {
try {
joiner.add(String.format("%scaseExecutionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCaseExecutionId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `taskId` to the URL query string
if (getTaskId() != null) {
try {
joiner.add(String.format("%staskId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTaskId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `batchId` to the URL query string
if (getBatchId() != null) {
try {
joiner.add(String.format("%sbatchId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBatchId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `activityInstanceId` to the URL query string
if (getActivityInstanceId() != null) {
try {
joiner.add(String.format("%sactivityInstanceId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getActivityInstanceId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `tenantId` to the URL query string
if (getTenantId() != null) {
try {
joiner.add(String.format("%stenantId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTenantId()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
// add `errorMessage` to the URL query string
if (getErrorMessage() != null) {
try {
joiner.add(String.format("%serrorMessage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getErrorMessage()), "UTF-8").replaceAll("\\+", "%20")));
} catch (UnsupportedEncodingException e) {
// Should never happen, UTF-8 is always supported
throw new RuntimeException(e);
}
}
return joiner.toString();
}
}