Class TaskQueryResult
- java.lang.Object
-
- com.aquima.interactions.process.dao.impl.TaskQueryResult
-
- All Implemented Interfaces:
ITaskQueryResult
public class TaskQueryResult extends Object implements ITaskQueryResult
-
-
Constructor Summary
Constructors Constructor Description TaskQueryResult(ITaskModel taskModel, ICaseModel caseModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttributeValue(AttributeReference attribute, IValue value)
AttributeReference[]
getAttributes()
this method returns the attribute references that this task model contains.IValue
getAttributeValue(AttributeReference attribute)
this method returns the value of the attribute from the case the task is defined for.ICaseModel
getCaseModel()
This method returns the case of the task.String[]
getCustomFields()
this method returns the custom fields defined for this taskString
getCustomFieldValue(String customField)
this method returns the value of a custom field for the task.ITaskModel
getTaskModel()
This method returns the task model.
-
-
-
Constructor Detail
-
TaskQueryResult
public TaskQueryResult(ITaskModel taskModel, ICaseModel caseModel)
-
-
Method Detail
-
getCaseModel
public ICaseModel getCaseModel()
Description copied from interface:ITaskQueryResult
This method returns the case of the task.- Specified by:
getCaseModel
in interfaceITaskQueryResult
- Returns:
- The model of the case.
-
getTaskModel
public ITaskModel getTaskModel()
Description copied from interface:ITaskQueryResult
This method returns the task model.- Specified by:
getTaskModel
in interfaceITaskQueryResult
- Returns:
- The model of the task.
-
getAttributes
public AttributeReference[] getAttributes()
Description copied from interface:ITaskQueryResult
this method returns the attribute references that this task model contains.- Specified by:
getAttributes
in interfaceITaskQueryResult
- Returns:
- The attribute references that this task model contains.
-
getAttributeValue
public IValue getAttributeValue(AttributeReference attribute)
Description copied from interface:ITaskQueryResult
this method returns the value of the attribute from the case the task is defined for.- Specified by:
getAttributeValue
in interfaceITaskQueryResult
- Parameters:
attribute
- The attribute.- Returns:
- The value of the attribute from the case the task is defined for.
-
addAttributeValue
public void addAttributeValue(AttributeReference attribute, IValue value)
-
getCustomFieldValue
public String getCustomFieldValue(String customField)
Description copied from interface:ITaskQueryResult
this method returns the value of a custom field for the task.- Specified by:
getCustomFieldValue
in interfaceITaskQueryResult
- Parameters:
customField
- The custom field.- Returns:
- The value of a custom field from the task.
-
getCustomFields
public String[] getCustomFields()
Description copied from interface:ITaskQueryResult
this method returns the custom fields defined for this task- Specified by:
getCustomFields
in interfaceITaskQueryResult
- Returns:
- custom field keys
-
-