Package com.skava.oms.flow.adapter
Class CancelOrderAccountsDelegate
java.lang.Object
com.skava.oms.flow.AbstractOrderSynchronousProcessFlowAdapter
com.skava.oms.flow.adapter.CancelOrderAccountsDelegate
- All Implemented Interfaces:
org.camunda.bpm.engine.delegate.JavaDelegate
@Component
public class CancelOrderAccountsDelegate
extends AbstractOrderSynchronousProcessFlowAdapter
This class CancelOrderAccountsDelegate defines the process flow for account B2B integration from Accounts.
- Since:
- 20-Apr-2020
- Author:
- Infosys Equinox
-
Field Summary
FieldsFields inherited from class com.skava.oms.flow.AbstractOrderSynchronousProcessFlowAdapter
omsEventService, orderService
-
Constructor Summary
ConstructorsConstructorDescriptionCancelOrderAccountsDelegate
(com.skava.core.properties.AuthorizationProperties authProps) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) In UndoPreProcess flow, calculate the order values for the orders and send the event will be executed automatically once this event finished.Methods inherited from class com.skava.oms.flow.AbstractOrderSynchronousProcessFlowAdapter
execute
-
Field Details
-
PAYLOAD
- See Also:
-
-
Constructor Details
-
CancelOrderAccountsDelegate
@Autowired public CancelOrderAccountsDelegate(com.skava.core.properties.AuthorizationProperties authProps)
-
-
Method Details
-
process
public void process(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) In UndoPreProcess flow, calculate the order values for the orders and send the event will be executed automatically once this event finished. This process will create account payload to send account service for locking this account budget.- Specified by:
process
in classAbstractOrderSynchronousProcessFlowAdapter
- Parameters:
execution
- Contains DelegateExecution object for cancel order account budget flow.orderProcessData
- contains OrderProcessData for cancel order account budget flow.order
- Contains Order object cancel order account budget flow.
-