Package com.skava.oms.flow
Class AbstractOrderNotification
java.lang.Object
com.skava.oms.flow.AbstractOrderNotification
- All Implemented Interfaces:
org.camunda.bpm.engine.delegate.JavaDelegate
- Direct Known Subclasses:
DefaultDeleteNotificationDelegate
,DefaultExternalNotificationDelegate
,DefaultNotificationDelegate
,PostShipmentNotificationDelegate
,WaitingForApprovalNotificationDelegate
@Component
public abstract class AbstractOrderNotification
extends Object
implements org.camunda.bpm.engine.delegate.JavaDelegate
The class AbstractOrderNotification will update and add notification to the order.
This class contains the method update to notification status and add notification to the order.
- Since:
- 30-Jul-2018
- Author:
- Infosys Equinox
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.camunda.bpm.engine.delegate.DelegateExecution execution) process
(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Every adapter should override this methodvoid
triggerEvent
(Order order, Notification notification, Map<String, Object> newOtherproperties) Trigger the notification event to the queue.
-
Field Details
-
NOTIFICATION
- See Also:
-
orderServiceObj
-
-
Constructor Details
-
AbstractOrderNotification
public AbstractOrderNotification()
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceorg.camunda.bpm.engine.delegate.JavaDelegate
- Throws:
Exception
-
process
public abstract Map<String,Object> process(org.camunda.bpm.engine.delegate.DelegateExecution execution, OrderProcessData orderProcessData, Order order) Every adapter should override this method- Parameters:
execution
- - Execution of the BPMNorderProcessData
- - contains the order dataorder
- - order object in current process- Returns:
- notify object
-
triggerEvent
public void triggerEvent(Order order, Notification notification, Map<String, Object> newOtherproperties) Trigger the notification event to the queue.- Parameters:
order
- contains the order feilds infonotification
-newOtherproperties
-
-