Class VoucherForFeitDiscountDelegate

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.VoucherForFeitDiscountDelegate
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 VoucherForFeitDiscountDelegate extends AbstractOrderAsynchronousProcessFlowAdapter
This class contains the delegate to forfeit voucher for Return order or items
Since:
Apr 2024
Author:
Infosys Equinox
  • Field Details

  • Constructor Details

  • Method Details

    • processStart

      public void processStart(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessingData, 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
      orderProcessingData - - contains the order data
      order - - order object in current process
    • processEnd

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

      public static void removeRewardMathForVoucher(Order parentOrder)
      This method is used to remove the RewardMath from Parent Order
      Parameters:
      parentOrder - holds the parent order