Class ManualPricelistAction<ATTACHEDTO extends Help>
- Object
-
- Action
-
- ManualPricelistAction<ATTACHEDTO>
-
- All Implemented Interfaces:
Help
public class ManualPricelistAction<ATTACHEDTO 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.
-
-
Constructor Summary
Constructors Constructor Description ManualPricelistAction(ATTACHEDTO backLink, Invocations<MethodInvocationRecord> invocations, String manualPricelistName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ATTACHEDTO
back()
Boolean
getCalculate()
String
getManualPricelistName()
String
getObjectName()
int
getPriority()
String
getSimulationSet()
Date
getValidAfter()
ManualPricelistAction<ATTACHEDTO>
setCalculate(Boolean calculate)
Whether the action is valid and should be triggered or not.ManualPricelistAction<ATTACHEDTO>
setPriority(int priority)
Sets the prority of this job.ManualPricelistAction<ATTACHEDTO>
setSimulationSet(String simulationSet)
Sets simulation set.ManualPricelistAction<ATTACHEDTO>
setValidAfter(Date validAfter)
Informs the runtime to work with MPL that is valid after the specified date.String
toString()
-
-
-
Constructor Detail
-
ManualPricelistAction
public ManualPricelistAction(ATTACHEDTO backLink, Invocations<MethodInvocationRecord> invocations, String manualPricelistName)
-
-
Method Detail
-
setCalculate
public ManualPricelistAction<ATTACHEDTO> setCalculate(Boolean calculate)
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
public ManualPricelistAction<ATTACHEDTO> setValidAfter(Date validAfter)
Informs the runtime to work with MPL that is valid after the specified date.- Parameters:
validAfter
-value can be used to work with current date
- Returns:
- this
-
setPriority
public ManualPricelistAction<ATTACHEDTO> setPriority(int priority)
Sets the prority of this job.- Parameters:
priority
- Default is 0 (lowest user-definable priority). Max value is 9.- Returns:
- this
-
setSimulationSet
public ManualPricelistAction<ATTACHEDTO> setSimulationSet(String simulationSet)
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
public ATTACHEDTO back()
-
getObjectName
public String getObjectName()
-
getManualPricelistName
public String getManualPricelistName()
-
getSimulationSet
public String getSimulationSet()
-
getCalculate
public Boolean getCalculate()
-
getValidAfter
public Date getValidAfter()
-
getPriority
public int getPriority()
-
-