Class DefaultProcessCheckService

    • Field Detail

      • CHECKS_CONSISTENCY

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

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

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

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

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

      • DefaultProcessCheckService

        public DefaultProcessCheckService​(org.apache.commons.configuration2.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 Detail

      • 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.
      • 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.