Package com.skava.oms.flow.adapter
Class PreProcessAccountsDelegate
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.PreProcessAccountsDelegate
- 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 PreProcessAccountsDelegate
extends AbstractOrderAsynchronousProcessFlowAdapter
This class PreProcessAccountsDelegate 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.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
ConstructorsConstructorDescriptionPreProcessAccountsDelegate
(com.skava.core.properties.AuthorizationProperties authProps) -
Method Summary
Modifier and TypeMethodDescriptionvoid
processEnd
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) This method contains the process.void
processStart
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Process, 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.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:
-
PREPROCESSACCOUNTNULL
- See Also:
-
-
Constructor Details
-
PreProcessAccountsDelegate
@Autowired public PreProcessAccountsDelegate(com.skava.core.properties.AuthorizationProperties authProps)
-
-
Method Details
-
processStart
public void processStart(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Process, 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:
processStart
in classAbstractOrderAsynchronousProcessFlowAdapter
- Parameters:
execution
- Contains DelegateExecution object for preprocess account budget flow.orderProcessData
- contains OrderProcessData for preprocess account budget flow.order
- Contains Order object preprocess account budget flow.
-
processEnd
public void processEnd(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) This method contains the process.- 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
-