Assertions
Instance: isActive
Assert that a process instance is currently ‘active’, so neither suspended nor ended:Instance: isEnded
Assert that a process instance is already ended:Instance: isNotEnded
Assert that a process instance is not ended:Instance: isStarted
Assert that a process instance is started:Instance: isSuspended
Assert that a process instance is suspended:Instance: hasPassed
Assert that a process instance has passed a specified activity:Instance: hasPassedInOrder
Assert that a process instance has passed several specified activities exactly in the given order:Instance: hasNotPassed
Assert that a process instance has not passed a specified activity:Instance: hasVariables
Assert that a process instance holds at least one process variable:Instance: hasNoVariables
Assert that a process instance holds no process variables at all:Instance: hasProcessDefinitionKey
Assert that a process instance is based on a specific process definition:Instance: hasBusinessKey
Assert that a process instance has a specific business key:Instance: isWaitingAt
Assert that a process instance is currently waiting at a specified activity Id:Instance: isNotWaitingAt
Assert that a process instance is currently NOT waiting at a specified activity Id:Instance: isWaitingAtExactly
Assert that a process instance is currently waiting at exactly one specified activity Id:Instance: isWaitingFor
Assert that a process instance is currently waiting for a specified message:Instance: isNotWaitingFor
Assert that a process instance is currently NOT waiting for a specified message:Definition: hasActiveInstances
Assert that a process definition currently has exactly the expected number of ‘active’ (so neither ended nor suspended) instances:Job: hasActivityId
Assert that a job is based on an activity definition with a specific id:Job: hasDeploymentId
Assert that a job has a specific deployment id:Job: hasDueDate
Assert that a job is due at a specific date:Job: hasId
Assert a specific internal id for the job:Job: hasRetries
Assert that a job has a specific number of retries left:Task: isAssignedTo
Assert that a specified user is assigned to a task:Task: isNotAssigned
Assert that a task is currently not assigned to any user:Task: hasCandidateGroup
Assert that a task is is currently waiting to be assigned to a user of the specified candidate group.Task: hasCandidateGroupAssociated
Assert the expectation that a task is currently associated to the specified candidate group - no matter whether it is already assigned to a specific user or not.Task: hasCandidateUser
Assert that a task is currently waiting to be assigned to a specified candidate user:Task: hasCandidateUserAssociated
Assert the expectation that a task is currently associated to the specified candidate user - no matter whether it is already assigned to a specific user or not.Task: hasDefinitionKey
Assert that a task has the specified definition key (aka the id attribute of the<userTask id=“review-and-approve” …/> element in the process definition BPMN 2.0 XML file):