示例#1
0
        private JobExecutorXml getJobExecutorXml(DeploymentOperation operationContext)
        {
            BpmPlatformXml bpmPlatformXml = operationContext.getAttachment(Attachments.BPM_PLATFORM_XML);
            JobExecutorXml jobExecutorXml = bpmPlatformXml.JobExecutor;

            return(jobExecutorXml);
        }
示例#2
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.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;

            serviceContainer.stopService(serviceName);
        }
示例#3
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.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;

            serviceContainer.stopService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_EXECUTOR);
        }
示例#4
0
        public override void performOperationStep(DeploymentOperation operationContext)
        {
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;

            BpmPlatformPlugins plugins = BpmPlatformPlugins.load(PluginsClassloader);

            JmxManagedBpmPlatformPlugins jmxManagedPlugins = new JmxManagedBpmPlatformPlugins(plugins);

            serviceContainer.startService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS, jmxManagedPlugins);
        }
示例#5
0
        public override URL getBpmPlatformXmlStream(DeploymentOperation operationcontext)
        {
            URL fileLocation = lookupBpmPlatformXml();

            if (fileLocation == null)
            {
                fileLocation = lookupBpmPlatformXmlFromCatalinaConfDirectory();
            }

            return(fileLocation);
        }
示例#6
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.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.application.AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);
            AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);

            // remove the service
            serviceContainer.stopService(ServiceTypes.PROCESS_APPLICATION, processApplication.Name);
        }
示例#7
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));
            }
        }
示例#8
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));
              }
            }
        }
示例#9
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.application.AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);
            AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.impl.spi.PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.impl.jmx.services.JmxManagedBpmPlatformPlugins plugins = serviceContainer.getService(org.camunda.bpm.container.impl.spi.ServiceTypes.BPM_PLATFORM, org.camunda.bpm.container.impl.RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS);
            JmxManagedBpmPlatformPlugins plugins = serviceContainer.getService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS);

            if (plugins != null)
            {
                foreach (BpmPlatformPlugin plugin in plugins.Value.Plugins)
                {
                    plugin.postProcessApplicationUndeploy(processApplication);
                }
            }
        }
示例#10
0
        public override void performOperationStep(DeploymentOperation operationContext)
        {
            PlatformServiceContainer serviceContainer = operationContext.ServiceContainer;

            serviceContainer.stopService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS);
        }
示例#11
0
 public override URL getBpmPlatformXmlStream(DeploymentOperation operationContext)
 {
     return(lookupBpmPlatformXml());
 }