Class TaskSummaryQueryMapper

    • Constructor Detail

      • TaskSummaryQueryMapper

        public TaskSummaryQueryMapper()
        Dedicated for ServiceLoader to create instance, use get() method instead
    • Method Detail

      • map

        public List<org.kie.api.task.model.TaskSummary> map​(Object result)
        Description copied from interface: QueryResultMapper
        Based on raw data set returns mapped/transformed data. Usually it will get set of raw data and return list (or collection in general) of custom object like ProcessInstance or UserTaskInstance.
        Specified by:
        map in interface QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>
        Parameters:
        result - raw data set in custom format
        Returns:
        mapped result of raw data set
      • buildInstance

        protected org.kie.api.task.model.TaskSummary buildInstance​(org.dashbuilder.dataset.DataSet dataSetResult,
                                                                   int index)
        Specified by:
        buildInstance in class AbstractQueryMapper<org.kie.api.task.model.TaskSummary>
      • getName

        public String getName()
        Description copied from interface: QueryResultMapper
        Returns unique name of this query result mapper implementation.
        Specified by:
        getName in interface QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>
        Returns:
        name
      • getType

        public Class<?> getType()
        Description copied from interface: QueryResultMapper
        Returns type of the data produced by this mapper. If the type is collection then the returned type should be type of the elements in collection e.g.:
        List<ProcessInstanceDesc> returned type should be ProcessInstanceDesc.class
        Specified by:
        getType in interface QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>
        Returns:
        type
      • forColumnMapping

        public QueryResultMapper<List<org.kie.api.task.model.TaskSummary>> forColumnMapping​(Map<String,​String> columnMapping)
        Description copied from interface: QueryResultMapper
        Returns new instance of the mapper for given column mapping
        Specified by:
        forColumnMapping in interface QueryResultMapper<List<org.kie.api.task.model.TaskSummary>>
        Parameters:
        columnMapping - provides column mapping (name to type) that can be shipped to mapper for improved transformation - can be null (accepted types: string, long, integer, date, double)
        Returns:
        new instance of the mapper configured with column mapping