Package com.orchestranetworks.addon.dqid.controller
Provides classes to execute indicators on-demand, or using triggers.
Indicators can be executed:
- On-demand on a D.E.C through the user interface, or programmatically: 
                                DECIndicatorExecutionContextOnDemand context = new DECIndicatorExecutionContextOnDemand(executionId, environment); IndicatorControllerFactory.getController().executeOnDemand(context);where environmentis an instance of theDECIndicatorExecutionEnvironmentclass, that is:DECIndicatorExecutionEnvironment environment = new DECIndicatorExecutionEnvironment(session, dataset, table);
- On-demand in a workflow through the user interface, or programmatically: 
                                WorkflowIndicatorExecutionContext context = new WorkflowIndicatorExecutionContext(executionId, environment); IndicatorControllerFactory.getController().executeOnDemand(context);where environmentis an instance of theWorkflowIndicatorExecutionEnvironmentclass, that is:WorkflowIndicatorExecutionEnvironment environment = new WorkflowIndicatorExecutionEnvironment(session, repository);
- On-demand using the scheduler API to execute certain indicators: 
                                public class ExecuteIndicatorsTask extends ScheduledTask { public void execute(ScheduledExecutionContext context) throws OperationException, ScheduledTaskInterruption { IndicatorController controller = IndicatorControllerFactory.getController(); Repository repository = context.getRepository();// Get dataspaceAdaptationHome home = repository.lookupHome(HomeKey.forBranchName("Reference"));// Get datasetAdaptation dataset = home.findAdaptationOrNull(AdaptationName.forName("employee"));// Get tableAdaptationTable table = dataset.getTable(Path.parse("/root/Employee"));// Add indicator codesList<PrimaryKey> indicatorsPk = new ArrayList<PrimaryKey>(); indicatorsPk.add(PrimaryKey.parseString("[ON] F-I01")); indicatorsPk.add(PrimaryKey.parseString("[ON] T-I02"));// To execute indicators on a Dataspace// DECIndicatorExecutionEnvironment executionEnvironment = new DECIndicatorExecutionEnvironment(context.getSession(), home);// To execute indicators on a Dataset and TableDECIndicatorExecutionEnvironment executionEnvironment = new DECIndicatorExecutionEnvironment(context.getSession(), dataset, table); DECIndicatorExecutionContextOnDemand executionContextOnDemand = new DECIndicatorExecutionContextOnDemand(UUID.randomUUID().toString(), executionEnvironment); executionContextOnDemand.setIndicatorCodes(indicatorsPk);// Get execution result of all indicatorsIndicatorsExecutionResult indicatorsExecutionResult = controller.executeOnDemand(executionContextOnDemand); if (indicatorsExecutionResult.hasFailed()) {// Do something if at least one indicator has failed} else { } } }
- On-probe on a D.E.C. by a provided, or custom trigger: 
                                DECIndicatorExecutionContextOnProbe context = new DECIndicatorExecutionContextOnProbe(triggerContext, executionId); IndicatorControllerFactory.getController().executeOnProbe(context);where triggerContextis an interface of theTableTriggerExecutionContextInterface. In which,executionIdis an immutable universally unique identifier (UUID) and is generated byUUID.randomUUID().toString().
- 
Interface Summary Interface Description IndicatorController The entry point for indicator execution.
- 
Class Summary Class Description DQIdTrigger A trigger to declare on any tables under the control ofOnProbeindicators.
 If the table has any existing triggers, a call toIndicatorController.executeOnProbe(DECIndicatorExecutionContextOnProbe)must be made.IndicatorControllerFactory The factory class ofIndicatorController.