Class HealthCheckService

java.lang.Object
org.imixs.workflow.engine.HealthCheckService
All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck

@Liveness @ApplicationScoped public class HealthCheckService extends Object implements org.eclipse.microprofile.health.HealthCheck
The Imixs HealthCheckService implements the Microservice HealthCheck interface.

The service returns the count of workflow models

Example: {"data":{"model.count":1},"name":"imixs-workflow","state":"UP"}

This check indicates the overall status of the workflow engine. If models are available also database access and security works.

Version:
1.0
Author:
rsoika
  • Constructor Details

    • HealthCheckService

      public HealthCheckService()
  • Method Details

    • call

      public org.eclipse.microprofile.health.HealthCheckResponse call()
      This is the implementation for the health check call back method.

      The method returns the status 'UP' together with the count of workflow models

      Example: {"data":{"model.count":1},"name":"imixs-workflow","state":"UP"}

      This check indicates the overall status of the workflow engine. If models are available also database access and security works.

      Specified by:
      call in interface org.eclipse.microprofile.health.HealthCheck