Class LivePriceGridAction<T extends Help>
Object
Action
LivePriceGridAction<T>
- All Implemented Interfaces:
Help
public class LivePriceGridAction<T extends Help>
extends Action
This action starts calculation of selected LPG for all skus or restricted set
of skus. It's a programmatic version of the same action available in UI. As
such it allows user to schedule the action in calculation flow formula.
-
Field Summary
Fields inherited from class Action
jobs
-
Constructor Summary
ConstructorDescriptionLivePriceGridAction
(T backLink, Invocations<MethodInvocationRecord> invocations, String livePriceGridLabel) -
Method Summary
Modifier and TypeMethodDescriptionback()
int
int
ignoreTargetDate
(Boolean ignore) Sets the ignoreTargetDate of this job.restrictToSkus
(List<String> skus) Restricts LPG calculation to a list of specified SKUs.setCalculate
(Boolean calculate) Whether the action is valid and should be triggered or not.setDistributedCalculationThreshold
(int threshold) Sets a job-individual threshold to start a distributed calculation.setNextJobs
(List<ChainedJobInfo> jobs) Defines subsequent follow-on jobssetPriority
(int priority) Sets the prority of this job.toString()
withFormulaParameters
(HashMap<String, Object> formulaParameters) Allows you to add parameters entering to the calculation.
-
Constructor Details
-
LivePriceGridAction
-
-
Method Details
-
setCalculate
Whether the action is valid and should be triggered or not.- Parameters:
calculate
-- true - calculation of the LPG is started as background process
- false - calculation of the LPG is NOT started at all
-
setPriority
Sets the prority of this job.- Parameters:
priority
- Default is 0 (lowest user-definable priority). Max value is 9.- Returns:
-
setDistributedCalculationThreshold
Sets a job-individual threshold to start a distributed calculation. Please note: Any values below 1000 may very well be counter-productive and make the job slower!- Parameters:
threshold
- The number of items that need to be part of the job in order to execute it in distributed mode.- Returns:
-
restrictToSkus
Restricts LPG calculation to a list of specified SKUs. When an empty list or null is passed, all items are calculated.- Parameters:
skus
- list of SKUs to process
-
withFormulaParameters
Allows you to add parameters entering to the calculation.- Parameters:
formulaParameters
- Parameters as key and value pairs.
-
back
-
setNextJobs
Defines subsequent follow-on jobs- Parameters:
jobs
- List of ChainedJobInfo objects- Returns:
-
ignoreTargetDate
Sets the ignoreTargetDate of this job.- Parameters:
ignore
- Default is false (CF job will ignore LPG what is not yet valid).- Returns:
-
getObjectName
-
getLivePriceGridLabel
-
getCalculate
-
getRestrictToSkus
-
getFormulaParameters
-
getPriority
public int getPriority() -
getDistributedCalculationThreshold
public int getDistributedCalculationThreshold() -
getNextJobs
-
getIgnoreTargetDate
-
toString
-