Package com.skava.oms.flow.adapter
Class AccountBudgetAdjustmentBlockDelegate
java.lang.Object
com.skava.oms.flow.AbstractOrderSynchronousProcessFlowAdapter
com.skava.oms.flow.adapter.AccountBudgetAdjustmentBlockDelegate
- All Implemented Interfaces:
org.camunda.bpm.engine.delegate.JavaDelegate
@Component
public class AccountBudgetAdjustmentBlockDelegate
extends AbstractOrderSynchronousProcessFlowAdapter
This class AccountBudgetAdjustmentBlockDelegate defines the process flow for account B2B integration from Accounts.
- Since:
- 20-Apr-2020
- 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.AbstractOrderSynchronousProcessFlowAdapter
omsEventService, orderService
-
Constructor Summary
ConstructorsConstructorDescriptionAccountBudgetAdjustmentBlockDelegate
(com.skava.core.properties.AuthorizationProperties authProps) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Account Budget Adjustment block, 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
-
PAYLOADRECEIVEDEVENT
- See Also:
-
ACCOUNT_BUDGET_ADJUSTMENT_NULL
- See Also:
-
ERROR_PARSING_ACCOUNT_BUDGET_ADJUSTMENT
- See Also:
-
RESPONSE
- See Also:
-
-
Constructor Details
-
AccountBudgetAdjustmentBlockDelegate
@Autowired public AccountBudgetAdjustmentBlockDelegate(com.skava.core.properties.AuthorizationProperties authProps)
-
-
Method Details
-
process
public void process(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Account Budget Adjustment block, 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 account budget adjustment flow.orderProcessData
- contains OrderProcessData for account budget adjustment flow.order
- Contains Order object account budget adjustment flow.
-