Package com.skava.oms.flow.adapter
Class PreProcessLoyaltyDelegate
java.lang.Object
com.skava.oms.flow.AbstractOrderSynchronousProcessFlowAdapter
com.skava.oms.flow.adapter.PreProcessLoyaltyDelegate
- All Implemented Interfaces:
org.camunda.bpm.engine.delegate.JavaDelegate
@Component
public class PreProcessLoyaltyDelegate
extends AbstractOrderSynchronousProcessFlowAdapter
This class PreProcessLoyaltyDelegate defines the flow for pre-process loyalty
Delegate for pre-process payment
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.skava.core.properties.AuthorizationProperties
aoth propertiescom.skava.core.auth.AuthTokenHandler
Auth token Handlerstatic final String
The constant EVENT_ORDER_PLACEDstatic final String
The constant EVENT_ORDER_SHIPPEDstatic final String
The constant KEY_IS_SUBSCRIPTION_ORDERstatic final String
The constant KEY_IS_SUBSCRIPTION_ORDERstatic final String
The constant KEY_PV_VALUEstatic final String
The constant KEY_LOYALTY_EVENT_NAMEstatic final String
The constant KEY_LOYALTY_QUEUE_NAMEstatic final String
The constant KEY_PROCESS_IDstatic final String
The constant KEY_PV_VALUEstatic final String
The constant MESSAGE_TYPE_GET_REWARDSstatic final String
static final String
static final String
The constant WILLCALL_LOYALTY_EVENT_PUBLISHED to find if loyalty event is already published for will call ordersstatic final String
The constant ZERO_POINTS_VOLUMEFields inherited from class com.skava.oms.flow.AbstractOrderSynchronousProcessFlowAdapter
omsEventService, orderService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Every adapter should override this methodMethods inherited from class com.skava.oms.flow.AbstractOrderSynchronousProcessFlowAdapter
execute
-
Field Details
-
KEY_PROCESS_ID
The constant KEY_PROCESS_ID- See Also:
-
MESSAGE_TYPE_GET_REWARDS
The constant MESSAGE_TYPE_GET_REWARDS- See Also:
-
KEY_ITEM_PV_VALUE
The constant KEY_PV_VALUE- See Also:
-
KEY_IS_SUBSCRIPTION_ORDER
The constant KEY_IS_SUBSCRIPTION_ORDER- See Also:
-
KEY_LOYALTY_EVENT_NAME
The constant KEY_LOYALTY_EVENT_NAME- See Also:
-
KEY_LOYALTY_QUEUE_NAME
The constant KEY_LOYALTY_QUEUE_NAME- See Also:
-
EVENT_ORDER_PLACED
The constant EVENT_ORDER_PLACED- See Also:
-
EVENT_ORDER_SHIPPED
The constant EVENT_ORDER_SHIPPED- See Also:
-
TOTAL_PRICE_POINT_VALUE_TXT
- See Also:
-
SHIPPING_METHOD_WILL_CALL
- See Also:
-
WILLCALL_LOYALTY_EVENT_PUBLISHED
The constant WILLCALL_LOYALTY_EVENT_PUBLISHED to find if loyalty event is already published for will call orders- See Also:
-
KEY_PV_VALUE
The constant KEY_PV_VALUE- See Also:
-
KEY_IS_SUBSCRIPTION_ITEM
The constant KEY_IS_SUBSCRIPTION_ORDER- See Also:
-
ZERO_POINTS_VOLUME
The constant ZERO_POINTS_VOLUME- See Also:
-
authTokenHandler
@Autowired public com.skava.core.auth.AuthTokenHandler authTokenHandlerAuth token Handler -
authProps
@Autowired public com.skava.core.properties.AuthorizationProperties authPropsaoth properties
-
-
Constructor Details
-
PreProcessLoyaltyDelegate
public PreProcessLoyaltyDelegate()
-
-
Method Details
-
process
public void process(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Description copied from class:AbstractOrderSynchronousProcessFlowAdapter
Every adapter should override this method- Specified by:
process
in classAbstractOrderSynchronousProcessFlowAdapter
- Parameters:
execution
- - Execution of the BPMNorderProcessData
- - contains the order dataorder
- - order object in current process
-