use of org.camunda.bpm.model.bpmn.instance.ResourceRole in project camunda-bpmn-model by camunda.
the class ResourceRolesTest method testGetPotentialOwner.
@Test
public void testGetPotentialOwner() {
UserTask userTask = modelInstance.getModelElementById("_9");
Collection<ResourceRole> resourceRoles = userTask.getResourceRoles();
assertThat(resourceRoles.size()).isEqualTo(1);
ResourceRole resourceRole = resourceRoles.iterator().next();
assertThat(resourceRole instanceof PotentialOwner).isTrue();
assertThat(resourceRole.getName()).isEqualTo("Task potential owner");
}
use of org.camunda.bpm.model.bpmn.instance.ResourceRole in project camunda-bpmn-model by camunda.
the class ResourceRolesTest method testGetHumanPerformer.
@Test
public void testGetHumanPerformer() {
UserTask userTask = modelInstance.getModelElementById("_7");
Collection<ResourceRole> resourceRoles = userTask.getResourceRoles();
assertThat(resourceRoles.size()).isEqualTo(1);
ResourceRole resourceRole = resourceRoles.iterator().next();
assertThat(resourceRole instanceof HumanPerformer).isTrue();
assertThat(resourceRole.getName()).isEqualTo("Task human performer");
}
use of org.camunda.bpm.model.bpmn.instance.ResourceRole in project camunda-bpmn-model by camunda.
the class ResourceRolesTest method testGetPerformer.
@Test
public void testGetPerformer() {
UserTask userTask = modelInstance.getModelElementById("_3");
Collection<ResourceRole> resourceRoles = userTask.getResourceRoles();
assertThat(resourceRoles.size()).isEqualTo(1);
ResourceRole resourceRole = resourceRoles.iterator().next();
assertThat(resourceRole instanceof Performer).isTrue();
assertThat(resourceRole.getName()).isEqualTo("Task performer");
}
Aggregations