public class Trigger<T extends Trigger> extends Object implements TriggerContext
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
async |
protected Identifier |
definitionId |
protected Identifier |
instanceId |
protected Identifier |
nodeId |
protected FlowInstanceProperties<?,FlowInstanceProperty<?>> |
properties |
protected Boolean |
signaling |
| Constructor and Description |
|---|
Trigger() |
| Modifier and Type | Method and Description |
|---|---|
T |
async(Boolean async) |
T |
definitionId(Enum id) |
T |
definitionId(Identifier definitionId) |
T |
definitionId(String id) |
boolean |
equals(Object o)
TODO: should we include the setProperties into equals?
|
Identifier |
getDefinitionId() |
Identifier |
getInstanceId() |
Identifier |
getNodeId() |
FlowInstanceProperties<?,FlowInstanceProperty<?>> |
getProperties() |
<P> P |
getProperty(String key,
Class<P> type) |
int |
hashCode() |
T |
instanceId(Identifier instanceId) |
Boolean |
isAsync() |
Boolean |
isSignaling() |
T |
nodeId(Identifier nodeId) |
T |
properties(FlowInstanceProperties properties) |
T |
property(Object value) |
T |
property(String key,
Object value) |
void |
setProperties(FlowInstanceProperties properties) |
void |
setProperty(String key,
Object value) |
T |
signaling(Boolean signaling) |
String |
toString() |
protected Identifier definitionId
protected Identifier instanceId
protected Identifier nodeId
protected Boolean async
protected Boolean signaling
protected FlowInstanceProperties<?,FlowInstanceProperty<?>> properties
public Identifier getDefinitionId()
getDefinitionId in interface TriggerContextpublic Identifier getInstanceId()
getInstanceId in interface TriggerContextpublic Identifier getNodeId()
getNodeId in interface TriggerContextpublic T definitionId(Identifier definitionId)
public T instanceId(Identifier instanceId)
public T nodeId(Identifier nodeId)
public T properties(FlowInstanceProperties properties)
public void setProperties(FlowInstanceProperties properties)
setProperties in interface TriggerContextpublic void setProperty(String key, Object value)
setProperty in interface TriggerContextpublic <P> P getProperty(String key, Class<P> type)
getProperty in interface TriggerContextpublic FlowInstanceProperties<?,FlowInstanceProperty<?>> getProperties()
getProperties in interface TriggerContextpublic Boolean isAsync()
isAsync in interface TriggerContextpublic Boolean isSignaling()
isSignaling in interface TriggerContextpublic boolean equals(Object o)
Copyright © 2015. All rights reserved.