本文整理匯總了Java中org.activiti.engine.impl.event.CompensationEventHandler類的典型用法代碼示例。如果您正苦於以下問題:Java CompensationEventHandler類的具體用法?Java CompensationEventHandler怎麽用?Java CompensationEventHandler使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CompensationEventHandler類屬於org.activiti.engine.impl.event包,在下文中一共展示了CompensationEventHandler類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: initEventHandlers
import org.activiti.engine.impl.event.CompensationEventHandler; //導入依賴的package包/類
protected void initEventHandlers() {
if (eventHandlers == null) {
eventHandlers = new HashMap<>();
SignalEventHandler signalEventHander = new SignalEventHandler();
eventHandlers.put(signalEventHander.getEventHandlerType(), signalEventHander);
CompensationEventHandler compensationEventHandler = new CompensationEventHandler();
eventHandlers.put(compensationEventHandler.getEventHandlerType(), compensationEventHandler);
MessageEventHandler messageEventHandler = new MessageEventHandler();
eventHandlers.put(messageEventHandler.getEventHandlerType(), messageEventHandler);
}
if (customEventHandlers != null) {
for (EventHandler eventHandler : customEventHandlers) {
eventHandlers.put(eventHandler.getEventHandlerType(), eventHandler);
}
}
}
示例2: initEventHandlers
import org.activiti.engine.impl.event.CompensationEventHandler; //導入依賴的package包/類
protected void initEventHandlers() {
if(eventHandlers == null) {
eventHandlers = new HashMap<String, EventHandler>();
SignalEventHandler signalEventHander = new SignalEventHandler();
eventHandlers.put(signalEventHander.getEventHandlerType(), signalEventHander);
CompensationEventHandler compensationEventHandler = new CompensationEventHandler();
eventHandlers.put(compensationEventHandler.getEventHandlerType(), compensationEventHandler);
}
if(customEventHandlers != null) {
for (EventHandler eventHandler : customEventHandlers) {
eventHandlers.put(eventHandler.getEventHandlerType(), eventHandler);
}
}
}
示例3: initEventHandlers
import org.activiti.engine.impl.event.CompensationEventHandler; //導入依賴的package包/類
protected void initEventHandlers() {
if(eventHandlers == null) {
eventHandlers = new HashMap<String, EventHandler>();
SignalEventHandler signalEventHander = new SignalEventHandler();
eventHandlers.put(signalEventHander.getEventHandlerType(), signalEventHander);
CompensationEventHandler compensationEventHandler = new CompensationEventHandler();
eventHandlers.put(compensationEventHandler.getEventHandlerType(), compensationEventHandler);
MessageEventHandler messageEventHandler = new MessageEventHandler();
eventHandlers.put(messageEventHandler.getEventHandlerType(), messageEventHandler);
}
if(customEventHandlers != null) {
for (EventHandler eventHandler : customEventHandlers) {
eventHandlers.put(eventHandler.getEventHandlerType(), eventHandler);
}
}
}
示例4: ensureCompensateEventSubscriptionsInitialized
import org.activiti.engine.impl.event.CompensationEventHandler; //導入依賴的package包/類
@SuppressWarnings({ "unchecked" })
protected void ensureCompensateEventSubscriptionsInitialized() {
if(compensateEventSubscriptions == null) {
compensateEventSubscriptions = (List)Context.getCommandContext()
.getEventSubscriptionManager()
.findEventSubscriptions(id, CompensationEventHandler.EVENT_HANDLER_TYPE);
}
}
示例5: CompensateEventSubscriptionEntity
import org.activiti.engine.impl.event.CompensationEventHandler; //導入依賴的package包/類
private CompensateEventSubscriptionEntity(ExecutionEntity executionEntity) {
super(executionEntity);
eventType = CompensationEventHandler.EVENT_HANDLER_TYPE;
}
示例6: CompensateEventSubscriptionEntity
import org.activiti.engine.impl.event.CompensationEventHandler; //導入依賴的package包/類
private CompensateEventSubscriptionEntity(ExecutionEntity executionEntity) {
super(executionEntity);
eventType=CompensationEventHandler.EVENT_HANDLER_TYPE;
}