Class DefaultProcessCheckService
- java.lang.Object
-
- de.aristaflow.adept2.base.service.AbstractADEPT2Service
-
- de.aristaflow.adept2.base.service.AbstractAuthenticatedService
-
- de.aristaflow.adept2.core.checks.processmodel.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.aristaflow.adept2.base.service.AbstractADEPT2Service
AbstractADEPT2Service.ActiveSessions
-
Nested classes/interfaces inherited from interface de.aristaflow.adept2.core.checks.processmodel.ProcessCheckService
ProcessCheckService.CheckSet
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHECKS_BASIC_MODELLING
The plug-in ID for the basic modelling checks.static String
CHECKS_CONSISTENCY
The plug-in ID for the consistency checks.static String
CHECKS_EXECUTION_PRODUCTION
The plug-in ID for the execution / production checks.static String
CHECKS_EXECUTION_TEST_CLIENT
The plug-in ID for the execution / test client checks.static String
CHECKS_STRUCTURE
The plug-in ID for the structure checks.-
Fields inherited from class de.aristaflow.adept2.base.service.AbstractAuthenticatedService
CFG_EARLY_SERVICEAUTH_ORGPOSID, CFG_EARLY_SERVICEAUTH_ORGPOSNAME, CFG_EARLY_SERVICEAUTH_PASSWORD, CFG_EARLY_SERVICEAUTH_USERNAME, CFG_SERVICEAUTH_ORGPOSID, CFG_SERVICEAUTH_ORGPOSNAME, CFG_SERVICEAUTH_PASSWORD, CFG_SERVICEAUTH_USERNAME
-
Fields inherited from class de.aristaflow.adept2.base.service.AbstractADEPT2Service
CONF_CSV_LOGGING, configuration, logger, registry, runtimeRequiredServices, startupRequiredServices
-
Fields inherited from interface de.aristaflow.adept2.core.checks.processmodel.ProcessCheckService
PLUGIN_TYPE_ACTIVITY_CHECK, PLUGIN_TYPE_TEMPLATE_CHECK
-
-
Constructor Summary
Constructors Constructor Description DefaultProcessCheckService(org.apache.commons.configuration2.Configuration configuration, Registry registry)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessTemplateCheck
getBasicModellingChecks()
Returns the basic process modelling checks.ProcessTemplateCheck
getConsistencyChecks()
Returns the checks ensuring the internal consistency of the data model.ProcessTemplateCheck
getExecutionProductionChecks()
Returns all checks which are required to be fulfilled for production use.ProcessTemplateCheck
getExecutionTestClientChecks()
Returns the checks which are required to be fulfilled for execution in the test client.Pair<SessionToken,PolicyResolution>
getPolicyResolution()
ProcessTemplateCheck
getProcessTemplateCheck(String checkID)
ProcessTemplateCheck
getStructureChecks()
Returns the checks ensuring the structural correctness of the process model.void
init(URI[] localExportedUris, URI[] globalExportedUris)
Copies the designated URI array and stores it internally and authenticates to the system and sets the session factory.void
start()
Method setting the status to the current time.-
Methods inherited from class de.aristaflow.adept2.base.service.AbstractAuthenticatedService
_sessionActive, authenticateService, awaitActiveSessions, createChildSession, createSession, getAgent, getSecurityManager, getSessionFactory, getStartupRequired, getTopLevelAgent, getUserCredentials, globalSecurityManagerAvailable, isEarlyService, sessionHasAllCapabilities, sessionHasAllTopLevelCapabilities, sessionHasCapability, sessionHasOneCapability, sessionHasOneTopLevelCapability, shutdown
-
Methods inherited from class de.aristaflow.adept2.base.service.AbstractADEPT2Service
_sessionFinished, activeOrInvalidServiceStateException, changeLogContext, changeLogContext, changeLogContext, consoleLog, csvLoggingEnabled, getClassSpecificJulLogger, getDependencyRegistry, getLocalUris, getLogger, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, isActive, isSessionActive, isShutdown, logMethodEntry, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, ping, preShutdown, privilegeSession, privilegeThread, revertLogContextChanges, sessionActive, sessionActive, sessionActive, sessionActive, sessionFinished, sessionFinished, signalShutdown, signalStart, unprivilegeThread
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.aristaflow.adept2.base.service.ADEPT2Service
getLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, ping, preShutdown, shutdown
-
-
-
-
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, aConfigurationException
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 interfaceADEPT2Service
- Overrides:
init
in classAbstractAuthenticatedService
- 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 ornull
in case the service is not published.- Throws:
AbortServiceException
- If authenticating at the security manager fails, anAbortServiceException
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 interfaceADEPT2Service
- Overrides:
start
in classAbstractADEPT2Service
- Throws:
AbortServiceException
- If this service cannot be started due to a severe problem, anAbortServiceException
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 interfaceProcessCheckService
- 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 interfaceProcessCheckService
- 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 interfaceProcessCheckService
- 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 interfaceProcessCheckService
- 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 interfaceProcessCheckService
- 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 interfaceProcessCheckService
- 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.
-
-