Package org.camunda.bpm.engine.impl.json
Class JsonTaskQueryConverter
- java.lang.Object
-
- org.camunda.bpm.engine.impl.json.JsonObjectConverter<TaskQuery>
-
- org.camunda.bpm.engine.impl.json.JsonTaskQueryConverter
-
public class JsonTaskQueryConverter extends JsonObjectConverter<TaskQuery>
- Author:
- Sebastian Menski
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTIVE
static java.lang.String
ACTIVITY_INSTANCE_ID_IN
static java.lang.String
ASSIGNED
static java.lang.String
ASSIGNEE
static java.lang.String
ASSIGNEE_IN
static java.lang.String
ASSIGNEE_LIKE
static java.lang.String
ASSIGNEE_NOT_IN
static java.lang.String
CANDIDATE_GROUP
static java.lang.String
CANDIDATE_GROUPS
static java.lang.String
CANDIDATE_USER
static java.lang.String
CASE_DEFINITION_ID
static java.lang.String
CASE_DEFINITION_KEY
static java.lang.String
CASE_DEFINITION_NAME
static java.lang.String
CASE_DEFINITION_NAME_LIKE
static java.lang.String
CASE_EXECUTION_ID
static java.lang.String
CASE_INSTANCE_BUSINESS_KEY
static java.lang.String
CASE_INSTANCE_BUSINESS_KEY_LIKE
static java.lang.String
CASE_INSTANCE_ID
static java.lang.String
CASE_INSTANCE_VARIABLES
static java.lang.String
CREATED
static java.lang.String
CREATED_AFTER
static java.lang.String
CREATED_BEFORE
static java.lang.String
DELEGATION_STATE
static java.lang.String
DESCRIPTION
static java.lang.String
DESCRIPTION_LIKE
static java.lang.String
DUE
static java.lang.String
DUE_AFTER
static java.lang.String
DUE_BEFORE
static java.lang.String
DUE_DATE
static java.lang.String
EXCLUDE_SUBTASKS
static java.lang.String
EXECUTION_ID
static java.lang.String
FOLLOW_UP
static java.lang.String
FOLLOW_UP_AFTER
static java.lang.String
FOLLOW_UP_BEFORE
static java.lang.String
FOLLOW_UP_DATE
static java.lang.String
FOLLOW_UP_NULL_ACCEPTED
static java.lang.String
ID
static java.lang.String
INCLUDE_ASSIGNED_TASKS
static java.lang.String
INSTANCE_ID
static java.lang.String
INVOLVED_USER
static java.lang.String
KEY
static java.lang.String
KEY_LIKE
static java.lang.String
KEYS
static java.lang.String
MAX_PRIORITY
static java.lang.String
MIN_PRIORITY
static java.lang.String
NAME
static java.lang.String
NAME_LIKE
static java.lang.String
NAME_NOT_EQUAL
static java.lang.String
NAME_NOT_LIKE
static java.lang.String
OR_QUERIES
static java.lang.String
ORDER_BY
Deprecated.static java.lang.String
ORDERING_PROPERTIES
static java.lang.String
OWNER
static java.lang.String
PARENT_TASK_ID
static java.lang.String
PRIORITY
static java.lang.String
PROCESS_DEFINITION_ID
static java.lang.String
PROCESS_DEFINITION_KEY
static java.lang.String
PROCESS_DEFINITION_KEYS
static java.lang.String
PROCESS_DEFINITION_NAME
static java.lang.String
PROCESS_DEFINITION_NAME_LIKE
static java.lang.String
PROCESS_INSTANCE_BUSINESS_KEY
static java.lang.String
PROCESS_INSTANCE_BUSINESS_KEY_LIKE
static java.lang.String
PROCESS_INSTANCE_BUSINESS_KEYS
static java.lang.String
PROCESS_INSTANCE_ID
static java.lang.String
PROCESS_INSTANCE_ID_IN
static java.lang.String
PROCESS_VARIABLES
static java.lang.String
SUSPENDED
static java.lang.String
TASK_ID
static java.lang.String
TASK_ID_IN
static java.lang.String
TASK_VARIABLES
static java.lang.String
TENANT_IDS
static java.lang.String
UNASSIGNED
protected static JsonTaskQueryVariableValueConverter
variableValueConverter
static java.lang.String
WITH_CANDIDATE_GROUPS
static java.lang.String
WITH_CANDIDATE_USERS
static java.lang.String
WITHOUT_CANDIDATE_GROUPS
static java.lang.String
WITHOUT_CANDIDATE_USERS
static java.lang.String
WITHOUT_DUE_DATE
static java.lang.String
WITHOUT_TENANT_ID
-
Constructor Summary
Constructors Constructor Description JsonTaskQueryConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSuspensionStateField(com.google.gson.JsonObject jsonObject, SuspensionState suspensionState)
protected void
addTenantIdFields(com.google.gson.JsonObject jsonObject, TaskQueryImpl query)
protected void
addVariable(com.google.gson.JsonObject jsonObject, java.lang.String variableType, TaskQueryVariableValue variable)
protected void
addVariables(TaskQueryImpl query, com.google.gson.JsonArray variables, boolean isTaskVariable, boolean isProcessVariable)
protected void
addVariablesFields(com.google.gson.JsonObject jsonObject, java.util.List<TaskQueryVariableValue> variables)
protected java.lang.String[]
getArray(com.google.gson.JsonArray array)
protected java.util.List<java.lang.String>
getList(com.google.gson.JsonArray array)
com.google.gson.JsonObject
toJsonObject(TaskQuery taskQuery)
com.google.gson.JsonObject
toJsonObject(TaskQuery taskQuery, boolean isOrQueryActive)
TaskQuery
toObject(com.google.gson.JsonObject json)
protected TaskQuery
toObject(com.google.gson.JsonObject json, boolean isOrQuery)
-
Methods inherited from class org.camunda.bpm.engine.impl.json.JsonObjectConverter
toJson
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
TASK_ID
public static final java.lang.String TASK_ID
- See Also:
- Constant Field Values
-
TASK_ID_IN
public static final java.lang.String TASK_ID_IN
- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
NAME_NOT_EQUAL
public static final java.lang.String NAME_NOT_EQUAL
- See Also:
- Constant Field Values
-
NAME_LIKE
public static final java.lang.String NAME_LIKE
- See Also:
- Constant Field Values
-
NAME_NOT_LIKE
public static final java.lang.String NAME_NOT_LIKE
- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
- See Also:
- Constant Field Values
-
DESCRIPTION_LIKE
public static final java.lang.String DESCRIPTION_LIKE
- See Also:
- Constant Field Values
-
PRIORITY
public static final java.lang.String PRIORITY
- See Also:
- Constant Field Values
-
MIN_PRIORITY
public static final java.lang.String MIN_PRIORITY
- See Also:
- Constant Field Values
-
MAX_PRIORITY
public static final java.lang.String MAX_PRIORITY
- See Also:
- Constant Field Values
-
ASSIGNEE
public static final java.lang.String ASSIGNEE
- See Also:
- Constant Field Values
-
ASSIGNEE_LIKE
public static final java.lang.String ASSIGNEE_LIKE
- See Also:
- Constant Field Values
-
ASSIGNEE_IN
public static final java.lang.String ASSIGNEE_IN
- See Also:
- Constant Field Values
-
ASSIGNEE_NOT_IN
public static final java.lang.String ASSIGNEE_NOT_IN
- See Also:
- Constant Field Values
-
INVOLVED_USER
public static final java.lang.String INVOLVED_USER
- See Also:
- Constant Field Values
-
OWNER
public static final java.lang.String OWNER
- See Also:
- Constant Field Values
-
UNASSIGNED
public static final java.lang.String UNASSIGNED
- See Also:
- Constant Field Values
-
ASSIGNED
public static final java.lang.String ASSIGNED
- See Also:
- Constant Field Values
-
DELEGATION_STATE
public static final java.lang.String DELEGATION_STATE
- See Also:
- Constant Field Values
-
CANDIDATE_USER
public static final java.lang.String CANDIDATE_USER
- See Also:
- Constant Field Values
-
CANDIDATE_GROUP
public static final java.lang.String CANDIDATE_GROUP
- See Also:
- Constant Field Values
-
CANDIDATE_GROUPS
public static final java.lang.String CANDIDATE_GROUPS
- See Also:
- Constant Field Values
-
WITH_CANDIDATE_GROUPS
public static final java.lang.String WITH_CANDIDATE_GROUPS
- See Also:
- Constant Field Values
-
WITHOUT_CANDIDATE_GROUPS
public static final java.lang.String WITHOUT_CANDIDATE_GROUPS
- See Also:
- Constant Field Values
-
WITH_CANDIDATE_USERS
public static final java.lang.String WITH_CANDIDATE_USERS
- See Also:
- Constant Field Values
-
WITHOUT_CANDIDATE_USERS
public static final java.lang.String WITHOUT_CANDIDATE_USERS
- See Also:
- Constant Field Values
-
INCLUDE_ASSIGNED_TASKS
public static final java.lang.String INCLUDE_ASSIGNED_TASKS
- See Also:
- Constant Field Values
-
INSTANCE_ID
public static final java.lang.String INSTANCE_ID
- See Also:
- Constant Field Values
-
PROCESS_INSTANCE_ID
public static final java.lang.String PROCESS_INSTANCE_ID
- See Also:
- Constant Field Values
-
PROCESS_INSTANCE_ID_IN
public static final java.lang.String PROCESS_INSTANCE_ID_IN
- See Also:
- Constant Field Values
-
EXECUTION_ID
public static final java.lang.String EXECUTION_ID
- See Also:
- Constant Field Values
-
ACTIVITY_INSTANCE_ID_IN
public static final java.lang.String ACTIVITY_INSTANCE_ID_IN
- See Also:
- Constant Field Values
-
CREATED
public static final java.lang.String CREATED
- See Also:
- Constant Field Values
-
CREATED_BEFORE
public static final java.lang.String CREATED_BEFORE
- See Also:
- Constant Field Values
-
CREATED_AFTER
public static final java.lang.String CREATED_AFTER
- See Also:
- Constant Field Values
-
KEY
public static final java.lang.String KEY
- See Also:
- Constant Field Values
-
KEYS
public static final java.lang.String KEYS
- See Also:
- Constant Field Values
-
KEY_LIKE
public static final java.lang.String KEY_LIKE
- See Also:
- Constant Field Values
-
PARENT_TASK_ID
public static final java.lang.String PARENT_TASK_ID
- See Also:
- Constant Field Values
-
PROCESS_DEFINITION_KEY
public static final java.lang.String PROCESS_DEFINITION_KEY
- See Also:
- Constant Field Values
-
PROCESS_DEFINITION_KEYS
public static final java.lang.String PROCESS_DEFINITION_KEYS
- See Also:
- Constant Field Values
-
PROCESS_DEFINITION_ID
public static final java.lang.String PROCESS_DEFINITION_ID
- See Also:
- Constant Field Values
-
PROCESS_DEFINITION_NAME
public static final java.lang.String PROCESS_DEFINITION_NAME
- See Also:
- Constant Field Values
-
PROCESS_DEFINITION_NAME_LIKE
public static final java.lang.String PROCESS_DEFINITION_NAME_LIKE
- See Also:
- Constant Field Values
-
PROCESS_INSTANCE_BUSINESS_KEY
public static final java.lang.String PROCESS_INSTANCE_BUSINESS_KEY
- See Also:
- Constant Field Values
-
PROCESS_INSTANCE_BUSINESS_KEYS
public static final java.lang.String PROCESS_INSTANCE_BUSINESS_KEYS
- See Also:
- Constant Field Values
-
PROCESS_INSTANCE_BUSINESS_KEY_LIKE
public static final java.lang.String PROCESS_INSTANCE_BUSINESS_KEY_LIKE
- See Also:
- Constant Field Values
-
DUE
public static final java.lang.String DUE
- See Also:
- Constant Field Values
-
DUE_DATE
public static final java.lang.String DUE_DATE
- See Also:
- Constant Field Values
-
DUE_BEFORE
public static final java.lang.String DUE_BEFORE
- See Also:
- Constant Field Values
-
DUE_AFTER
public static final java.lang.String DUE_AFTER
- See Also:
- Constant Field Values
-
WITHOUT_DUE_DATE
public static final java.lang.String WITHOUT_DUE_DATE
- See Also:
- Constant Field Values
-
FOLLOW_UP
public static final java.lang.String FOLLOW_UP
- See Also:
- Constant Field Values
-
FOLLOW_UP_DATE
public static final java.lang.String FOLLOW_UP_DATE
- See Also:
- Constant Field Values
-
FOLLOW_UP_BEFORE
public static final java.lang.String FOLLOW_UP_BEFORE
- See Also:
- Constant Field Values
-
FOLLOW_UP_NULL_ACCEPTED
public static final java.lang.String FOLLOW_UP_NULL_ACCEPTED
- See Also:
- Constant Field Values
-
FOLLOW_UP_AFTER
public static final java.lang.String FOLLOW_UP_AFTER
- See Also:
- Constant Field Values
-
EXCLUDE_SUBTASKS
public static final java.lang.String EXCLUDE_SUBTASKS
- See Also:
- Constant Field Values
-
CASE_DEFINITION_KEY
public static final java.lang.String CASE_DEFINITION_KEY
- See Also:
- Constant Field Values
-
CASE_DEFINITION_ID
public static final java.lang.String CASE_DEFINITION_ID
- See Also:
- Constant Field Values
-
CASE_DEFINITION_NAME
public static final java.lang.String CASE_DEFINITION_NAME
- See Also:
- Constant Field Values
-
CASE_DEFINITION_NAME_LIKE
public static final java.lang.String CASE_DEFINITION_NAME_LIKE
- See Also:
- Constant Field Values
-
CASE_INSTANCE_ID
public static final java.lang.String CASE_INSTANCE_ID
- See Also:
- Constant Field Values
-
CASE_INSTANCE_BUSINESS_KEY
public static final java.lang.String CASE_INSTANCE_BUSINESS_KEY
- See Also:
- Constant Field Values
-
CASE_INSTANCE_BUSINESS_KEY_LIKE
public static final java.lang.String CASE_INSTANCE_BUSINESS_KEY_LIKE
- See Also:
- Constant Field Values
-
CASE_EXECUTION_ID
public static final java.lang.String CASE_EXECUTION_ID
- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
- See Also:
- Constant Field Values
-
SUSPENDED
public static final java.lang.String SUSPENDED
- See Also:
- Constant Field Values
-
PROCESS_VARIABLES
public static final java.lang.String PROCESS_VARIABLES
- See Also:
- Constant Field Values
-
TASK_VARIABLES
public static final java.lang.String TASK_VARIABLES
- See Also:
- Constant Field Values
-
CASE_INSTANCE_VARIABLES
public static final java.lang.String CASE_INSTANCE_VARIABLES
- See Also:
- Constant Field Values
-
TENANT_IDS
public static final java.lang.String TENANT_IDS
- See Also:
- Constant Field Values
-
WITHOUT_TENANT_ID
public static final java.lang.String WITHOUT_TENANT_ID
- See Also:
- Constant Field Values
-
ORDERING_PROPERTIES
public static final java.lang.String ORDERING_PROPERTIES
- See Also:
- Constant Field Values
-
OR_QUERIES
public static final java.lang.String OR_QUERIES
- See Also:
- Constant Field Values
-
ORDER_BY
@Deprecated public static final java.lang.String ORDER_BY
Deprecated.Exists for backwards compatibility with 7.2; deprecated since 7.3- See Also:
- Constant Field Values
-
variableValueConverter
protected static JsonTaskQueryVariableValueConverter variableValueConverter
-
-
Method Detail
-
toJsonObject
public com.google.gson.JsonObject toJsonObject(TaskQuery taskQuery)
- Specified by:
toJsonObject
in classJsonObjectConverter<TaskQuery>
-
toJsonObject
public com.google.gson.JsonObject toJsonObject(TaskQuery taskQuery, boolean isOrQueryActive)
-
addSuspensionStateField
protected void addSuspensionStateField(com.google.gson.JsonObject jsonObject, SuspensionState suspensionState)
-
addTenantIdFields
protected void addTenantIdFields(com.google.gson.JsonObject jsonObject, TaskQueryImpl query)
-
addVariablesFields
protected void addVariablesFields(com.google.gson.JsonObject jsonObject, java.util.List<TaskQueryVariableValue> variables)
-
addVariable
protected void addVariable(com.google.gson.JsonObject jsonObject, java.lang.String variableType, TaskQueryVariableValue variable)
-
toObject
public TaskQuery toObject(com.google.gson.JsonObject json)
- Specified by:
toObject
in classJsonObjectConverter<TaskQuery>
-
toObject
protected TaskQuery toObject(com.google.gson.JsonObject json, boolean isOrQuery)
-
getArray
protected java.lang.String[] getArray(com.google.gson.JsonArray array)
-
getList
protected java.util.List<java.lang.String> getList(com.google.gson.JsonArray array)
-
addVariables
protected void addVariables(TaskQueryImpl query, com.google.gson.JsonArray variables, boolean isTaskVariable, boolean isProcessVariable)
-
-