protected internal virtual Deployment deploy(BpmnModelInstance modelInstance) { DeploymentBuilder deploymentbuilder = processEngineConfiguration.RepositoryService.createDeployment(); deploymentbuilder.addModelInstance("process0.bpmn", modelInstance); return(testRule.deploy(deploymentbuilder)); }
protected internal virtual string deployment(DeploymentBuilder deploymentBuilder, params BpmnModelInstance[] bpmnModelInstances) { for (int i = 0; i < bpmnModelInstances.Length; i++) { BpmnModelInstance bpmnModelInstance = bpmnModelInstances[i]; deploymentBuilder.addModelInstance("testProcess-" + i + ".bpmn", bpmnModelInstance); } return(deploymentWithBuilder(deploymentBuilder)); }
protected internal virtual Deployment deploy(IList <BpmnModelInstance> modelInstances) { DeploymentBuilder deploymentbuilder = processEngineConfiguration.RepositoryService.createDeployment(); for (int i = 0; i < modelInstances.Count; i++) { deploymentbuilder.addModelInstance("process" + i + ".bpmn", modelInstances[i]); } return(testRule.deploy(deploymentbuilder)); }
public virtual void run() { DeploymentBuilder deploymentbuilder = engine.RepositoryService.createDeployment(); for (int i = 0; i < modelInstances.Count; i++) { deploymentbuilder.addModelInstance("process" + i + ".bpmn", modelInstances[i]); } deploymentbuilder.deploy(); }
protected internal virtual DeploymentWithDefinitions deploy(DeploymentBuilder deploymentBuilder, IList <BpmnModelInstance> bpmnModelInstances, IList <string> resources) { int i = 0; foreach (BpmnModelInstance bpmnModelInstance in bpmnModelInstances) { deploymentBuilder.addModelInstance(i + "_" + DEFAULT_BPMN_RESOURCE_NAME, bpmnModelInstance); i++; } foreach (string resource in resources) { deploymentBuilder.addClasspathResource(resource); } return(deploy(deploymentBuilder)); }