use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MultiTenancyDeploymentQueryTest method setUp.
@Override
public void setUp() throws Exception {
BpmnModelInstance emptyProcess = Bpmn.createExecutableProcess().done();
deployment(emptyProcess);
deploymentForTenant(TENANT_ONE, emptyProcess);
deploymentForTenant(TENANT_TWO, emptyProcess);
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MultiTenancyJobQueryTest method setUp.
@Override
protected void setUp() {
BpmnModelInstance asyncTaskProcess = Bpmn.createExecutableProcess("testProcess").startEvent().userTask().camundaAsyncBefore().endEvent().done();
deployment(asyncTaskProcess);
deploymentForTenant(TENANT_ONE, asyncTaskProcess);
deploymentForTenant(TENANT_TWO, asyncTaskProcess);
runtimeService.createProcessInstanceByKey("testProcess").processDefinitionWithoutTenantId().execute();
runtimeService.createProcessInstanceByKey("testProcess").processDefinitionTenantId(TENANT_ONE).execute();
runtimeService.createProcessInstanceByKey("testProcess").processDefinitionTenantId(TENANT_TWO).execute();
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MultiTenancyProcessInstanceQueryTest method setUp.
@Override
protected void setUp() {
BpmnModelInstance oneTaskProcess = Bpmn.createExecutableProcess("testProcess").startEvent().userTask().endEvent().done();
deployment(oneTaskProcess);
deploymentForTenant(TENANT_ONE, oneTaskProcess);
deploymentForTenant(TENANT_TWO, oneTaskProcess);
runtimeService.createProcessInstanceByKey("testProcess").processDefinitionWithoutTenantId().execute();
runtimeService.createProcessInstanceByKey("testProcess").processDefinitionTenantId(TENANT_ONE).execute();
runtimeService.createProcessInstanceByKey("testProcess").processDefinitionTenantId(TENANT_TWO).execute();
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MultiTenancyHistoricActivityInstanceQueryTest method setUp.
@Override
protected void setUp() {
BpmnModelInstance oneTaskProcess = Bpmn.createExecutableProcess("testProcess").startEvent().endEvent().done();
deploymentForTenant(TENANT_ONE, oneTaskProcess);
deploymentForTenant(TENANT_TWO, oneTaskProcess);
startProcessInstanceForTenant(TENANT_ONE);
startProcessInstanceForTenant(TENANT_TWO);
}
use of org.camunda.bpm.model.bpmn.BpmnModelInstance in project camunda-bpm-platform by camunda.
the class MultiTenancyHistoricDetailFormPropertyQueryTest method setUp.
@Override
protected void setUp() throws IOException {
BpmnModelInstance oneTaskProcess = Bpmn.createExecutableProcess("testProcess").startEvent().userTask("userTask").camundaFormField().camundaId("myFormField").camundaType("string").camundaFormFieldDone().endEvent().done();
deploymentForTenant(TENANT_ONE, oneTaskProcess);
deploymentForTenant(TENANT_TWO, oneTaskProcess);
ProcessInstance processInstanceOne = startProcessInstanceForTenant(TENANT_ONE);
ProcessInstance processInstanceTwo = startProcessInstanceForTenant(TENANT_TWO);
completeUserTask(processInstanceOne);
completeUserTask(processInstanceTwo);
}
Aggregations