Interface ProcessEventRecordValue
- All Superinterfaces:
JsonSerializable,ProcessInstanceRelated,RecordValue,RecordValueWithVariables
- All Known Implementing Classes:
ImmutableProcessEventRecordValue
The scope here can refer to a process definition (for start events), or to a specific element
instance, e.g. an activity. Note that the scope may be (and usually is) a different element
instance than the one identified by the getTargetElementId().
The target element ID refer to the element which should receive the payload of the event, e.g. the boundary event, or the start event. For example, if the scope is a sub process, then the target element ID could refer to one of its boundary events.
NOTE: this record is optional, and events can be triggered without this record being emitted. It's meant to be used mostly when the scope and/or target element of the event is far removed from the emitter (e.g. error throw end event, escalation), and there is no special purpose entity associated with the emitter (e.g. timer, message).
-
Method Summary
Modifier and TypeMethodDescriptionlonglongMethods inherited from interface io.camunda.zeebe.protocol.record.JsonSerializable
toJsonMethods inherited from interface io.camunda.zeebe.protocol.record.value.ProcessInstanceRelated
getProcessInstanceKeyMethods inherited from interface io.camunda.zeebe.protocol.record.RecordValueWithVariables
getVariables
-
Method Details
-
getScopeKey
long getScopeKey()- Returns:
- the key identifying the event's scope
-
getTargetElementId
String getTargetElementId()- Returns:
- the ID of the element which should react to the event
-
getProcessDefinitionKey
long getProcessDefinitionKey()- Returns:
- the key of the deployed process this instance belongs to.
-