Package io.serverlessworkflow.api.events
Class EventRef
- java.lang.Object
-
- io.serverlessworkflow.api.events.EventRef
-
- All Implemented Interfaces:
Serializable
public class EventRef extends Object implements Serializable
Event References- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventRef.Invoke
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getContextAttributes()Add additional extension context attributes to the produced eventStringgetData()Expression which selects parts of the states data output to become the data of the produced event.EventRef.InvokegetInvoke()Specifies if the function should be invoked sync or async.StringgetResultEventRef()Reference to the unique name of a 'consumed' event definition (Required)StringgetResultEventTimeout()Maximum amount of time (ISO 8601 format) to wait for the result event.StringgetTriggerEventRef()Reference to the unique name of a 'produced' event definition (Required)voidsetContextAttributes(Map<String,String> contextAttributes)Add additional extension context attributes to the produced eventvoidsetData(String data)Expression which selects parts of the states data output to become the data of the produced event.voidsetInvoke(EventRef.Invoke invoke)Specifies if the function should be invoked sync or async.voidsetResultEventRef(String resultEventRef)Reference to the unique name of a 'consumed' event definition (Required)voidsetResultEventTimeout(String resultEventTimeout)Maximum amount of time (ISO 8601 format) to wait for the result event.voidsetTriggerEventRef(String triggerEventRef)Reference to the unique name of a 'produced' event definition (Required)EventRefwithContextAttributes(Map<String,String> contextAttributes)EventRefwithData(String data)EventRefwithInvoke(EventRef.Invoke invoke)EventRefwithResultEventRef(String resultEventRef)EventRefwithResultEventTimeout(String resultEventTimeout)EventRefwithTriggerEventRef(String triggerEventRef)
-
-
-
Method Detail
-
getTriggerEventRef
public String getTriggerEventRef()
Reference to the unique name of a 'produced' event definition (Required)
-
setTriggerEventRef
public void setTriggerEventRef(String triggerEventRef)
Reference to the unique name of a 'produced' event definition (Required)
-
getResultEventRef
public String getResultEventRef()
Reference to the unique name of a 'consumed' event definition (Required)
-
setResultEventRef
public void setResultEventRef(String resultEventRef)
Reference to the unique name of a 'consumed' event definition (Required)
-
getResultEventTimeout
public String getResultEventTimeout()
Maximum amount of time (ISO 8601 format) to wait for the result event. If not defined it should default to the actionExecutionTimeout
-
setResultEventTimeout
public void setResultEventTimeout(String resultEventTimeout)
Maximum amount of time (ISO 8601 format) to wait for the result event. If not defined it should default to the actionExecutionTimeout
-
getData
public String getData()
Expression which selects parts of the states data output to become the data of the produced event.
-
setData
public void setData(String data)
Expression which selects parts of the states data output to become the data of the produced event.
-
getContextAttributes
public Map<String,String> getContextAttributes()
Add additional extension context attributes to the produced event
-
setContextAttributes
public void setContextAttributes(Map<String,String> contextAttributes)
Add additional extension context attributes to the produced event
-
getInvoke
public EventRef.Invoke getInvoke()
Specifies if the function should be invoked sync or async. Default is sync.
-
setInvoke
public void setInvoke(EventRef.Invoke invoke)
Specifies if the function should be invoked sync or async. Default is sync.
-
withInvoke
public EventRef withInvoke(EventRef.Invoke invoke)
-
-