public class CalculationFlowActionBuilder extends Object implements Help
def builder = actionBuilder
"Command Templates/Calculation Flow Examples"
inside calculation
flow formulas UI.Constructor and Description |
---|
CalculationFlowActionBuilder(Invocations<MethodInvocationRecord> invocations) |
CalculationFlowActionBuilder(Invocations<MethodInvocationRecord> invocations,
CalculationFlowTimeUnit timeUnit,
BigDecimal numberOfTimeUnits,
String startingDate,
Boolean periodic,
CFTraitType traitType) |
Modifier and Type | Method and Description |
---|---|
CFSAction<CalculationFlowActionBuilder> |
addCalculatedFieldSetAction(String cfsLabel)
Adds CFS action to the list of actions that should be executed.
|
DataLoadAction<CalculationFlowActionBuilder> |
addDataLoadAction(String dataLoadLabel,
String dataLoadType,
String target)
Adds data load action to the list of actions that should be executed.
|
ExportAction<CalculationFlowActionBuilder> |
addExportAction(String jobName)
Adds export/archive action to the list of actions that should be
executed.
Snippet: Export flavour: actionBuilder.addExportAction('jobName').doExport('templateName')
Archive flovour:
actionBuilder.addExportAction('jobName').doArchive('templateName')
|
LivePriceGridAction<CalculationFlowActionBuilder> |
addLivePriceGridAction(String lpgLabel)
Adds live price grid action to the list of actions that should be
executed.
|
ManualPricelistAction<CalculationFlowActionBuilder> |
addManualPricelistAction(String manualPricelistUniqueName)
Adds manual pricelist action to the list of actions that should be
executed.
|
ObjRefAction<CalculationFlowActionBuilder> |
addObjRefAction()
Adds object references action to the list of actions that should be executed.
|
PriceAPIAction<CalculationFlowActionBuilder> |
addPriceAPIAction(String jobName)
Adds PriceAPI action to the list of actions that should be executed.
|
PricelistAction<CalculationFlowActionBuilder> |
addPricelistAction(String pricelistName)
Adds pricelist action to the list of actions that should be executed.
|
RebateRecordAction<CalculationFlowActionBuilder> |
addRebateRecordAction(String rrscLabel)
Adds rebate record action to the list of actions that should be executed.
|
SimulationAction<CalculationFlowActionBuilder> |
addSimulationAction(String simulationLabel)
Adds simulation action to the list of actions that should be executed.
|
ArrayList<Action> |
getActions() |
String |
getObjectName() |
ScheduleSettings<CalculationFlowActionBuilder> |
getScheduleSettings()
It's getting you an object that is used to obtain the schedule as seen in the UI + if needed alter it.
|
public CalculationFlowActionBuilder(Invocations<MethodInvocationRecord> invocations, CalculationFlowTimeUnit timeUnit, BigDecimal numberOfTimeUnits, String startingDate, Boolean periodic, CFTraitType traitType)
public CalculationFlowActionBuilder(Invocations<MethodInvocationRecord> invocations)
public CFSAction<CalculationFlowActionBuilder> addCalculatedFieldSetAction(String cfsLabel)
actionBuilder.addCalculatedFieldSetAction('cfsLabel').setCalculate(true)
cfsLabel
- label of the CFS as seen in the CFS header level overview in the UI.public PricelistAction<CalculationFlowActionBuilder> addPricelistAction(String pricelistName)
actionBuilder.addPricelistAction('pricelistName').setCalculate(true)
pricelistName
- name of pricelist as seen in the pricelists header level overview in the UI.public ManualPricelistAction<CalculationFlowActionBuilder> addManualPricelistAction(String manualPricelistUniqueName)
actionBuilder.addManualPricelistAction('manualPricelistLabel').setCalculate(true)
manualPricelistUniqueName
- name of manual pricelist as seen in the manual pricelists
header level overview in the UI.public LivePriceGridAction<CalculationFlowActionBuilder> addLivePriceGridAction(String lpgLabel)
actionBuilder.addLivePriceGridAction('livePriceGridLabel').setCalculate(true)
actionBuilder.addLivePriceGridAction('livePriceGridLabel').restrictToSkus(['sku1', 'sku2', 'sku3']).setCalculate(true)
lpgLabel
- label of LPG as seen in the LPG header level overview in the
UI.public DataLoadAction<CalculationFlowActionBuilder> addDataLoadAction(String dataLoadLabel, String dataLoadType, String target)
actionBuilder.addDataLoadAction('dataLoadLabel', 'dataLoadType', 'target').setCalculate(true)
dataLoadLabel
- label of data load as seen in the data loads overview in the UI.dataLoadType
- type of data load as seen in the data loads overview in the UI.target
- target of data load as seen in the data loads overview in the UI.public PriceAPIAction<CalculationFlowActionBuilder> addPriceAPIAction(String jobName)
actionBuilder.addPriceAPIAction('jobName').setCalculate(true)
jobName
- name of the job as seen in Price API UI.public ExportAction<CalculationFlowActionBuilder> addExportAction(String jobName)
actionBuilder.addExportAction('jobName').doExport('templateName')
actionBuilder.addExportAction('jobName').doArchive('templateName')
jobName
- name of the job as seen in "Admin/Import-Export-Archiving" UI.public SimulationAction<CalculationFlowActionBuilder> addSimulationAction(String simulationLabel)
actionBuilder.addSimulationAction('simulationLabel').setCalculate(true)
simulationLabel
- name of simulation as seen in the simulations header level overview in the UI.public RebateRecordAction<CalculationFlowActionBuilder> addRebateRecordAction(String rrscLabel)
actionBuilder.addRebateRecordAction('rrscLabel').setCalculate(true)
rrscLabel
- rebate record set label as seen in UIpublic ObjRefAction<CalculationFlowActionBuilder> addObjRefAction()
actionBuilder.addObjRefAction().setFilter(filter).setPartition(partition).setTypeCode('typeCode')
public ScheduleSettings<CalculationFlowActionBuilder> getScheduleSettings()
public String getObjectName()
getObjectName
in interface Help
public ArrayList<Action> getActions()
Copyright © 2019. All rights reserved.