コード例 #1
0
        protected internal virtual Deployment deploy(BpmnModelInstance modelInstance)
        {
            DeploymentBuilder deploymentbuilder = processEngineConfiguration.RepositoryService.createDeployment();

            deploymentbuilder.addModelInstance("process0.bpmn", modelInstance);
            return(testRule.deploy(deploymentbuilder));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        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();
        }
コード例 #5
0
        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));
        }