use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseAsyncMultiInstanceBody.
@Deployment
public void testParseAsyncMultiInstanceBody() {
ActivityImpl innerTask = findActivityInDeployedProcessDefinition("miTask");
ActivityImpl miBody = innerTask.getParentFlowScopeActivity();
assertTrue(miBody.isAsyncBefore());
assertTrue(miBody.isAsyncAfter());
assertFalse(innerTask.isAsyncBefore());
assertFalse(innerTask.isAsyncAfter());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseIntermediateConditionalEvent.
@Deployment
public void testParseIntermediateConditionalEvent() {
ActivityImpl intermediateConditionalEvent = findActivityInDeployedProcessDefinition("intermediateConditionalEvent");
assertEquals(ActivityTypes.INTERMEDIATE_EVENT_CONDITIONAL, intermediateConditionalEvent.getProperties().get(BpmnProperties.TYPE));
assertEquals(IntermediateConditionalEventBehavior.class, intermediateConditionalEvent.getActivityBehavior().getClass());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseCompensationStartEvent.
@Deployment
public void testParseCompensationStartEvent() {
ActivityImpl compensationStartEvent = findActivityInDeployedProcessDefinition("compensationStartEvent");
assertEquals("compensationStartEvent", compensationStartEvent.getProperty("type"));
assertEquals(EventSubProcessStartEventActivityBehavior.class, compensationStartEvent.getActivityBehavior().getClass());
ActivityImpl compensationEventSubProcess = (ActivityImpl) compensationStartEvent.getFlowScope();
assertEquals(Boolean.TRUE, compensationEventSubProcess.getProperty(BpmnParse.PROPERTYNAME_IS_FOR_COMPENSATION));
ScopeImpl subprocess = compensationEventSubProcess.getFlowScope();
assertEquals(compensationEventSubProcess.getActivityId(), subprocess.getProperty(BpmnParse.PROPERTYNAME_COMPENSATION_HANDLER_ID));
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseEscalationBoundaryEvent.
@Deployment
public void testParseEscalationBoundaryEvent() {
ActivityImpl escalationBoundaryEvent = findActivityInDeployedProcessDefinition("escalationBoundaryEvent");
assertEquals(ActivityTypes.BOUNDARY_ESCALATION, escalationBoundaryEvent.getProperties().get(BpmnProperties.TYPE));
assertEquals(BoundaryEventActivityBehavior.class, escalationBoundaryEvent.getActivityBehavior().getClass());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseAsyncActivityWrappedInMultiInstanceBody.
@Deployment
public void testParseAsyncActivityWrappedInMultiInstanceBody() {
ActivityImpl innerTask = findActivityInDeployedProcessDefinition("miTask");
assertTrue(innerTask.isAsyncBefore());
assertTrue(innerTask.isAsyncAfter());
ActivityImpl miBody = innerTask.getParentFlowScopeActivity();
assertFalse(miBody.isAsyncBefore());
assertFalse(miBody.isAsyncAfter());
}
Aggregations