Interface Replacement.Constructor

  • All Known Implementing Classes:
    ReplacementConstructor
    Enclosing interface:
    Replacement<T extends Replacement<T>>

    public static interface Replacement.Constructor
    Constructor of a replacement between two users in a given workflow instance and over a given period of time.
    • Method Detail

      • between

        Replacement.Constructor between​(User incumbent,
                                        User substitute)
        Sets the two users concerned by the replacement to construct.
        Parameters:
        incumbent - the user that is replaced.
        substitute - the user that replaces the former.
        Returns:
        itself.
      • inWorkflow

        Replacement.Constructor inWorkflow​(String workflowInstanceId)
        Sets the workflow instance concerned by the replacement to construct.
        Parameters:
        workflowInstanceId - the unique identifier of a workflow instance.
        Returns:
        itself.
      • during

        <T extends Replacement<T>> T during​(Period period)
        Sets the period of time the replacement will be performed and constructs it. The period is expressed in days; the start and end date are then LocalDate instances.
        Parameters:
        period - a period of time.
        Returns:
        the constructed replacement.