public class JsonTaskQueryConverter extends JsonObjectConverter<TaskQuery>
Constructor and Description |
---|
JsonTaskQueryConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addArrayField(JSONObject json,
String name,
String[] array) |
protected void |
addDateField(JSONObject json,
String name,
Date date) |
protected void |
addDefaultField(JSONObject json,
String name,
Object defaultValue,
Object value) |
protected void |
addField(JSONObject json,
String name,
Object value) |
protected void |
addListField(JSONObject json,
String name,
List<String> list) |
protected void |
addVariable(JSONArray array,
TaskQueryVariableValue variable) |
protected void |
addVariable(JSONObject json,
String variableType,
TaskQueryVariableValue variable) |
protected void |
addVariablesFields(JSONObject json,
List<TaskQueryVariableValue> variables) |
protected List<String> |
getList(JSONArray array) |
protected void |
setSortBy(TaskQuery query,
String sortBy) |
JSONObject |
toJsonObject(TaskQuery taskQuery) |
TaskQuery |
toObject(JSONObject json) |
toJson
public static final String ID
public static final String TASK_ID
public static final String NAME
public static final String NAME_LIKE
public static final String DESCRIPTION
public static final String DESCRIPTION_LIKE
public static final String PRIORITY
public static final String MIN_PRIORITY
public static final String MAX_PRIORITY
public static final String ASSIGNEE
public static final String ASSIGNEE_LIKE
public static final String INVOLVED_USER
public static final String OWNER
public static final String UNASSIGNED
public static final String DELEGATION_STATE
public static final String CANDIDATE_USER
public static final String CANDIDATE_GROUP
public static final String CANDIDATE_GROUPS
public static final String INSTANCE_ID
public static final String PROCESS_INSTANCE_ID
public static final String EXECUTION_ID
public static final String ACTIVITY_INSTANCE_ID_IN
public static final String CREATED
public static final String CREATED_BEFORE
public static final String CREATED_AFTER
public static final String KEY
public static final String KEY_LIKE
public static final String PROCESS_DEFINITION_KEY
public static final String PROCESS_DEFINITION_ID
public static final String PROCESS_DEFINITION_NAME
public static final String PROCESS_DEFINITION_NAME_LIKE
public static final String PROCESS_INSTANCE_BUSINESS_KEY
public static final String PROCESS_INSTANCE_BUSINESS_KEY_LIKE
public static final String DUE
public static final String DUE_DATE
public static final String DUE_BEFORE
public static final String DUE_AFTER
public static final String FOLLOW_UP
public static final String FOLLOW_UP_DATE
public static final String FOLLOW_UP_BEFORE
public static final String FOLLOW_UP_NULL_ACCEPTED
public static final String FOLLOW_UP_AFTER
public static final String EXCLUDE_SUBTASKS
public static final String CASE_DEFINITION_KEY
public static final String CASE_DEFINITION_ID
public static final String CASE_DEFINITION_NAME
public static final String CASE_DEFINITION_NAME_LIKE
public static final String CASE_INSTANCE_ID
public static final String CASE_INSTANCE_BUSINESS_KEY
public static final String CASE_INSTANCE_BUSINESS_KEY_LIKE
public static final String CASE_EXECUTION_ID
public static final String ORDER_BY
public static final String ACTIVE
public static final String SUSPENDED
public static final String PROCESS_VARIABLES
public static final String TASK_VARIABLES
public static final String CASE_INSTANCE_VARIABLES
public static final String SORT_BY
public static final String SORT_ORDER
protected static JsonTaskQueryVariableValueConverter variableValueConverter
public JSONObject toJsonObject(TaskQuery taskQuery)
toJsonObject
in class JsonObjectConverter<TaskQuery>
protected void addField(JSONObject json, String name, Object value)
protected void addDefaultField(JSONObject json, String name, Object defaultValue, Object value)
protected void addListField(JSONObject json, String name, List<String> list)
protected void addArrayField(JSONObject json, String name, String[] array)
protected void addDateField(JSONObject json, String name, Date date)
protected void addVariablesFields(JSONObject json, List<TaskQueryVariableValue> variables)
protected void addVariable(JSONObject json, String variableType, TaskQueryVariableValue variable)
protected void addVariable(JSONArray array, TaskQueryVariableValue variable)
public TaskQuery toObject(JSONObject json)
toObject
in class JsonObjectConverter<TaskQuery>
Copyright © 2018. All rights reserved.