use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseConditionalBoundaryEvent.
@Deployment
public void testParseConditionalBoundaryEvent() {
ActivityImpl conditionalBoundaryEvent = findActivityInDeployedProcessDefinition("conditionalBoundaryEvent");
assertEquals(ActivityTypes.BOUNDARY_CONDITIONAL, conditionalBoundaryEvent.getProperties().get(BpmnProperties.TYPE));
assertEquals(BoundaryConditionalEventActivityBehavior.class, conditionalBoundaryEvent.getActivityBehavior().getClass());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseEscalationStartEvent.
@Deployment
public void testParseEscalationStartEvent() {
ActivityImpl escalationStartEvent = findActivityInDeployedProcessDefinition("escalationStartEvent");
assertEquals(ActivityTypes.START_EVENT_ESCALATION, escalationStartEvent.getProperties().get(BpmnProperties.TYPE));
assertEquals(EventSubProcessStartEventActivityBehavior.class, escalationStartEvent.getActivityBehavior().getClass());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class BpmnParseTest method testParseAsyncActivityWrappedInMultiInstanceBodyWithAsyncMultiInstance.
@Deployment
public void testParseAsyncActivityWrappedInMultiInstanceBodyWithAsyncMultiInstance() {
ActivityImpl innerTask = findActivityInDeployedProcessDefinition("miTask");
assertEquals(true, innerTask.isAsyncBefore());
assertEquals(false, innerTask.isAsyncAfter());
ActivityImpl miBody = innerTask.getParentFlowScopeActivity();
assertEquals(false, miBody.isAsyncBefore());
assertEquals(true, miBody.isAsyncAfter());
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class CallActivityBehavior method onParseMigratingInstance.
@Override
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance) {
ActivityImpl callActivity = (ActivityImpl) migratingInstance.getSourceScope();
// must be maintained throughout migration
if (!callActivity.isScope()) {
ExecutionEntity callActivityExecution = migratingInstance.resolveRepresentativeExecution();
ExecutionEntity calledProcessInstance = callActivityExecution.getSubProcessInstance();
migratingInstance.addMigratingDependentInstance(new MigratingCalledProcessInstance(calledProcessInstance));
}
}
use of org.camunda.bpm.engine.impl.pvm.process.ActivityImpl in project camunda-bpm-platform by camunda.
the class CaseCallActivityBehavior method onParseMigratingInstance.
@Override
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance) {
ActivityImpl callActivity = (ActivityImpl) migratingInstance.getSourceScope();
// must be maintained throughout migration
if (!callActivity.isScope()) {
ExecutionEntity callActivityExecution = migratingInstance.resolveRepresentativeExecution();
CaseExecutionEntity calledCaseInstance = callActivityExecution.getSubCaseInstance();
migratingInstance.addMigratingDependentInstance(new MigratingCalledCaseInstance(calledCaseInstance));
}
}
Aggregations