Class PreProcessPromotionDelegate

java.lang.Object
org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
com.skava.oms.flow.AbstractOrderAsynchronousProcessFlowAdapter
com.skava.oms.flow.adapter.PreProcessPromotionDelegate
All Implemented Interfaces:
org.camunda.bpm.engine.impl.core.delegate.CoreActivityBehavior<org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution>, org.camunda.bpm.engine.impl.pvm.delegate.ActivityBehavior, org.camunda.bpm.engine.impl.pvm.delegate.SignallableActivityBehavior

@Component public class PreProcessPromotionDelegate extends AbstractOrderAsynchronousProcessFlowAdapter
The class contains the pre process promotion details fetches the promotion information from the order and checks for it
Since:
01-Nov-2018
Author:
Infosys Equinox
  • Field Details

  • Constructor Details

    • PreProcessPromotionDelegate

      public PreProcessPromotionDelegate()
  • Method Details

    • processStart

      public void processStart(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order)
      Description copied from class: AbstractOrderAsynchronousProcessFlowAdapter
      Every adapter should override this method
      Specified by:
      processStart in class AbstractOrderAsynchronousProcessFlowAdapter
      Parameters:
      execution - - Execution of the BPMN
      orderProcessData - - contains the order data
      order - - order object in current process
    • processEnd

      public void processEnd(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order)
      This method contains the default process for the promotion
      Specified by:
      processEnd in class AbstractOrderAsynchronousProcessFlowAdapter
      Parameters:
      execution - -Execution used in current delegate
      orderProcessData - - contains the data related to the process
      order - - contains the order to be processed
    • checkAndSetShippingLevel

      public static void checkAndSetShippingLevel(ShippingMethodPriceInfo[] shippingMethodPriceInfos, List<Promotion> promotionList)
      This method checks the promotions in the shipping level
      Parameters:
      shippingMethodPriceInfos - - contains the information about the shipping
      promotionList - contains the promotion list
    • checkAndSetPersonalizationLevel

      public static void checkAndSetPersonalizationLevel(Personalization[] personalizations, List<Promotion> promotionList)
      This method checks the promotion in the personalization level
      Parameters:
      personalizations - contains the personalizations
      promotionList - contains the promotion list