use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class FoxFailedJobParseListenerTest method testUserTaskParseFailedJobRetryTimeCycle.
@Deployment(resources = { "org/camunda/bpm/engine/test/bpmn/parse/FoxFailedJobParseListenerTest.testUserTask.bpmn20.xml" })
public void testUserTaskParseFailedJobRetryTimeCycle() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("asyncUserTaskFailedJobRetryTimeCycle");
ActivityImpl userTask = findActivity(pi, "task");
checkFoxFailedJobConfig(userTask);
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class FoxFailedJobParseListenerTest method testTimerStartEventWithFailedJobRetryTimeCycle.
@Deployment(resources = { "org/camunda/bpm/engine/test/bpmn/parse/FoxFailedJobParseListenerTest.testTimer.bpmn20.xml" })
public void testTimerStartEventWithFailedJobRetryTimeCycle() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("startEventWithFailedJobRetryTimeCycle");
ActivityImpl startEvent = findActivity(pi, "startEventFailedJobRetryTimeCycle");
checkFoxFailedJobConfig(startEvent);
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class FoxFailedJobParseListenerTest method testAsyncUserTaskButWithoutParseFailedJobRetryTimeCycle.
@Deployment(resources = { "org/camunda/bpm/engine/test/bpmn/parse/FoxFailedJobParseListenerTest.testUserTask.bpmn20.xml" })
public void testAsyncUserTaskButWithoutParseFailedJobRetryTimeCycle() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("asyncUserTaskButWithoutFailedJobRetryTimeCycle");
ActivityImpl userTask = findActivity(pi, "asyncTaskWithoutFailedJobRetryTimeCycle");
checkNotContainingFoxFailedJobConfig(userTask);
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class FoxFailedJobParseListenerTest method testMultiInstanceBodyAndInnerActivityWithFailedJobRetryTimeCycle.
@Deployment
public void testMultiInstanceBodyAndInnerActivityWithFailedJobRetryTimeCycle() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("process");
ActivityImpl miBody = findMultiInstanceBody(pi, "task");
checkFoxFailedJobConfig(miBody);
ActivityImpl innerActivity = findActivity(pi, "task");
checkFoxFailedJobConfig(innerActivity);
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class EntitySerializationTest method testExecutionEntitySerialization.
public void testExecutionEntitySerialization() throws Exception {
ExecutionEntity execution = new ExecutionEntity();
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.getProcessInstanceStartContext().setInitial(activityImpl);
execution.setSuperExecution(new ExecutionEntity());
execution.setActive(true);
execution.setCanceled(false);
execution.setBusinessKey("myBusinessKey");
execution.setDeleteReason("no reason");
execution.setActivityInstanceId("123");
execution.setScope(false);
byte[] data = writeObject(execution);
execution = (ExecutionEntity) readObject(data);
assertEquals("myBusinessKey", execution.getBusinessKey());
assertEquals("no reason", execution.getDeleteReason());
assertEquals("123", execution.getActivityInstanceId());
}
Aggregations