コード例 #1
0
        public override void performOperationStep(DeploymentOperation operationContext)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.impl.metadata.spi.JobExecutorXml jobExecutorXml = getJobExecutorXml(operationContext);
            JobExecutorXml jobExecutorXml = getJobExecutorXml(operationContext);

            // add a deployment operation step for each job acquisition
            foreach (JobAcquisitionXml jobAcquisitionXml in jobExecutorXml.JobAcquisitions)
            {
                operationContext.addStep(new StartJobAcquisitionStep(jobAcquisitionXml));
            }
        }
コード例 #2
0
        public override void performOperationStep(DeploymentOperation operationContext)
        {
            IDictionary<URL, ProcessesXml> processesXmls = operationContext.getAttachment(PROCESSES_XML_RESOURCES);

            foreach (KeyValuePair<URL, ProcessesXml> processesXml in processesXmls.SetOfKeyValuePairs())
            {
              foreach (ProcessArchiveXml processArchive in processesXml.Value.ProcessArchives)
              {
            // for each process archive add an individual operation step
            operationContext.addStep(createDeployProcessArchiveStep(processArchive, processesXml.Key));
              }
            }
        }