Package com.skava.oms.flow.adapter
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
The constant MESSAGE_TYPE_GET_REWARDSprotected OrderHelper
Fields inherited from class com.skava.oms.flow.AbstractOrderAsynchronousProcessFlowAdapter
camunda, EXECUTION_ID, omsEventService, orderService
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
LOG
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionVoucherForFeitDiscountDelegate
(OrderHelper orderHelper, VoucherReverseRedeemDiscountDelegate voucherReverseRedeemDiscountDelegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processEnd
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order returnedOrder) This method executes after the processvoid
processStart
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessingData, Order order) Every adapter should override this methodstatic void
removeRewardMathForVoucher
(Order parentOrder) This method is used to remove the RewardMath from Parent OrderMethods inherited from class com.skava.oms.flow.AbstractOrderAsynchronousProcessFlowAdapter
execute, signal
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, signalCompensationDone
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
Field Details
-
ERROR_PREPROCESS_LOYALTY_PAYLOAD_NULL
- See Also:
-
ERROR_PARSING_PAYMENT
- See Also:
-
MESSAGE_TYPE_REDEEM_TRANSACTION
The constant MESSAGE_TYPE_GET_REWARDS- See Also:
-
orderHelper
-
-
Constructor Details
-
VoucherForFeitDiscountDelegate
public VoucherForFeitDiscountDelegate(OrderHelper orderHelper, VoucherReverseRedeemDiscountDelegate voucherReverseRedeemDiscountDelegate)
-
-
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 classAbstractOrderAsynchronousProcessFlowAdapter
- Parameters:
execution
- - Execution of the BPMNorderProcessingData
- - contains the order dataorder
- - 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 classAbstractOrderAsynchronousProcessFlowAdapter
- Parameters:
delegateExecution
- -Execution used in current delegateorderProcessingData
- - contains the data related to the processorder
- - contains the order to be processed
-
removeRewardMathForVoucher
This method is used to remove the RewardMath from Parent Order- Parameters:
parentOrder
- holds the parent order
-