org.jbpm.graph.def
Class Event

java.lang.Object
  extended by org.jbpm.graph.def.Event
All Implemented Interfaces:
Serializable

public class Event
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  List actions
           
protected  String eventType
           
static String EVENTTYPE_AFTER_SIGNAL
           
static String EVENTTYPE_BEFORE_SIGNAL
           
static String EVENTTYPE_NODE_ENTER
           
static String EVENTTYPE_NODE_LEAVE
           
static String EVENTTYPE_PROCESS_END
           
static String EVENTTYPE_PROCESS_START
           
static String EVENTTYPE_SUBPROCESS_CREATED
           
static String EVENTTYPE_SUBPROCESS_END
           
static String EVENTTYPE_SUPERSTATE_ENTER
           
static String EVENTTYPE_SUPERSTATE_LEAVE
           
static String EVENTTYPE_TASK_ASSIGN
           
static String EVENTTYPE_TASK_CREATE
           
static String EVENTTYPE_TASK_END
           
static String EVENTTYPE_TASK_START
           
static String EVENTTYPE_TIMER
           
static String EVENTTYPE_TIMER_CREATE
           
static String EVENTTYPE_TRANSITION
           
protected  GraphElement graphElement
           
 
Constructor Summary
Event()
           
Event(GraphElement graphElement, String eventType)
           
Event(String eventType)
           
 
Method Summary
 Action addAction(Action action)
           
 boolean equals(Object o)
           
 List getActions()
          is the list of actions associated to this event.
 String getEventType()
           
 GraphElement getGraphElement()
           
 long getId()
           
 boolean hasActions()
           
 int hashCode()
           
 void removeAction(Action action)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENTTYPE_TRANSITION

public static final String EVENTTYPE_TRANSITION
See Also:
Constant Field Values

EVENTTYPE_BEFORE_SIGNAL

public static final String EVENTTYPE_BEFORE_SIGNAL
See Also:
Constant Field Values

EVENTTYPE_AFTER_SIGNAL

public static final String EVENTTYPE_AFTER_SIGNAL
See Also:
Constant Field Values

EVENTTYPE_PROCESS_START

public static final String EVENTTYPE_PROCESS_START
See Also:
Constant Field Values

EVENTTYPE_PROCESS_END

public static final String EVENTTYPE_PROCESS_END
See Also:
Constant Field Values

EVENTTYPE_NODE_ENTER

public static final String EVENTTYPE_NODE_ENTER
See Also:
Constant Field Values

EVENTTYPE_NODE_LEAVE

public static final String EVENTTYPE_NODE_LEAVE
See Also:
Constant Field Values

EVENTTYPE_SUPERSTATE_ENTER

public static final String EVENTTYPE_SUPERSTATE_ENTER
See Also:
Constant Field Values

EVENTTYPE_SUPERSTATE_LEAVE

public static final String EVENTTYPE_SUPERSTATE_LEAVE
See Also:
Constant Field Values

EVENTTYPE_SUBPROCESS_CREATED

public static final String EVENTTYPE_SUBPROCESS_CREATED
See Also:
Constant Field Values

EVENTTYPE_SUBPROCESS_END

public static final String EVENTTYPE_SUBPROCESS_END
See Also:
Constant Field Values

EVENTTYPE_TASK_CREATE

public static final String EVENTTYPE_TASK_CREATE
See Also:
Constant Field Values

EVENTTYPE_TASK_ASSIGN

public static final String EVENTTYPE_TASK_ASSIGN
See Also:
Constant Field Values

EVENTTYPE_TASK_START

public static final String EVENTTYPE_TASK_START
See Also:
Constant Field Values

EVENTTYPE_TASK_END

public static final String EVENTTYPE_TASK_END
See Also:
Constant Field Values

EVENTTYPE_TIMER_CREATE

public static final String EVENTTYPE_TIMER_CREATE
See Also:
Constant Field Values

EVENTTYPE_TIMER

public static final String EVENTTYPE_TIMER
See Also:
Constant Field Values

eventType

protected String eventType

graphElement

protected GraphElement graphElement

actions

protected List actions
Constructor Detail

Event

public Event()

Event

public Event(String eventType)

Event

public Event(GraphElement graphElement,
             String eventType)
Method Detail

getActions

public 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 String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getEventType

public String getEventType()

getGraphElement

public GraphElement getGraphElement()

getId

public long getId()


Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.