Class ManualPricelistAction<ATTACHEDTO extends Help>

  • 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 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 or null if there is no such simulation set attached
      • getObjectName

        public String getObjectName()
      • getManualPricelistName

        public String getManualPricelistName()
      • getSimulationSet

        public String getSimulationSet()
      • getCalculate

        public Boolean getCalculate()
      • getValidAfter

        public Date getValidAfter()
      • getPriority

        public int getPriority()