Class EventTrigger
java.lang.Object
com.appiancorp.suiteapi.process.events.Event
com.appiancorp.suiteapi.process.events.EventTrigger
- All Implemented Interfaces:
JSONable
,JSONCacheable
,Serializable
- Direct Known Subclasses:
MessageEventTrigger
,RuleEventTrigger
,TimerEventTrigger
Represents an event trigger (an event that waits for something to occur
before continuing flow). Event triggers include
MessageEventTrigger
,
TimerEventTrigger
, and
RuleEventTrigger
. An event
trigger can occur on a start node (in which case it kicks off a new instance
of the process), an intermediate node (in which case it stops flow until
the condition is met), or attached to an activity as an exception trigger
(in which case it is active while the activity is active, and it causes the
exception flow to be taken if/when the condition is met).- See Also:
-
Field Summary
Fields inherited from class com.appiancorp.suiteapi.process.events.Event
ERROR_EVENT_TRIGGER, MESSAGE_EVENT_PRODUCER, MESSAGE_EVENT_TRIGGER, RULE_EVENT_TRIGGER, SORT_BY_DESC, SORT_BY_ID, SORT_BY_NAME, TERMINATE_EVENT_PRODUCER, TIMER_EVENT_TRIGGER
Fields inherited from interface com.appiancorp.suiteapi.common.JSONable
hiddenAttributes$TRANSIENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final EventTrigger
createEventTrigger
(Long type_) Creates a newEventTrigger
object of the type coresponding with the type code passed in.String[]
Gets the output expressions for the event.Rule[]
getRules()
Gets the firing rules for the event.void
setOutputs
(String[] outputs_) Sets the output expressions for the event.void
Sets the firing rules for the event.Methods inherited from class com.appiancorp.suiteapi.process.events.Event
getDesc, getHiddenAttributes, getId, getName, getPersistentId, getType, isProducerType, isTriggerType, setDesc, setId, setName, setPersistentId, setType, toString
-
Constructor Details
-
EventTrigger
public EventTrigger()
-
-
Method Details
-
createEventTrigger
Creates a newEventTrigger
object of the type coresponding with the type code passed in. Type codes can be found in theEvent
class. Possible types includeEvent.MESSAGE_EVENT_TRIGGER
,Event.TIMER_EVENT_TRIGGER
, andEvent.RULE_EVENT_TRIGGER
.- Parameters:
type_
- the type code for the message type to create- Returns:
- the new
EventTrigger
object
-
getOutputs
Gets the output expressions for the event.- Returns:
- array of output expressions
- See Also:
-
setOutputs
Sets the output expressions for the event.- Parameters:
outputs_
- array of output expressions to set- See Also:
-
getRules
Gets the firing rules for the event.- Returns:
- array of rules
- See Also:
-
setRules
Sets the firing rules for the event.- Parameters:
rules_
- array of firing rules to set- See Also:
-