Interface DataMonitor


  • public interface DataMonitor
    Data monitoring provides access to a data set. These can be the current values of specific data elements or the corresponding value history.
    • Method Detail

      • getCurrentDataValues

        Map<UUID,​InputDataContainer> getCurrentDataValues​(SessionToken session,
                                                                Collection<InstanceNode> instTrees,
                                                                Map<UUID,​Map<Integer,​ProcessConstants.AdeptDataType>> dataElementIds)
        Gets the current values of the designated data elements for the designated instances. The values will be indexed by the log ID of the corresponding instance.
        Make sure that the designated instances and data elements are compatible! That is, the data elements have to be used in the instances and the data elements have to have the same semantic across all instances. Usually use only instances belonging to the same process template. Otherwise this method may return semantical nonsense, e. g. return data elements of different type having the same ID.
        Parameters:
        session - The session which is used to check for access rights on this method and for tracking and logging purpose.
        instTrees - The instances organised as instance trees (the collection contains the root instance nodes) for which to retrieve the current data values.
        dataElementIds - The IDs of the data elements for which to get the current data values mapped to the corresponding data type and indexed by the corresponding template IDs. The data element IDs (Integer) will be used as parameter names in the returned data container.
        Returns:
        The data container providing the values of the designated data elements indexed by the corresponding instance log IDs. Use the data element IDs (not their names!) as parameter names. If an instance has no data values yet, it will not be in the map.
        The caller is responsible for closing the values.