protected internal virtual IDeployment deploy(IBpmnModelInstance modelInstance) { IDeploymentBuilder deploymentbuilder = processEngineConfiguration.RepositoryService.CreateDeployment(); deploymentbuilder.AddModelInstance("process0.bpmn", modelInstance); return(testRule.Deploy(deploymentbuilder)); }
protected internal virtual IDeployment deploy(IList <IBpmnModelInstance> modelInstances) { IDeploymentBuilder deploymentbuilder = processEngineConfiguration.RepositoryService.CreateDeployment(); for (int i = 0; i < modelInstances.Count; i++) { deploymentbuilder.AddModelInstance("process" + i + ".bpmn", modelInstances[i]); } return(testRule.Deploy(deploymentbuilder)); }
protected internal virtual string Deployment(IDeploymentBuilder deploymentBuilder, params IBpmnModelInstance[] bpmnModelInstances) { for (var i = 0; i < bpmnModelInstances.Length; i++) { var bpmnModelInstance = bpmnModelInstances[i]; deploymentBuilder.AddModelInstance("testProcess-" + i + ".bpmn", bpmnModelInstance); } return(DeploymentWithBuilder(deploymentBuilder)); }
protected internal virtual IDeploymentWithDefinitions Deploy(IDeploymentBuilder deploymentBuilder, IList <IBpmnModelInstance> bpmnModelInstances, IList <string> resources) { int i = 0; foreach (IBpmnModelInstance bpmnModelInstance in bpmnModelInstances) { deploymentBuilder.AddModelInstance(i + "_" + DefaultBpmnResourceName, bpmnModelInstance); i++; } foreach (string resource in resources) { deploymentBuilder.AddClasspathResource(resource); } return(Deploy(deploymentBuilder)); }