Codota Logo
IncidentRecord.setErrorMessage
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now