Tabnine Logo
IncidentRecord.setErrorMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
setErrorMessage
method
in
io.zeebe.protocol.impl.record.value.incident.IncidentRecord

Best Java code snippets using io.zeebe.protocol.impl.record.value.incident.IncidentRecord.setErrorMessage (Showing top 10 results out of 315)

origin: zeebe-io/zeebe

public IncidentRecord createJobIncident() {
 final IncidentRecord expectedRecord = new IncidentRecord();
 expectedRecord.setJobKey(1234);
 expectedRecord.setErrorMessage("Error because of error");
 expectedRecord.setErrorType(ErrorType.EXTRACT_VALUE_ERROR);
 return expectedRecord;
}
origin: zeebe-io/zeebe

public void raiseIncident(ErrorType errorType, String errorMessage) {
 incidentCommand.reset();
 incidentCommand
   .initFromWorkflowInstanceFailure(record.getKey(), record.getValue())
   .setErrorType(errorType)
   .setErrorMessage(errorMessage);
 eventOutput.storeFailedRecord(record);
 commandWriter.appendNewCommand(IncidentIntent.CREATE, incidentCommand);
}
origin: io.zeebe/zeebe-broker-core

public IncidentRecord createJobIncident() {
 final IncidentRecord expectedRecord = new IncidentRecord();
 expectedRecord.setJobKey(1234);
 expectedRecord.setErrorMessage("Error because of error");
 expectedRecord.setErrorType(ErrorType.EXTRACT_VALUE_ERROR);
 return expectedRecord;
}
origin: io.zeebe/zeebe-broker-core

public void raiseIncident(ErrorType errorType, long variableScopeKey, String errorMessage) {
 incidentCommand.reset();
 incidentCommand
   .initFromWorkflowInstanceFailure(record.getKey(), record.getValue())
   .setErrorType(errorType)
   .setErrorMessage(errorMessage)
   .setVariableScopeKey(variableScopeKey);
 eventOutput.storeFailedRecord(record);
 commandWriter.appendNewCommand(IncidentIntent.CREATE, incidentCommand);
}
origin: zeebe-io/zeebe

public IncidentRecord createWorkflowInstanceIncident() {
 final IncidentRecord expectedRecord = new IncidentRecord();
 expectedRecord.setElementInstanceKey(1234);
 expectedRecord.setBpmnProcessId(wrapString("process"));
 expectedRecord.setElementId(wrapString("process"));
 expectedRecord.setWorkflowInstanceKey(4321);
 expectedRecord.setErrorMessage("Error because of error");
 expectedRecord.setErrorType(ErrorType.EXTRACT_VALUE_ERROR);
 return expectedRecord;
}
origin: io.zeebe/zeebe-broker-core

public IncidentRecord createWorkflowInstanceIncident() {
 final IncidentRecord expectedRecord = new IncidentRecord();
 expectedRecord.setElementInstanceKey(1234);
 expectedRecord.setBpmnProcessId(wrapString("process"));
 expectedRecord.setElementId(wrapString("process"));
 expectedRecord.setWorkflowInstanceKey(4321);
 expectedRecord.setErrorMessage("Error because of error");
 expectedRecord.setErrorType(ErrorType.EXTRACT_VALUE_ERROR);
 return expectedRecord;
}
origin: zeebe-io/zeebe

 @Override
 public void processRecord(
   TypedRecord<JobRecord> event,
   TypedResponseWriter responseWriter,
   TypedStreamWriter streamWriter) {
  final JobRecord value = event.getValue();

  if (value.getRetries() <= 0) {
   final JobHeaders jobHeaders = value.getHeaders();

   final DirectBuffer jobErrorMessage = value.getErrorMessage();
   DirectBuffer incidentErrorMessage = DEFAULT_ERROR_MESSAGE;
   if (jobErrorMessage.capacity() > 0) {
    incidentErrorMessage = jobErrorMessage;
   }

   incidentEvent.reset();
   incidentEvent
     .setErrorType(ErrorType.JOB_NO_RETRIES)
     .setErrorMessage(incidentErrorMessage)
     .setBpmnProcessId(jobHeaders.getBpmnProcessId())
     .setWorkflowInstanceKey(jobHeaders.getWorkflowInstanceKey())
     .setElementId(jobHeaders.getElementId())
     .setElementInstanceKey(jobHeaders.getElementInstanceKey())
     .setJobKey(event.getKey());

   streamWriter.appendNewCommand(IncidentIntent.CREATE, incidentEvent);
  }
 }
}
origin: io.zeebe/zeebe-broker-core

incidentEvent
  .setErrorType(ErrorType.JOB_NO_RETRIES)
  .setErrorMessage(incidentErrorMessage)
  .setBpmnProcessId(jobHeaders.getBpmnProcessId())
  .setWorkflowInstanceKey(jobHeaders.getWorkflowInstanceKey())
origin: zeebe-io/zeebe

.setElementId(wrapString(elementId))
.setBpmnProcessId(wrapString(bpmnProcessId))
.setErrorMessage(errorMessage)
.setErrorType(errorType)
.setJobKey(jobKey);
origin: io.zeebe/zeebe-broker-core

.setElementId(wrapString(elementId))
.setBpmnProcessId(wrapString(bpmnProcessId))
.setErrorMessage(errorMessage)
.setErrorType(errorType)
.setJobKey(jobKey)
io.zeebe.protocol.impl.record.value.incidentIncidentRecordsetErrorMessage

Popular methods of IncidentRecord

  • <init>
  • setBpmnProcessId
  • setElementId
  • setElementInstanceKey
  • setWorkflowInstanceKey
  • getBpmnProcessId
  • getElementId
  • getElementInstanceKey
  • getErrorMessage
  • getErrorType
  • getJobKey
  • setErrorType
  • getJobKey,
  • setErrorType,
  • setJobKey,
  • setVariableScopeKey,
  • declareProperty,
  • getVariableScopeKey,
  • getWorkflowInstanceKey,
  • initFromWorkflowInstanceFailure,
  • reset

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JButton (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now