use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class FoxFailedJobParseListenerTest method testInnerMultiInstanceActivityWithFailedJobRetryTimeCycle.
@Deployment
public void testInnerMultiInstanceActivityWithFailedJobRetryTimeCycle() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("process");
ActivityImpl miBody = findMultiInstanceBody(pi, "task");
checkNotContainingFoxFailedJobConfig(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 BpmnParseTest method testParseSignalStartEvent.
@Deployment
public void testParseSignalStartEvent() {
ActivityImpl signalStartActivity = findActivityInDeployedProcessDefinition("start");
assertEquals(ActivityTypes.START_EVENT_SIGNAL, signalStartActivity.getProperty("type"));
assertEquals(NoneStartEventActivityBehavior.class, signalStartActivity.getActivityBehavior().getClass());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseCompensationEndEvent.
@Deployment
public void testParseCompensationEndEvent() {
ActivityImpl endEvent = findActivityInDeployedProcessDefinition("end");
assertEquals("compensationEndEvent", endEvent.getProperty("type"));
assertEquals(Boolean.TRUE, endEvent.getProperty(BpmnParse.PROPERTYNAME_THROWS_COMPENSATION));
assertEquals(CompensationEventActivityBehavior.class, endEvent.getActivityBehavior().getClass());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseEventSubprocessConditionalStartEvent.
@Deployment
public void testParseEventSubprocessConditionalStartEvent() {
ActivityImpl conditionalStartEventSubProcess = findActivityInDeployedProcessDefinition("conditionalStartEventSubProcess");
assertEquals(ActivityTypes.START_EVENT_CONDITIONAL, conditionalStartEventSubProcess.getProperties().get(BpmnProperties.TYPE));
assertEquals(EventSubProcessStartConditionalEventActivityBehavior.class, conditionalStartEventSubProcess.getActivityBehavior().getClass());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseAsyncBoundaryEvent.
@Deployment
public void testParseAsyncBoundaryEvent() {
ActivityImpl conditionalBoundaryEvent1 = findActivityInDeployedProcessDefinition("conditionalBoundaryEvent1");
ActivityImpl conditionalBoundaryEvent2 = findActivityInDeployedProcessDefinition("conditionalBoundaryEvent2");
assertTrue(conditionalBoundaryEvent1.isAsyncAfter());
assertTrue(conditionalBoundaryEvent1.isAsyncBefore());
assertFalse(conditionalBoundaryEvent2.isAsyncAfter());
assertFalse(conditionalBoundaryEvent2.isAsyncBefore());
}
Aggregations