Class DefaultProcessCheckService

All Implemented Interfaces:
ADEPT2Service, AuthenticatingService, LogService, ServiceThreadHandling, ProcessCheckService

@ConfigurationDescription(properties=) public class DefaultProcessCheckService extends AbstractAuthenticatedService implements ProcessCheckService
Default implementation of the process check service.
  • Field Details

    • CHECKS_CONSISTENCY

      public static final String CHECKS_CONSISTENCY
      The plug-in ID for the consistency checks.
      See Also:
    • CHECKS_STRUCTURE

      public static final String CHECKS_STRUCTURE
      The plug-in ID for the structure checks.
      See Also:
    • CHECKS_BASIC_MODELLING

      public static final String CHECKS_BASIC_MODELLING
      The plug-in ID for the basic modelling checks.
      See Also:
    • CHECKS_EXECUTION_PRODUCTION

      public static final String CHECKS_EXECUTION_PRODUCTION
      The plug-in ID for the execution / production checks.
      See Also:
    • CHECKS_EXECUTION_TEST_CLIENT

      public static final String CHECKS_EXECUTION_TEST_CLIENT
      The plug-in ID for the execution / test client checks.
      See Also:
  • Constructor Details

    • DefaultProcessCheckService

      public DefaultProcessCheckService(Configuration configuration, Registry registry) throws ConfigurationException
      Default constructor.
      Parameters:
      configuration -
      registry -
      Throws:
      ConfigurationException - If the password for this authenticated service cannot be parsed from the configuration, a ConfigurationException will be thrown.
  • Method Details

    • init

      public void init(URI[] localExportedUris, URI[] globalExportedUris) throws AbortServiceException
      Description copied from class: AbstractAuthenticatedService
      Copies the designated URI array and stores it internally and authenticates to the system and sets the session factory.
      This method can be called any time in overriding init-methods.

      In case of an early service, this will not authenticate to the system! Such a service need to AbstractAuthenticatedService.authenticateService() later when the security manager is available.

      Specified by:
      init in interface ADEPT2Service
      Overrides:
      init in class AbstractAuthenticatedService
      Parameters:
      localExportedUris - The URIs with which this service is exported locally or a local URI or an empty array for internal services.
      globalExportedUris - The URIs with which this service is published globally or null in case the service is not published.
      Throws:
      AbortServiceException - If authenticating at the security manager fails, an AbortServiceException will be thrown.
    • start

      public void start() throws AbortServiceException
      Description copied from class: AbstractADEPT2Service
      Method setting the status to the current time. Subclasses have to call this method!
      Specified by:
      start in interface ADEPT2Service
      Overrides:
      start in class AbstractADEPT2Service
      Throws:
      AbortServiceException - If this service cannot be started due to a severe problem, an AbortServiceException will be thrown. ADEPT2Service.shutdown(boolean) will not be called when aborting; the service has to shut down itself/clean up before throwing the exception.
    • getProcessTemplateCheck

      public ProcessTemplateCheck getProcessTemplateCheck(String checkID)
      Specified by:
      getProcessTemplateCheck in interface ProcessCheckService
      Returns:
      The process template check plug-in with the given ID.
    • getBasicModellingChecks

      public ProcessTemplateCheck getBasicModellingChecks()
      Description copied from interface: ProcessCheckService
      Returns the basic process modelling checks. These checks do not ensure the correctness of the process for execution.

      Note, that the consistency and structure checks are not part of these checks, since the data model and change operations already take care of these constraints.

      Specified by:
      getBasicModellingChecks in interface ProcessCheckService
      Returns:
      The basic checks for process modelling.
    • getConsistencyChecks

      public ProcessTemplateCheck getConsistencyChecks()
      Description copied from interface: ProcessCheckService
      Returns the checks ensuring the internal consistency of the data model. These are normally not required, as the change operations and models already ensure this kind of correctness.
      Specified by:
      getConsistencyChecks in interface ProcessCheckService
      Returns:
      All consistency checks.
    • getStructureChecks

      public ProcessTemplateCheck getStructureChecks()
      Description copied from interface: ProcessCheckService
      Returns the checks ensuring the structural correctness of the process model. These checks are normally not required, since the change operations already ensure this kind of correctness.
      Specified by:
      getStructureChecks in interface ProcessCheckService
      Returns:
      All structural checks.
    • getExecutionProductionChecks

      public ProcessTemplateCheck getExecutionProductionChecks()
      Description copied from interface: ProcessCheckService
      Returns all checks which are required to be fulfilled for production use.

      Note, that the consistency and structure checks are not part of these checks, since the data model and change operations already take care of these constraints.

      Specified by:
      getExecutionProductionChecks in interface ProcessCheckService
      Returns:
      The checks for execution in production mode.
    • getExecutionTestClientChecks

      public ProcessTemplateCheck getExecutionTestClientChecks()
      Description copied from interface: ProcessCheckService
      Returns the checks which are required to be fulfilled for execution in the test client.

      Note, that the consistency and structure checks are not part of these checks, since the data model and change operations already take care of these constraints.

      Specified by:
      getExecutionTestClientChecks in interface ProcessCheckService
      Returns:
      The checks for execution in the test client.
    • getPolicyResolution

      public Pair<SessionToken,PolicyResolution> getPolicyResolution()
      Returns:
      A session token and the policy resolution as complete bundle for accessing the policy resolution.