public abstract class ESBEvent extends EventObject
Title: 总线事件
Description: 总线所有事件的基类,继承自java.util.EventObject
Copyright: Copyright (c) 2011
Company: www.justdos.net
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
AFTERWEBINIT
活动初始化完毕,进入inactive状态
|
static int |
BEFORUPDATE
活动开始执行路由操作
|
protected JDSClientService |
client |
protected boolean |
consumed |
protected Map |
context |
protected String |
expression |
protected int |
id |
source| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
consume()
消耗掉当前事件,阻止事件继续在事件处理链中继续传递 如果事件可以被其中一个事件处理中止传递,则需要将此方法公开(public)
|
JDSClientService |
getClientService()
取得发生事件时的WorkflowClientService对象!
|
Map |
getContextMap() |
Object |
getEventContext(String key)
取得事件的上下文参数
|
int |
getID()
取得当前事件的ID
|
Listener |
getListener() |
protected boolean |
isConsumed()
返回事件是否已经被消耗,如果是则不需要继续传递 如果事件可以被其中一个事件处理中止传递,则需要将此方法公开(public)
|
void |
setClientService(JDSClientService client)
设置发生事件时的WorkflowClientService对象!
|
void |
setContextMap(Map context) |
void |
setListener(Listener listener) |
getSource, toStringpublic static final int AFTERWEBINIT
public static final int BEFORUPDATE
protected int id
protected boolean consumed
protected String expression
protected JDSClientService client
protected Map context
public ESBEvent(Object source)
protected boolean isConsumed()
protected void consume()
public int getID()
public void setClientService(JDSClientService client)
client - public JDSClientService getClientService()
public void setContextMap(Map context)
public Map getContextMap()
public Listener getListener()
public void setListener(Listener listener)
Copyright © 2023 onecode. All rights reserved.