public class Event extends java.lang.Object implements JSONCacheable, java.io.Serializable
EventTrigger
and EventProducer
extend this class). This class also contains the type code constants for the
different event types.
This class should not be instantiated directly. Use
EventTrigger.createEventTrigger(Long)
or
EventProducer.createEventProducer(Long)
instead.Modifier and Type | Field and Description |
---|---|
static java.lang.Long |
ERROR_EVENT_TRIGGER |
static java.lang.Long |
MESSAGE_EVENT_PRODUCER
Event type code for a send message event.
|
static java.lang.Long |
MESSAGE_EVENT_TRIGGER
Event type code for a receive message event.
|
static java.lang.Long |
RULE_EVENT_TRIGGER
Event type code for a rule event.
|
static java.lang.Integer |
SORT_BY_DESC
Sort by Event Description.
|
static java.lang.Integer |
SORT_BY_ID
Sort by Event ID.
|
static java.lang.Integer |
SORT_BY_NAME
Sort by Event Name.
|
static java.lang.Long |
TERMINATE_EVENT_PRODUCER
Event type code for a terminate event.
|
static java.lang.Long |
TIMER_EVENT_TRIGGER
Event type code for a timer event.
|
hiddenAttributes$TRANSIENT
Constructor and Description |
---|
Event()
Do not use.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDesc()
Gets the description of event.
|
java.util.HashSet |
getHiddenAttributes()
Returns the set of attributes (properties) that should not be included in
the JSON representation of the object.
|
java.lang.Long |
getId()
Gets the ID of event.
|
java.lang.String |
getName()
Gets the name of the event.
|
java.lang.String |
getPersistentId()
Returns the persistent ID of the event.
|
java.lang.Long |
getType()
Gets the type of event.
|
static boolean |
isProducerType(java.lang.Long type_)
Determines whether the type code passed in represents a producer.
|
static boolean |
isTriggerType(java.lang.Long type_)
Determines whether the type code passed in represents a trigger.
|
void |
setDesc(java.lang.String desc_)
Sets the description of event.
|
void |
setId(java.lang.Long id_)
Sets the ID of the event.
|
void |
setName(java.lang.String name_)
Sets the name for the event.
|
void |
setPersistentId(java.lang.String persistentId_)
Sets the persistent ID of the event.
|
void |
setType(java.lang.Long type_)
Sets the type of event.
|
java.lang.String |
toString() |
public static final java.lang.Long MESSAGE_EVENT_TRIGGER
public static final java.lang.Long TIMER_EVENT_TRIGGER
public static final java.lang.Long ERROR_EVENT_TRIGGER
public static final java.lang.Long RULE_EVENT_TRIGGER
public static final java.lang.Long MESSAGE_EVENT_PRODUCER
public static final java.lang.Long TERMINATE_EVENT_PRODUCER
public static final java.lang.Integer SORT_BY_ID
public static final java.lang.Integer SORT_BY_NAME
public static final java.lang.Integer SORT_BY_DESC
public Event()
EventTrigger.createEventTrigger(Long)
or
EventProducer.createEventProducer(Long)
instead.public java.lang.String getPersistentId()
setPersistentId(String)
public void setPersistentId(java.lang.String persistentId_)
persistentId_
- persistent ID to setgetPersistentId()
public java.lang.Long getId()
setId(Long)
public void setId(java.lang.Long id_)
id_
- ID to set to.getId()
public java.lang.String getName()
setName(String)
public void setName(java.lang.String name_)
name_
- new name of event.getName()
public java.lang.Long getType()
MESSAGE_EVENT_TRIGGER
, TIMER_EVENT_TRIGGER
,
RULE_EVENT_TRIGGER
, MESSAGE_EVENT_PRODUCER
, or
TERMINATE_EVENT_PRODUCER
.setType(Long)
public void setType(java.lang.Long type_)
MESSAGE_EVENT_TRIGGER
, TIMER_EVENT_TRIGGER
,
RULE_EVENT_TRIGGER
, MESSAGE_EVENT_PRODUCER
, or
TERMINATE_EVENT_PRODUCER
.type_
- type of event to set.getType()
public java.lang.String getDesc()
setDesc(String)
public void setDesc(java.lang.String desc_)
desc_
- description of event to set.getDesc()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.HashSet getHiddenAttributes()
JSONable
getHiddenAttributes
in interface JSONable
public static boolean isProducerType(java.lang.Long type_)
type_
- the type codepublic static boolean isTriggerType(java.lang.Long type_)
type_
- the type codeCopyright © 2003-2024 Appian Corporation. All Rights Reserved.