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.ActiveSessionsNested classes/interfaces inherited from interface de.aristaflow.adept2.core.checks.processmodel.ProcessCheckService
ProcessCheckService.CheckSet -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe plug-in ID for the basic modelling checks.static final StringThe plug-in ID for the consistency checks.static final StringThe plug-in ID for the execution / production checks.static final StringThe plug-in ID for the execution / test client checks.static final StringThe 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_USERNAMEFields inherited from class de.aristaflow.adept2.base.service.AbstractADEPT2Service
CONF_CSV_LOGGING, configuration, logger, registry, runtimeRequiredServices, startupRequiredServicesFields inherited from interface de.aristaflow.adept2.core.checks.processmodel.ProcessCheckService
PLUGIN_TYPE_ACTIVITY_CHECK, PLUGIN_TYPE_TEMPLATE_CHECK -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProcessCheckService(Configuration configuration, Registry registry) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the basic process modelling checks.Returns the checks ensuring the internal consistency of the data model.Returns all checks which are required to be fulfilled for production use.Returns the checks which are required to be fulfilled for execution in the test client.getProcessTemplateCheck(String checkID) Returns the checks ensuring the structural correctness of the process model.voidCopies the designated URI array and stores it internally and authenticates to the system and sets the session factory.voidstart()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, sessionHasOneCapability, sessionHasOneTopLevelCapability, shutdownMethods 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, unprivilegeThreadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.aristaflow.adept2.base.service.ADEPT2Service
getLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, ping, preShutdown, shutdown
-
Field Details
-
CHECKS_CONSISTENCY
The plug-in ID for the consistency checks.- See Also:
-
CHECKS_STRUCTURE
The plug-in ID for the structure checks.- See Also:
-
CHECKS_BASIC_MODELLING
The plug-in ID for the basic modelling checks.- See Also:
-
CHECKS_EXECUTION_PRODUCTION
The plug-in ID for the execution / production checks.- See Also:
-
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, aConfigurationExceptionwill be thrown.
-
-
Method Details
-
init
Description copied from class:AbstractAuthenticatedServiceCopies 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:
initin interfaceADEPT2Service- Overrides:
initin 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 ornullin case the service is not published.- Throws:
AbortServiceException- If authenticating at the security manager fails, anAbortServiceExceptionwill be thrown.
-
start
Description copied from class:AbstractADEPT2ServiceMethod setting the status to the current time. Subclasses have to call this method!- Specified by:
startin interfaceADEPT2Service- Overrides:
startin classAbstractADEPT2Service- Throws:
AbortServiceException- If this service cannot be started due to a severe problem, anAbortServiceExceptionwill 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
- Specified by:
getProcessTemplateCheckin interfaceProcessCheckService- Returns:
- The process template check plug-in with the given ID.
-
getBasicModellingChecks
Description copied from interface:ProcessCheckServiceReturns 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:
getBasicModellingChecksin interfaceProcessCheckService- Returns:
- The basic checks for process modelling.
-
getConsistencyChecks
Description copied from interface:ProcessCheckServiceReturns 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:
getConsistencyChecksin interfaceProcessCheckService- Returns:
- All consistency checks.
-
getStructureChecks
Description copied from interface:ProcessCheckServiceReturns 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:
getStructureChecksin interfaceProcessCheckService- Returns:
- All structural checks.
-
getExecutionProductionChecks
Description copied from interface:ProcessCheckServiceReturns 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:
getExecutionProductionChecksin interfaceProcessCheckService- Returns:
- The checks for execution in production mode.
-
getExecutionTestClientChecks
Description copied from interface:ProcessCheckServiceReturns 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:
getExecutionTestClientChecksin interfaceProcessCheckService- Returns:
- The checks for execution in the test client.
-
getPolicyResolution
- Returns:
- A session token and the policy resolution as complete bundle for accessing the policy resolution.
-