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
-
Log in to the Pricefx application.
-
Go to Administration > Logics > Groovy Library.
-
Select the
ActIn_Library. -
Select the
ScopeDataUtilselement. -
In the Code Editor locate the following part of the code.
Groovyreturn api.inputBuilderFactory() .createDmQueryBuilder(scopeDataDefinitionManager.SCOPE_DATA_ENTRY_NAME) .setNoRefresh(true) .setValue(scopeDataDefinitionManager.getScopeData()) .buildContextParameter() -
Add the
.withSeriesSourceTypes()method into existing code.Groovyreturn api.inputBuilderFactory() .createDmQueryBuilder(scopeDataDefinitionManager.SCOPE_DATA_ENTRY_NAME) .setNoRefresh(true) .setValue(scopeDataDefinitionManager.getScopeData()) .withSeriesSourceTypes('DMDS','DM','DMM','DMR','DMT','MO') .buildContextParameter() -
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