Class ManualPricelistAction<T extends Help>
Object
Action
ManualPricelistAction<T>
- All Implemented Interfaces:
Help
public class ManualPricelistAction<T extends Help>
extends Action
This action starts calculation of selected manual pricelist. 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
ConstructorDescriptionManualPricelistAction
(T backLink, Invocations<MethodInvocationRecord> invocations, String manualPricelistName) -
Method Summary
Modifier and TypeMethodDescriptionback()
int
setCalculate
(Boolean calculate) Whether the action is valid and should be triggered or not.setPriority
(int priority) Sets the prority of this job.setSimulationSet
(String simulationSet) Sets simulation set.setValidAfter
(Date validAfter) Informs the runtime to work with MPL that is valid after the specified date.toString()
-
Constructor Details
-
ManualPricelistAction
-
-
Method Details
-
setCalculate
Whether the action is valid and should be triggered or not.- Parameters:
calculate
-- true - calculation of the manual pricelist is started as background process
- false - calculation of the manual pricelist is NOT started at all
-
setValidAfter
Informs the runtime to work with MPL that is valid after the specified date.- Parameters:
validAfter
-null
value can be used to work with current date- Returns:
- this
-
setPriority
Sets the prority of this job.- Parameters:
priority
- Default is 0 (lowest user-definable priority). Max value is 9.- Returns:
- this
-
setSimulationSet
Sets simulation set. Simulation set identifies together with manual pricelist name the pricelist we are looking for.- Parameters:
simulationSet
- simulation set ornull
if there is no such simulation set attached
-
back
-
getObjectName
-
getManualPricelistName
-
getSimulationSet
-
getCalculate
-
getValidAfter
-
getPriority
public int getPriority() -
toString
-