Class TaskAssert

    • Method Detail

      • isNotAssigned

        public TaskAssert isNotAssigned()
        Verifies the expectation that the Task is currently not assigned to any particular user.
        Returns:
        this TaskAssert
      • isAssignedTo

        public TaskAssert isAssignedTo​(java.lang.String userId)
        Verifies the expectation that the Task is currently assigned to the specified user.
        Parameters:
        userId - id of the user the task should be currently assigned to.
        Returns:
        this TaskAssert
      • hasCandidateGroup

        public TaskAssert hasCandidateGroup​(java.lang.String candidateGroupId)
        Verifies the expectation that the Task is currently waiting to be assigned to a user of the specified candidate group.
        Parameters:
        candidateGroupId - id of a candidate group the task is waiting to be assigned to
        Returns:
        this TaskAssert
        Since:
        Camunda Platform 7.0
      • hasCandidateGroupAssociated

        public TaskAssert hasCandidateGroupAssociated​(java.lang.String candidateGroupId)
        Verifies the expectation that the Task is currently associated to the specified candidate group - no matter whether it is already assigned to a specific user or not.
        Parameters:
        candidateGroupId - id of a candidate group the task is associated to
        Returns:
        this TaskAssert
        Since:
        Camunda Platform 7.3
      • hasCandidateUser

        public TaskAssert hasCandidateUser​(java.lang.String candidateUserId)
        Verifies the expectation that the Task is currently waiting to be assigned to a specified candidate user.
        Parameters:
        candidateUserId - id of a candidate user the task is waiting to be assigned to
        Returns:
        this TaskAssert
        Since:
        Camunda Platform 7.0
      • hasCandidateUserAssociated

        public TaskAssert hasCandidateUserAssociated​(java.lang.String candidateUserId)
        Verifies the expectation that the Task is currently associated to the specified candidate user - no matter whether it is already assigned to a specific user or not.
        Parameters:
        candidateUserId - id of a candidate user the task is associated to
        Returns:
        this TaskAssert
        Since:
        Camunda Platform 7.3
      • hasCandidateUser

        public TaskAssert hasCandidateUser​(java.lang.String candidateUserId,
                                           boolean unassignedOnly)
      • hasDueDate

        public TaskAssert hasDueDate​(java.util.Date dueDate)
        Verifies the due date of a Task.
        Parameters:
        dueDate - the date the task should be due at
        Returns:
        this TaskAssert
      • hasDefinitionKey

        public TaskAssert hasDefinitionKey​(java.lang.String taskDefinitionKey)
        Verifies the definition key of a Task. This key can be found in the <userTask id="myTaskDefinitionKey" .../> attribute of the process definition BPMN 2.0 XML file.
        Parameters:
        taskDefinitionKey - the expected value of the task/@id attribute
        Returns:
        this TaskAssert
      • hasFormKey

        public TaskAssert hasFormKey​(java.lang.String formKey)
        Verifies the expectation that the Task has a specified form key.
        Parameters:
        formKey - the expected form key.
        Returns:
        this TaskAssert
      • hasId

        public TaskAssert hasId​(java.lang.String id)
        Verifies the internal id of a Task.
        Parameters:
        id - the expected value of the internal task id
        Returns:
        this TaskAssert
      • hasName

        public TaskAssert hasName​(java.lang.String name)
        Verifies the name (label) of a Task. This name can be found in the <userTask name="myName" .../> attribute of the process definition BPMN 2.0 XML file.
        Parameters:
        name - the expected value of the name
        Returns:
        this TaskAssert
      • hasDescription

        public TaskAssert hasDescription​(java.lang.String description)
        Verifies the description of a Task. This description can be found in the <userTask><documentation>description</documentation></userTask> element of the process definition BPMN 2.0 XML file.
        Parameters:
        description - the expected value of the description
        Returns:
        this TaskAssert