Package com.orchestranetworks.addon.dpra.indicator


package com.orchestranetworks.addon.dpra.indicator

Provides classes and interfaces to perform operations on indicators.

The main class of this package is IndicatorOperations, which performs the operations about indicators including: execution and retrieving execution results.

Sample code to execute an indicator:

  1. Get an instance of IndicatorOperations:

                    final IndicatorOperations indicatorOperations = OperationsFactory.getInstance()
                            .getIndicatorOperations(session);
                    
  2. Execute an indicator and get the result:

                    final IndicatorExecution result = operations.execute(indicatorId);
                    

Sample code to retrieve indicator execution results:

  1. Get an instance of IndicatorOperations:

                    final IndicatorOperations indicatorOperations = OperationsFactory.getInstance()
                            .getIndicatorOperations(session);
                    
  2. Create query parameter:

                    final QueryParam queryParam = new QueryParam();
                    queryParam.setOrderByExecutionDate(Order.DESC);
                    
  3. Get indicator execution results:

                    final List<IndicatorExecution> results = operations.getIndicatorExecutions(indicatorId, queryParam);
                    

Sample code to retrieve the last indicator execution result:

  1. Get an instance of IndicatorOperations:

                    final IndicatorOperations indicatorOperations = OperationsFactory.getInstance()
                            .getIndicatorOperations(session);
                    
  2. Get the last indicator execution result:

                    final IndicatorExecution result = operations.getLastIndicatorExecution(indicatorId);