Interface ProcessProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ProcessProcessors to
Processes . Multiple ProcessProcessors applied to an
Process may be sequenced such that the first positive evaluation
results in the ProcessProcessor used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProcessProcessorToProcess(Id processProcessorId, Id processId) Adds an existingProcessProcessorto aProcess.booleanTests if this user can alter process processor/process mappings.booleanTests if this user can orderProcessProcessors.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.voidmoveProcessProcessorAhead(Id processProcessorId, Id processId, Id referenceId) Reorders process processors for a process by moving the specified process processor in front of a reference process processor.voidmoveProcessProcessorBehind(Id processProcessorId, Id processId, Id referenceId) Reorders process processors for a process by moving the specified process processor behind a reference process processor.voidorderProcessProcessors(Id[] processProcessorIds, Id processId) Reorders a set of process processors for a process.voidunassignProcessProcessorFromProcess(Id processProcessorId, Id processId) Removes an existingProcessProcessorfrom aProcess.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getOfficeId
Id getOfficeId()Gets theOfficeIdassociated with this session.- Returns:
- the
Office Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOffice
Gets theOfficeassociated with this session.- Returns:
- the office
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignProcessProcessors
boolean canAssignProcessProcessors()Tests if this user can alter process processor/process mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignProcessProcessorToProcess
void assignProcessProcessorToProcess(Id processProcessorId, Id processId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProcessProcessorto aProcess.- Parameters:
processProcessorId- theIdof theProcessProcessorprocessId- theIdof theProcess- Throws:
AlreadyExistsException-processProcessorIdalready applied toprocessIdNotFoundException-processProcessorIdorprocessIdnot foundNullArgumentException-processProcessorIdorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProcessProcessorFromProcess
void unassignProcessProcessorFromProcess(Id processProcessorId, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes an existingProcessProcessorfrom aProcess.- Parameters:
processProcessorId- theIdof theProcessProcessorprocessId- theIdof theProcess- Throws:
NotFoundException-processProcessorIdorprocessIdnot found orprocessProcessorIdalready applied toprocessIdNullArgumentException-processProcessorIdorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProcessProcessors
boolean canSequenceProcessProcessors()Tests if this user can orderProcessProcessors. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifProcessProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProcessProcessorAhead
void moveProcessProcessorAhead(Id processProcessorId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process processors for a process by moving the specified process processor in front of a reference process processor.- Parameters:
processProcessorId- theIdof theProcessProcessorprocessId- theIdof theProcessreferenceId- the reference process processorId- Throws:
NotFoundException-processProcessorId processId, orreferenceIdnot found or,processProcessorIdorreferenceIdnot related toprocessIdNullArgumentException-processProcessorId, processId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProcessProcessorBehind
void moveProcessProcessorBehind(Id processProcessorId, Id processId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders process processors for a process by moving the specified process processor behind a reference process processor.- Parameters:
processProcessorId- theIdof theProcessProcessorprocessId- theIdof theProcessreferenceId- the reference process processorId- Throws:
NotFoundException-processProcessorId, processId, orreferenceIdnot found or,processProcessorIdorreferenceIdnot related toprocessIdNullArgumentException-processProcessorId, processId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProcessProcessors
void orderProcessProcessors(Id[] processProcessorIds, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of process processors for a process.- Parameters:
processProcessorIds- theIdsfor a set ofProcessProcessorsprocessId- theIdof theProcess- Throws:
NotFoundException-processIdnot found or, aprocessProcessorIdnot related toprocessIdNullArgumentException-processProcessorIdsorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-