Enable Data Sources in Agents

Available from version 16.0

This guide shows how to enable the Data Source (DMDS) or other sources to be used as a selectable Source in the Pricefx Agents (specifically Datamart Watchers) when explicitly enabled via Groovy, without changing behavior for the Analytics charts or other accelerators. By default, the Data Source is not available as a Source in the Pricefx Agents.

Procedure

  1. Log in to the Pricefx application.

  2. Go to Administration > Logics > Groovy Library.

  3. Select the ActIn_Library.

  4. Select the ScopeDataUtils element.

  5. In the Code Editor locate the following part of the code.

    Groovy
         return api.inputBuilderFactory()
                .createDmQueryBuilder(scopeDataDefinitionManager.SCOPE_DATA_ENTRY_NAME)
                .setNoRefresh(true)
                .setValue(scopeDataDefinitionManager.getScopeData())
                .buildContextParameter()
    
  6. Add the .withSeriesSourceTypes() method into existing code.

    Groovy
     return api.inputBuilderFactory()
                .createDmQueryBuilder(scopeDataDefinitionManager.SCOPE_DATA_ENTRY_NAME)
                .setNoRefresh(true)
                .setValue(scopeDataDefinitionManager.getScopeData())
                .withSeriesSourceTypes('DMDS','DM','DMM','DMR','DMT','MO')
                .buildContextParameter()
    
  7. Click Save and Close.

Method Options

  • DM – Datamart

  • DMM – DM Model (legacy Price Optimizer)

  • DMDS – Data Source

  • DMR – Rollup

  • DMT – Model Object Table

  • MO – Model Object

After implementing this code change the Data Source will be available to you as a selectable Source in the Definition Step of your Agent.

If this method is not used, the following sources are available by default:

  • DM – Datamart

  • DMM – DM Model (legacy Price Optimizer)

  • DMR – Rollup

  • DMT – Model Object Table

  • MO – Model Object

See Also