Package com.skava.oms.flow.adapter
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkAndSetPersonalizationLevel
(Personalization[] personalizations, List<Promotion> promotionList) This method checks the promotion in the personalization levelstatic void
checkAndSetShippingLevel
(ShippingMethodPriceInfo[] shippingMethodPriceInfos, List<Promotion> promotionList) This method checks the promotions in the shipping levelvoid
processEnd
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) This method contains the default process for the promotionvoid
processStart
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Every adapter should override this methodMethods 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
-
PAYLOADRECEIVEDEVENT
- See Also:
-
PREPROCESSPROMOTIONNULL
- See Also:
-
ERRORPARSINGPROMOTION
- See Also:
-
RESPONSE
- See Also:
-
-
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 classAbstractOrderAsynchronousProcessFlowAdapter
- Parameters:
execution
- - Execution of the BPMNorderProcessData
- - contains the order dataorder
- - 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 classAbstractOrderAsynchronousProcessFlowAdapter
- Parameters:
execution
- -Execution used in current delegateorderProcessData
- - contains the data related to the processorder
- - 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 shippingpromotionList
- 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 personalizationspromotionList
- contains the promotion list
-