Package org.camunda.bpm.engine.impl.task

Examples of org.camunda.bpm.engine.impl.task.TaskDefinition


    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof ClassDelegateTaskListener);
View Full Code Here


    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof DelegateExpressionTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof ExpressionTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof ClassDelegateTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof DelegateExpressionTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof ExpressionTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof ClassDelegateTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof DelegateExpressionTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof ExpressionTaskListener);
View Full Code Here

    // then
    assertEquals(0, activity.getListeners().size());

    HumanTaskActivityBehavior behavior = (HumanTaskActivityBehavior) activity.getActivityBehavior();
    TaskDefinition taskDefinition = behavior.getTaskDefinition();

    assertNotNull(taskDefinition);

    assertEquals(1, taskDefinition.getTaskListeners().size());

    List<TaskListener> createListeners = taskDefinition.getTaskListener(event);
    assertEquals(1, createListeners.size());
    TaskListener listener = createListeners.get(0);

    assertTrue(listener instanceof ClassDelegateTaskListener);
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.task.TaskDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.