Interface ProcessManager
- All Superinterfaces:
AutoCloseable, Closeable, OsidManager, OsidManager, OsidProfile, ProcessProfile, Sourceable
The state manager provides access to state lookup and creation sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:
-
StateSession: a session to look up state toIdmappings -
StateAssignmentSession: a session to manage state toIdmappings -
StateChangeNotificationSession: a session to subscribe to state changes -
StateLookupSession: a session to retrieve states -
StateQuerySession: a session to query states -
StateSearchSession: a session to search for states -
StateAdminSession: a session to create and delete states -
StateSequencingSession: a session to sequence states -
StateNotificationSession: a session to receive notifications pertaining to state changes
-
ProcessLookupSession: asession to retrieve processes -
ProcessQuerySession: a session to query processes -
ProcessSearchSession: a session to search for processes -
ProcessAdminSession: a session to create, update and delete processes -
ProcessNotificationSession: a session to receive notifications pertaining to changes in processes -
ProcessHierarchySession: a session to traverse process hierarchies -
ProcessHierarchyDesignSession: a session to manage process hierarchies
-
Method Summary
Modifier and TypeMethodDescriptionGets the process administrative session for creating, updating and deleteing processes.Gets the process hierarchy design session.Gets the process hierarchy traversal session.Gets the process lookup session.getProcessNotificationSession(ProcessReceiver processReceiver) Gets the notification session for subscriprocessg to changes to a process.Gets the process query session.Gets the process search session.Gets a state administration session for creating, updating and deleting states.getStateAdminSessionForProcess(Id processId) Gets a state administration session for the given process.Gets theOsidSessionassociated with the state assignment service.getStateAssignmentSessionForProcess(Id processId) Gets theOsidSessionassociated with the state assignment service for the given process.getStateChangeNotificationSession(StateChangeReceiver stateChangeReceiver) Gets the notification session for notifications pertaining to state changes.getStateChangeNotificationSessionForProcess(StateChangeReceiver stateChangeReceiver, Id processId) Gets the state change notification session for the given process.Gets theOsidSessionassociated with the state lookup service.getStateLookupSessionForProcess(Id processId) Gets theOsidSessionassociated with the state lookup service for the given process.getStateNotificationSession(StateReceiver stateReceiver) Gets the notification session for notifications pertaining to state changes.getStateNotificationSessionForProcess(StateReceiver stateReceiver, Id processId) Gets the state notification session for the given process.Gets a state query session.getStateQuerySessionForProcess(Id processId) Gets a state query session for the given process.Gets a state search session.getStateSearchSessionForProcess(Id processId) Gets a state search session for the given process.Gets a state sequencing session for ordering states.getStateSequencingSessionForProcess(Id processId) Gets a state sequencing session for the given process.Gets theOsidSessionassociated with the state service.getStateSessionForProcess(Id processId) Gets theOsidSessionassociated with the state service for the given process.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface ProcessProfile
getProcessRecordTypes, getProcessSearchRecordTypes, getStateRecordTypes, getStateSearchRecordTypes, supportsProcessAdmin, supportsProcessHierarchy, supportsProcessHierarchyDesign, supportsProcessLookup, supportsProcessNotification, supportsProcessQuery, supportsProcessRecordType, supportsProcessSearch, supportsProcessSearchRecordType, supportsState, supportsStateAdmin, supportsStateAssignment, supportsStateChangeNotification, supportsStateLookup, supportsStateNotification, supportsStateQuery, supportsStateRecordType, supportsStateSearch, supportsStateSearchRecordType, supportsStateSequencing, supportsVisibleFederationModifier and TypeMethodDescriptionGets all the process record types supported.Gets all the process search record types supported.Gets all the state record types supported.Gets all the state search record types supported.booleanTests if process administration is supported.booleanTests if a process hierarchy traversal is supported.booleanTests if a process hierarchy design is supported.booleanTests if process lookup is supported.booleanTests if process notification is supported.booleanTests if process query is supported.booleansupportsProcessRecordType(Type processRecordType) Tests if a given process record type is supported.booleanTests if process search is supported.booleansupportsProcessSearchRecordType(Type processSearchRecordType) Tests if a given process search record type is supported.booleanTests if retrieving mappings of state andIdsis supported.booleanTests if state administration is supported.booleanTests if managing mappings of states andIdsis supported.booleanTests if subscirbing to state change notifications is supported.booleanTests if state lookup is supported.booleanTests if state notification is supported.booleanTests if state query is supported.booleansupportsStateRecordType(Type stateRecordType) Tests if a given state record type is supported.booleanTests if state search is supported.booleansupportsStateSearchRecordType(Type stateSearchRecordType) Tests if a given state search type is supported.booleanTests if state sequencing is supported.booleanTests if federation is visible.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getStateSession
Gets theOsidSessionassociated with the state service.- Returns:
a StateLookupSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsState()isfalse- Compliance:
optional- This method must be implemented if {@code supportsState()} is {@code true} .
-
getStateSessionForProcess
StateSession getStateSessionForProcess(Id processId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the state service for the given process.- Parameters:
processId- theIdof the process- Returns:
a StateStateSession- Throws:
NotFoundException-processIdnot foundNullArgumentException-processIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsState()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsState()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateAssignmentSession
Gets theOsidSessionassociated with the state assignment service.- Returns:
- a
StateAssignmentLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStateAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateAssignment()} is {@code true} .
-
getStateAssignmentSessionForProcess
StateAssignmentSession getStateAssignmentSessionForProcess(Id processId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the state assignment service for the given process.- Parameters:
processId- theIdof the process- Returns:
a StateAssignmentStateSession- Throws:
NotFoundException-processIdnot foundNullArgumentException-processIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsStateAssignment()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateAssignment()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateChangeNotificationSession
StateNotificationSession getStateChangeNotificationSession(StateChangeReceiver stateChangeReceiver) throws OperationFailedException Gets the notification session for notifications pertaining to state changes.- Parameters:
stateChangeReceiver- the notification callback- Returns:
- a
StateChangeNotificationSession - Throws:
NullArgumentException-stateChangeReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStateChangeNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateChangeNotification()} is {@code true} .
-
getStateChangeNotificationSessionForProcess
StateNotificationSession getStateChangeNotificationSessionForProcess(StateChangeReceiver stateChangeReceiver, Id processId) throws NotFoundException, OperationFailedException Gets the state change notification session for the given process.- Parameters:
stateChangeReceiver- the notification callbackprocessId- theIdof the process- Returns:
- a
StateChangeNotificationSession - Throws:
NotFoundException-processIdnot foundNullArgumentException-stateChangeReceiverorprocessIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsStateChangeNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateChangeNotfication()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateLookupSession
Gets theOsidSessionassociated with the state lookup service.- Returns:
a StateLookupSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStateLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateLookup()} is {@code true} .
-
getStateLookupSessionForProcess
StateLookupSession getStateLookupSessionForProcess(Id processId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the state lookup service for the given process.- Parameters:
processId- theIdof the process- Returns:
a StateLookupSession- Throws:
NotFoundException-processIdnot foundNullArgumentException-processIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsStateLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateQuerySession
Gets a state query session.- Returns:
a StatQuerySession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStateQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateQuery()} is {@code true} .
-
getStateQuerySessionForProcess
StateQuerySession getStateQuerySessionForProcess(Id processId) throws NotFoundException, OperationFailedException Gets a state query session for the given process.- Parameters:
processId- theIdof the process- Returns:
a StateQuerySession- Throws:
NotFoundException-processIdnot foundNullArgumentException-processIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsStateQuery()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateQuery()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateSearchSession
Gets a state search session.- Returns:
a StateSearchSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStateSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateSearch()} is {@code true} .
-
getStateSearchSessionForProcess
StateSearchSession getStateSearchSessionForProcess(Id processId) throws NotFoundException, OperationFailedException Gets a state search session for the given process.- Parameters:
processId- theIdof the process- Returns:
a StateSearchSession- Throws:
NotFoundException-processIdnot foundNullArgumentException-processIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsStateSearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateSearch()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateAdminSession
Gets a state administration session for creating, updating and deleting states.- Returns:
a StateAdminSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStateAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateAdmin()} is {@code true} .
-
getStateAdminSessionForProcess
StateAdminSession getStateAdminSessionForProcess(Id processId) throws NotFoundException, OperationFailedException Gets a state administration session for the given process.- Parameters:
processId- theIdof the process- Returns:
a StateAdminSession- Throws:
NotFoundException-processIdnot foundNullArgumentException-processIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStateAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateAdmin()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateSequencingSession
Gets a state sequencing session for ordering states.- Returns:
a StateSequencingSession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsStateSequencing()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateSequencing()} is {@code true} .
-
getStateSequencingSessionForProcess
StateSequencingSession getStateSequencingSessionForProcess(Id processId) throws NotFoundException, OperationFailedException Gets a state sequencing session for the given process.- Parameters:
processId- theIdof the process- Returns:
a StateSequencingSession- Throws:
NotFoundException-processIdnot foundNullArgumentException-processIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStateSequencing()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateSequencing()} and {@code supportsVisibleFederation()} are {@code true} .
-
getStateNotificationSession
StateNotificationSession getStateNotificationSession(StateReceiver stateReceiver) throws OperationFailedException Gets the notification session for notifications pertaining to state changes.- Parameters:
stateReceiver- the notification callback- Returns:
a StateNotificationSession- Throws:
NullArgumentException-stateReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsStateNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateNotification()} is {@code true} .
-
getStateNotificationSessionForProcess
StateNotificationSession getStateNotificationSessionForProcess(StateReceiver stateReceiver, Id processId) throws NotFoundException, OperationFailedException Gets the state notification session for the given process.- Parameters:
stateReceiver- the notification callbackprocessId- theIdof the process- Returns:
a StateNotificationSession- Throws:
NotFoundException-processIdnot foundNullArgumentException-stateReceiverorprocessIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsStateNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStateNotfication()} and {@code supportsVisibleFederation()} are {@code true} .
-
getProcessLookupSession
Gets the process lookup session.- Returns:
- a
ProcessLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsProcessLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProcessLookup()} is {@code true} .
-
getProcessQuerySession
Gets the process query session.- Returns:
- a
ProcessQuerySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsProcessQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProcessQuery()} is {@code true} .
-
getProcessSearchSession
Gets the process search session.- Returns:
- a
ProcessSearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsProcessSearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProcessSearch()} is {@code true} .
-
getProcessAdminSession
Gets the process administrative session for creating, updating and deleteing processes.- Returns:
- a
ProcessAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsProcessAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProcessAdmin()} is {@code true} .
-
getProcessNotificationSession
ProcessNotificationSession getProcessNotificationSession(ProcessReceiver processReceiver) throws OperationFailedException Gets the notification session for subscriprocessg to changes to a process.- Parameters:
processReceiver- the notification callback- Returns:
- a
ProcessNotificationSession - Throws:
NullArgumentException-processReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsProcessNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProcessNotification()} is {@code true} .
-
getProcessHierarchySession
Gets the process hierarchy traversal session.- Returns:
a ProcessHierarchySession- Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsProcessHierarchy()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProcessHierarchy()} is {@code true} .
-
getProcessHierarchyDesignSession
Gets the process hierarchy design session.- Returns:
- a
ProcessHierarchyDesignSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsProcessHierarchyDesign()isfalse- Compliance:
optional- This method must be implemented if {@code supportsProcessHierarchyDesign()} is {@code true} .
-