Beispiel #1
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);
        }
Beispiel #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.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);
                }
            }
        }