当前页面:
在线文档首页 >
JBoss JBPM 3.0.4 API 英文版文档
Event (jbpm-3.0.4) - JBoss JBPM 3.0.4 API 英文版文档
org.jbpm.graph.def
Class Event
java.lang.Object
org.jbpm.graph.def.Event
- All Implemented Interfaces:
- java.io.Serializable
- public class Event
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EVENTTYPE_TRANSITION
public static final java.lang.String EVENTTYPE_TRANSITION
- See Also:
- Constant Field Values
EVENTTYPE_BEFORE_SIGNAL
public static final java.lang.String EVENTTYPE_BEFORE_SIGNAL
- See Also:
- Constant Field Values
EVENTTYPE_AFTER_SIGNAL
public static final java.lang.String EVENTTYPE_AFTER_SIGNAL
- See Also:
- Constant Field Values
EVENTTYPE_PROCESS_START
public static final java.lang.String EVENTTYPE_PROCESS_START
- See Also:
- Constant Field Values
EVENTTYPE_PROCESS_END
public static final java.lang.String EVENTTYPE_PROCESS_END
- See Also:
- Constant Field Values
EVENTTYPE_NODE_ENTER
public static final java.lang.String EVENTTYPE_NODE_ENTER
- See Also:
- Constant Field Values
EVENTTYPE_NODE_LEAVE
public static final java.lang.String EVENTTYPE_NODE_LEAVE
- See Also:
- Constant Field Values
EVENTTYPE_SUPERSTATE_ENTER
public static final java.lang.String EVENTTYPE_SUPERSTATE_ENTER
- See Also:
- Constant Field Values
EVENTTYPE_SUPERSTATE_LEAVE
public static final java.lang.String EVENTTYPE_SUPERSTATE_LEAVE
- See Also:
- Constant Field Values
EVENTTYPE_SUBPROCESS_CREATED
public static final java.lang.String EVENTTYPE_SUBPROCESS_CREATED
- See Also:
- Constant Field Values
EVENTTYPE_SUBPROCESS_END
public static final java.lang.String EVENTTYPE_SUBPROCESS_END
- See Also:
- Constant Field Values
EVENTTYPE_TASK_CREATE
public static final java.lang.String EVENTTYPE_TASK_CREATE
- See Also:
- Constant Field Values
EVENTTYPE_TASK_ASSIGN
public static final java.lang.String EVENTTYPE_TASK_ASSIGN
- See Also:
- Constant Field Values
EVENTTYPE_TASK_START
public static final java.lang.String EVENTTYPE_TASK_START
- See Also:
- Constant Field Values
EVENTTYPE_TASK_END
public static final java.lang.String EVENTTYPE_TASK_END
- See Also:
- Constant Field Values
EVENTTYPE_TIMER
public static final java.lang.String EVENTTYPE_TIMER
- See Also:
- Constant Field Values
eventType
protected java.lang.String eventType
graphElement
protected GraphElement graphElement
actions
protected java.util.List actions
Event
public Event()
Event
public Event(java.lang.String eventType)
Event
public Event(GraphElement graphElement,
java.lang.String eventType)
getActions
public java.util.List getActions()
- is the list of actions associated to this event.
- Returns:
- an empty list if no actions are associated.
hasActions
public boolean hasActions()
addAction
public Action addAction(Action action)
removeAction
public void removeAction(Action action)
toString
public java.lang.String toString()
- collects static and runtime actions.
private List collectActions(ExecutionContext executionContext) {
List mergedActions = new ArrayList();
// first, add all actions
if (actions!=null) {
mergedActions.addAll(actions);
}
// then add all runtime actions
List runtimeActions = executionContext.getProcessInstance().getRuntimeActions();
if (runtimeActions!=null) {
Iterator iter = runtimeActions.iterator();
while (iter.hasNext()) {
RuntimeAction runtimeAction = (RuntimeAction) iter.next();
if (this==runtimeAction.getEvent()) {
mergedActions.add(runtimeAction.getAction());
}
}
}
return mergedActions;
}
getEventType
public java.lang.String getEventType()
getGraphElement
public GraphElement getGraphElement()
getId
public long getId()
Version : jbpm-3.0.4