Class ProduceEvent
- java.lang.Object
-
- io.serverlessworkflow.api.produce.ProduceEvent
-
- All Implemented Interfaces:
Serializable
public class ProduceEvent extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProduceEvent()
No args constructor for use in serializationProduceEvent(String eventRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getData()
JSONPath expression which selects parts of the states data output to become the data of the produced eventString
getEventRef()
References a name of a defined event (Required)void
setData(String data)
JSONPath expression which selects parts of the states data output to become the data of the produced eventvoid
setEventRef(String eventRef)
References a name of a defined event (Required)ProduceEvent
withData(String data)
ProduceEvent
withEventRef(String eventRef)
-
-
-
Constructor Detail
-
ProduceEvent
public ProduceEvent()
No args constructor for use in serialization
-
ProduceEvent
public ProduceEvent(String eventRef)
- Parameters:
eventRef
-
-
-
Method Detail
-
getEventRef
public String getEventRef()
References a name of a defined event (Required)
-
setEventRef
public void setEventRef(String eventRef)
References a name of a defined event (Required)
-
withEventRef
public ProduceEvent withEventRef(String eventRef)
-
getData
public String getData()
JSONPath expression which selects parts of the states data output to become the data of the produced event
-
setData
public void setData(String data)
JSONPath expression which selects parts of the states data output to become the data of the produced event
-
withData
public ProduceEvent withData(String data)
-
-