Package org.camunda.bpm.engine.impl.pvm.process

Examples of org.camunda.bpm.engine.impl.pvm.process.ProcessDefinitionImpl


   ActivityImpl activityImpl = new ActivityImpl("test", null);
   activityImpl.getExecutionListeners().put("start", Collections.<ExecutionListener>singletonList(new TestExecutionListener()));
   execution.setActivity(activityImpl);

   ProcessDefinitionImpl processDefinitionImpl = new ProcessDefinitionImpl("test");
   processDefinitionImpl.getExecutionListeners().put("start", Collections.<ExecutionListener>singletonList(new TestExecutionListener()));
   execution.setProcessDefinition(processDefinitionImpl);

   TransitionImpl transitionImpl = new TransitionImpl("test", new ProcessDefinitionImpl("test"));
   transitionImpl.addExecutionListener(new TestExecutionListener());
   execution.setTransition(transitionImpl);

   execution.setTransitionBeingTaken(transitionImpl);
   execution.getProcessInstanceStartContext().setInitial(activityImpl);
View Full Code Here


    ProcessInstance pi = runtimeService.startProcessInstanceByKey("asyncUserTaskFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl userTask = processDefinition.findActivity("task");
    assertNotNull(userTask);

    this.checkFoxFailedJobConfig(userTask);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("asyncUserTaskFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl userTask = processDefinition.findActivity("task");
    assertNotNull(userTask);

    this.checkFoxFailedJobConfig(userTask);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("notAsyncUserTaskFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl userTask = processDefinition.findActivity("notAsyncTask");
    assertNotNull(userTask);

    this.checkNotContainingFoxFailedJobConfig(userTask);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("asyncUserTaskButWithoutFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl userTask = processDefinition.findActivity("asyncTaskWithoutFailedJobRetryTimeCycle");
    assertNotNull(userTask);
    assertTrue(userTask.isAsyncBefore());

    this.checkNotContainingFoxFailedJobConfig(userTask);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("boundaryEventWithFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl boundaryActivity = processDefinition.findActivity("boundaryTimerWithFailedJobRetryTimeCycle");
    assertNotNull(boundaryActivity);

    this.checkFoxFailedJobConfig(boundaryActivity);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("boundaryEventWithoutFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl boundaryActivity = processDefinition.findActivity("boundaryTimerWithoutFailedJobRetryTimeCycle");
    assertNotNull(boundaryActivity);

    this.checkNotContainingFoxFailedJobConfig(boundaryActivity);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("startEventWithFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl startEvent = processDefinition.findActivity("startEventFailedJobRetryTimeCycle");
    assertNotNull(startEvent);

    this.checkFoxFailedJobConfig(startEvent);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("intermediateTimerEventWithFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl timer = processDefinition.findActivity("timerEventWithFailedJobRetryTimeCycle");
    assertNotNull(timer);

    this.checkFoxFailedJobConfig(timer);
  }
View Full Code Here

    ProcessInstance pi = runtimeService.startProcessInstanceByKey("signalEventWithFailedJobRetryTimeCycle");

    assertTrue(pi instanceof ExecutionEntity);
    ExecutionEntity execution = (ExecutionEntity) pi;

    ProcessDefinitionImpl processDefinition = execution.getProcessDefinition();
    assertNotNull(processDefinition);

    ActivityImpl signal = processDefinition.findActivity("signalWithFailedJobRetryTimeCycle");
    assertNotNull(signal);

    this.checkFoxFailedJobConfig(signal);
  }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.pvm.process.ProcessDefinitionImpl

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.