Class ImmutableIncidentRecordValue
java.lang.Object
io.camunda.zeebe.protocol.record.value.ImmutableIncidentRecordValue
- All Implemented Interfaces:
JsonSerializable,RecordValue,IncidentRecordValue,ProcessInstanceRelated,TenantOwned
Immutable implementation of
IncidentRecordValue.
Use the builder to create immutable instances:
ImmutableIncidentRecordValue.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableIncidentRecordValue. -
Field Summary
Fields inherited from interface io.camunda.zeebe.protocol.record.value.TenantOwned
DEFAULT_TENANT_IDENTIFIER -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableIncidentRecordValue.static ImmutableIncidentRecordValuecopyOf(IncidentRecordValue instance) Creates an immutable copy of aIncidentRecordValuevalue.booleanThis instance is equal to all instances ofImmutableIncidentRecordValuethat have equal attribute values.longlonglonglongReturns the identifier of the tenant that owns this entity.longinthashCode()Returns a lazily computed hash code from attributes:tenantId,errorType,errorMessage,bpmnProcessId,processDefinitionKey,processInstanceKey,elementId,elementInstanceKey,jobKey,variableScopeKey,elementInstancePath,processDefinitionPath,callingElementPath.toString()Prints the immutable valueIncidentRecordValuewith attribute values.withBpmnProcessId(String value) Copy the current immutable object by setting a value for thebpmnProcessIdattribute.withCallingElementPath(Integer... elements) Copy the current immutable object with elements that replace the content ofcallingElementPath.withCallingElementPath(Iterable<? extends Integer> elements) Copy the current immutable object with elements that replace the content ofcallingElementPath.withElementId(String value) Copy the current immutable object by setting a value for theelementIdattribute.withElementInstanceKey(long value) Copy the current immutable object by setting a value for theelementInstanceKeyattribute.withElementInstancePath(Iterable<? extends List<Long>> elements) Copy the current immutable object with elements that replace the content ofelementInstancePath.withElementInstancePath(List<Long>... elements) Copy the current immutable object with elements that replace the content ofelementInstancePath.withErrorMessage(String value) Copy the current immutable object by setting a value for theerrorMessageattribute.withErrorType(ErrorType value) Copy the current immutable object by setting a value for theerrorTypeattribute.withJobKey(long value) Copy the current immutable object by setting a value for thejobKeyattribute.withProcessDefinitionKey(long value) Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute.withProcessDefinitionPath(Iterable<? extends Long> elements) Copy the current immutable object with elements that replace the content ofprocessDefinitionPath.withProcessDefinitionPath(Long... elements) Copy the current immutable object with elements that replace the content ofprocessDefinitionPath.withProcessInstanceKey(long value) Copy the current immutable object by setting a value for theprocessInstanceKeyattribute.withTenantId(String value) Copy the current immutable object by setting a value for thetenantIdattribute.withVariableScopeKey(long value) Copy the current immutable object by setting a value for thevariableScopeKeyattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.camunda.zeebe.protocol.record.JsonSerializable
toJson
-
Method Details
-
getTenantId
Returns the identifier of the tenant that owns this entity.- Specified by:
getTenantIdin interfaceTenantOwned
-
getErrorType
- Specified by:
getErrorTypein interfaceIncidentRecordValue- Returns:
- the type of error this incident is caused by. Can be
UNKNOWNif the incident record is part of acommand.invalid reference
IncidentIntent#RESOLVE
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceIncidentRecordValue- Returns:
- the description of the error this incident is caused by. Can be empty if the incident
record is part of a
command.
invalid reference
IncidentIntent#RESOLVE
-
getBpmnProcessId
- Specified by:
getBpmnProcessIdin interfaceIncidentRecordValue- Returns:
- the BPMN process id this incident belongs to. Can be empty if the incident record is
part of a
command.
invalid reference
IncidentIntent#RESOLVE
-
getProcessDefinitionKey
public long getProcessDefinitionKey()- Specified by:
getProcessDefinitionKeyin interfaceIncidentRecordValue- Returns:
- the key of the process this incident belongs to. Can be
-1if the incident record is part of acommand.invalid reference
IncidentIntent#RESOLVE
-
getProcessInstanceKey
public long getProcessInstanceKey()- Specified by:
getProcessInstanceKeyin interfaceIncidentRecordValue- Specified by:
getProcessInstanceKeyin interfaceProcessInstanceRelated- Returns:
- the key of the process instance this incident belongs to. Can be
-1if the incident record is part of acommand.invalid reference
IncidentIntent#RESOLVE
-
getElementId
- Specified by:
getElementIdin interfaceIncidentRecordValue- Returns:
- the id of the element this incident belongs to. Can be empty if incident record is part
of a
command.
invalid reference
IncidentIntent#RESOLVE
-
getElementInstanceKey
public long getElementInstanceKey()- Specified by:
getElementInstanceKeyin interfaceIncidentRecordValue- Returns:
- the key of the element instance this incident belongs to. Can be
-1if the incident record is part of acommand.invalid reference
IncidentIntent#RESOLVE
-
getJobKey
public long getJobKey()- Specified by:
getJobKeyin interfaceIncidentRecordValue- Returns:
- the key of the job this incident belongs to. Can be
-1if the incident belongs to no job or the incident record is part of acommand.invalid reference
IncidentIntent#RESOLVE
-
getVariableScopeKey
public long getVariableScopeKey()- Specified by:
getVariableScopeKeyin interfaceIncidentRecordValue- Returns:
- the key of the variable scope on which the variables need to be updated. Can be
-1if the incident record is part of acommand.invalid reference
IncidentIntent#RESOLVE
-
getElementInstancePath
- Specified by:
getElementInstancePathin interfaceIncidentRecordValue- Returns:
- tree path information about all element instances in the call hierarchy leading to an incident. It contains an entry per process instance in the hierarchy of the incident, each contains all the instance keys of all the elements in the call hierarchy within this process instance
-
getProcessDefinitionPath
- Specified by:
getProcessDefinitionPathin interfaceIncidentRecordValue- Returns:
- tree path information for all process definitions in the hierarchy of the incident. Each entry is a process definition key for the corresponding process instance
-
getCallingElementPath
- Specified by:
getCallingElementPathin interfaceIncidentRecordValue- Returns:
- tree path information about call activities in the hierarchy of the incident. Each entry is a reference to the call activity in BPMN model containing an incident.
-
withTenantId
Copy the current immutable object by setting a value for thetenantIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for tenantId (can benull)- Returns:
- A modified copy of the
thisobject
-
withErrorType
Copy the current immutable object by setting a value for theerrorTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for errorType (can benull)- Returns:
- A modified copy of the
thisobject
-
withErrorMessage
Copy the current immutable object by setting a value for theerrorMessageattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for errorMessage (can benull)- Returns:
- A modified copy of the
thisobject
-
withBpmnProcessId
Copy the current immutable object by setting a value for thebpmnProcessIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bpmnProcessId (can benull)- Returns:
- A modified copy of the
thisobject
-
withProcessDefinitionKey
Copy the current immutable object by setting a value for theprocessDefinitionKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processDefinitionKey- Returns:
- A modified copy of the
thisobject
-
withProcessInstanceKey
Copy the current immutable object by setting a value for theprocessInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for processInstanceKey- Returns:
- A modified copy of the
thisobject
-
withElementId
Copy the current immutable object by setting a value for theelementIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementId (can benull)- Returns:
- A modified copy of the
thisobject
-
withElementInstanceKey
Copy the current immutable object by setting a value for theelementInstanceKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for elementInstanceKey- Returns:
- A modified copy of the
thisobject
-
withJobKey
Copy the current immutable object by setting a value for thejobKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for jobKey- Returns:
- A modified copy of the
thisobject
-
withVariableScopeKey
Copy the current immutable object by setting a value for thevariableScopeKeyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for variableScopeKey- Returns:
- A modified copy of the
thisobject
-
withElementInstancePath
@SafeVarargs public final ImmutableIncidentRecordValue withElementInstancePath(List<Long>... elements) Copy the current immutable object with elements that replace the content ofelementInstancePath.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withElementInstancePath
public final ImmutableIncidentRecordValue withElementInstancePath(Iterable<? extends List<Long>> elements) Copy the current immutable object with elements that replace the content ofelementInstancePath. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of elementInstancePath elements to set- Returns:
- A modified copy of
thisobject
-
withProcessDefinitionPath
Copy the current immutable object with elements that replace the content ofprocessDefinitionPath.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withProcessDefinitionPath
public final ImmutableIncidentRecordValue withProcessDefinitionPath(Iterable<? extends Long> elements) Copy the current immutable object with elements that replace the content ofprocessDefinitionPath. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of processDefinitionPath elements to set- Returns:
- A modified copy of
thisobject
-
withCallingElementPath
Copy the current immutable object with elements that replace the content ofcallingElementPath.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCallingElementPath
public final ImmutableIncidentRecordValue withCallingElementPath(Iterable<? extends Integer> elements) Copy the current immutable object with elements that replace the content ofcallingElementPath. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of callingElementPath elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableIncidentRecordValuethat have equal attribute values. -
hashCode
public int hashCode()Returns a lazily computed hash code from attributes:tenantId,errorType,errorMessage,bpmnProcessId,processDefinitionKey,processInstanceKey,elementId,elementInstanceKey,jobKey,variableScopeKey,elementInstancePath,processDefinitionPath,callingElementPath. -
toString
Prints the immutable valueIncidentRecordValuewith attribute values. -
copyOf
Creates an immutable copy of aIncidentRecordValuevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable IncidentRecordValue instance
-
builder
Creates a builder forImmutableIncidentRecordValue.ImmutableIncidentRecordValue.builder() .withTenantId(String | null) // nullabletenantId.withErrorType(io.camunda.zeebe.protocol.record.value.ErrorType | null) // nullableerrorType.withErrorMessage(String | null) // nullableerrorMessage.withBpmnProcessId(String | null) // nullablebpmnProcessId.withProcessDefinitionKey(long) // optionalprocessDefinitionKey.withProcessInstanceKey(long) // optionalprocessInstanceKey.withElementId(String | null) // nullableelementId.withElementInstanceKey(long) // optionalelementInstanceKey.withJobKey(long) // optionaljobKey.withVariableScopeKey(long) // optionalvariableScopeKey.addElementInstancePath|addAllElementInstancePath(List<Long>) //elementInstancePathelements .addProcessDefinitionPath|addAllProcessDefinitionPath(Long) //processDefinitionPathelements .addCallingElementPath|addAllCallingElementPath(Integer) //callingElementPathelements .build();- Returns:
- A new ImmutableIncidentRecordValue builder
-