Interface ProcessProcessorRuleApplicationSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface ProcessProcessorRuleApplicationSession extends 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 Details

    • getOfficeId

      Id getOfficeId()
      Gets the Office Id associated with this session.
      Returns:
      the Office Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getOffice

      Gets the Office associated with this session.
      Returns:
      the office
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - 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 a PERMISSION_DENIED . This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.
      Returns:
      false if mapping is not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • assignProcessProcessorToProcess

      void assignProcessProcessorToProcess(Id processProcessorId, Id processId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
      Adds an existing ProcessProcessor to a Process .
      Parameters:
      processProcessorId - the Id of the ProcessProcessor
      processId - the Id of the Process
      Throws:
      AlreadyExistsException - processProcessorId already applied to processId
      NotFoundException - processProcessorId or processId not found
      NullArgumentException - processProcessorId or processId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • unassignProcessProcessorFromProcess

      void unassignProcessProcessorFromProcess(Id processProcessorId, Id processId) throws NotFoundException, OperationFailedException, PermissionDeniedException
      Removes an existing ProcessProcessor from a Process .
      Parameters:
      processProcessorId - the Id of the ProcessProcessor
      processId - the Id of the Process
      Throws:
      NotFoundException - processProcessorId or processId not found or processProcessorId already applied to processId
      NullArgumentException - processProcessorId or processId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canSequenceProcessProcessors

      boolean canSequenceProcessProcessors()
      Tests if this user can order ProcessProcessors . A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in a PERMISSION_DENIED .This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.
      Returns:
      false if ProcessProcessor ordering is not authorized, true otherwise
      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 - the Id of the ProcessProcessor
      processId - the Id of the Process
      referenceId - the reference process processor Id
      Throws:
      NotFoundException - processProcessorId processId , or referenceId not found or, processProcessorId or referenceId not related to processId
      NullArgumentException - processProcessorId, processId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - 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 - the Id of the ProcessProcessor
      processId - the Id of the Process
      referenceId - the reference process processor Id
      Throws:
      NotFoundException - processProcessorId, processId , or referenceId not found or, processProcessorId or referenceId not related to processId
      NullArgumentException - processProcessorId, processId , or referenceId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - 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 - the Ids for a set of ProcessProcessors
      processId - the Id of the Process
      Throws:
      NotFoundException - processId not found or, a processProcessorId not related to processId
      NullArgumentException - processProcessorIds or processId is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.