Class AnyTask
java.lang.Object
eu.c6.gibraltar.api.common.CObject
eu.c6.gibraltar.api.managers.tasks.AnyTask
- All Implemented Interfaces:
ICObject,IAnyTask,IApiTaskConstants,Serializable,Cloneable
The Class AnyTask used to get task.
- See Also:
-
Field Summary
Fields inherited from interface eu.c6.gibraltar.api.managers.tasks.IApiTaskConstants
ACTION, ATTACHMENT, ATTACHMENT_ID, ATTACHMENT_TYPE, ID, INDEX, LABEL, NEXT_STATE, SIGNOFF_REQUIRED, TRANSITIONS, TYPEFields inherited from interface eu.c6.gibraltar.api.common.ICObject
CHARSET, FIELD_SEPARATOR_DOT, FIELD_SEPARATOR_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAttachment included in this task.booleanList of transitions included in this task.Gets the attachment.getId()Gets the id.Gets the list of transition.getType()Gets the type.voidsetAttachment(AnyTaskAttachment attachment) Sets the attachment.voidSets the id.voidsetTransitions(List<AnyTaskAction> actions) Sets the transitions.voidSets the type.Methods inherited from class eu.c6.gibraltar.api.common.CObject
addIntoList, addValueIntoList, buildPath, clearList, clone, clone, clone, contains, containsField, convertFieldNameToJsonPath, convertJsonPathToFieldName, equals, get, getBoolean, getBoolean, getDate, getDate, getDouble, getDouble, getFieldNames, getFieldNamesFlattenList, getFieldNamesList, getInputStream, getInt, getInt, getList, getListNestedObject, getListNestedObject, getListNestedObject, getListNestedObjectByAttribute, getListNestedObjectByAttribute, getListSize, getListString, getLocalDateTime, getLocalDateTime, getLong, getLong, getNestedObject, getNestedObject, getNestedObject, getNestedObjectNamesList, getOutputStream, getReader, getString, getString, insertIntoList, isBoolean, isDate, isDateList, isDouble, isEmpty, isFieldEmpty, isInt, isJSONValid, isList, isNestedObject, isNestedObjectList, isString, load, load, merge, mergeDeep, parse, remove, removeFromList, removeValueFromList, replaceIntoList, resetField, set, set, set, set, set, set, set, set, set, setList, setNull, textValue, toFlattenMapValues, toJson, toMap, toString, toString
-
Constructor Details
-
AnyTask
public AnyTask()Instantiates a new any task.Once created you must set at least the task identifier.
-
AnyTask
Instantiates a new any task using field values of object parameter.Used fields are :
- Parameters:
object- the object- See Also:
-
AnyTask
public AnyTask(com.fasterxml.jackson.databind.JsonNode jsonNode) Instantiates a new any task using field values of JSON object.Used fields are :
- Parameters:
jsonNode- the JSON object- See Also:
-
-
Method Details
-
getId
Description copied from interface:IAnyTaskGets the id. -
setId
Description copied from interface:IAnyTaskSets the id. -
setType
Description copied from interface:IAnyTaskSets the type. -
getType
Description copied from interface:IAnyTaskGets the type. -
containsTransitions
public boolean containsTransitions()Description copied from interface:IAnyTaskList of transitions included in this task.- Specified by:
containsTransitionsin interfaceIAnyTask- Returns:
- true, if list of transitions is set
-
getTransitions
Description copied from interface:IAnyTaskGets the list of transition.- Specified by:
getTransitionsin interfaceIAnyTask- Returns:
- the transition list
-
setTransitions
Description copied from interface:IAnyTaskSets the transitions.- Specified by:
setTransitionsin interfaceIAnyTask- Parameters:
actions- the new transitions
-
containsAttachment
public boolean containsAttachment()Description copied from interface:IAnyTaskAttachment included in this task.- Specified by:
containsAttachmentin interfaceIAnyTask- Returns:
- true, if an attachment is set
-
setAttachment
Description copied from interface:IAnyTaskSets the attachment.- Specified by:
setAttachmentin interfaceIAnyTask- Parameters:
attachment- the task attachment
-
getAttachment
Description copied from interface:IAnyTaskGets the attachment.- Specified by:
getAttachmentin interfaceIAnyTask- Returns:
- the task attachment
-