Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jbiblio committed Apr 26, 2024
1 parent 2149b59 commit 13dfd3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class JobProtobufImporter {
public JobProtobufImporter(JobRepository jobRepository, MeterRegistry meterRegistry) {
this.jobRepository = jobRepository;

counter = Counter.builder("zeebemonitor_importer_job").description("number of processed jobs").register(meterRegistry);
this.counter = Counter.builder("zeebemonitor_importer_job").description("number of processed jobs").register(meterRegistry);
}

public void importJob(final Schema.JobRecord record) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ private void addOrUpdateProcessInstance(final Schema.ProcessInstanceRecord recor
entity.setStart(timestamp);
processInstanceRepository.save(entity);

notificationService.sendCreatedProcessInstance(record.getProcessInstanceKey(), record.getProcessDefinitionKey());
notificationService.sendCreatedProcessInstance(
record.getProcessInstanceKey(), record.getProcessDefinitionKey());

instanceActivatedCounter.increment();

Expand All @@ -101,7 +102,8 @@ private void addOrUpdateProcessInstance(final Schema.ProcessInstanceRecord recor
entity.setEnd(timestamp);
processInstanceRepository.save(entity);

notificationService.sendEndedProcessInstance(record.getProcessInstanceKey(), record.getProcessDefinitionKey());
notificationService.sendEndedProcessInstance(
record.getProcessInstanceKey(), record.getProcessDefinitionKey());

instanceCompletedCounter.increment();

Expand All @@ -110,7 +112,8 @@ private void addOrUpdateProcessInstance(final Schema.ProcessInstanceRecord recor
entity.setEnd(timestamp);
processInstanceRepository.save(entity);

notificationService.sendEndedProcessInstance(record.getProcessInstanceKey(), record.getProcessDefinitionKey());
notificationService.sendEndedProcessInstance(
record.getProcessInstanceKey(), record.getProcessDefinitionKey());

instanceTerminatedCounter.increment();
}
Expand All @@ -130,7 +133,8 @@ private void addElementInstance(final Schema.ProcessInstanceRecord record) {
entity.setProcessDefinitionKey(record.getProcessDefinitionKey());
entity.setBpmnElementType(record.getBpmnElementType());
elementInstanceRepository.save(entity);
notificationService.sendUpdatedProcessInstance(record.getProcessInstanceKey(), record.getProcessDefinitionKey());
notificationService.sendUpdatedProcessInstance(
record.getProcessInstanceKey(), record.getProcessDefinitionKey());

elementInstanceCounter.increment();
}
Expand Down

0 comments on commit 13dfd3f

Please sign in to comment.