Example #1
0
 protected internal virtual void notifyBpmPlatformPlugins(BpmPlatformPlugins value, ProcessApplicationInterface processApplication)
 {
     foreach (BpmPlatformPlugin plugin in value.Plugins)
     {
         plugin.postProcessApplicationDeploy(processApplication);
     }
 }
Example #2
0
        /// <summary>
        /// {@inheritDoc} </summary>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override protected void performBoottime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, org.jboss.dmr.ModelNode model, org.jboss.as.controller.ServiceVerificationHandler verificationHandler, java.util.List<org.jboss.msc.service.ServiceController< ? >> newControllers) throws org.jboss.as.controller.OperationFailedException
        protected internal override void performBoottime <T1>(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler, IList <T1> newControllers)
        {
            // add deployment processors
            context.addStep(new AbstractDeploymentChainStepAnonymousInnerClass(this)
                            , OperationContext.Stage.RUNTIME);

            // create and register the MSC container delegate.
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate processEngineService = new org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate();
            MscRuntimeContainerDelegate processEngineService = new MscRuntimeContainerDelegate();

//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.jboss.msc.service.ServiceController<org.camunda.bpm.container.impl.jboss.service.MscRuntimeContainerDelegate> controller = context.getServiceTarget().addService(org.camunda.bpm.container.impl.jboss.service.ServiceNames.forMscRuntimeContainerDelegate(), processEngineService).addListener(verificationHandler).setInitialMode(org.jboss.msc.service.ServiceController.Mode.ACTIVE).install();
            ServiceController <MscRuntimeContainerDelegate> controller = context.ServiceTarget.addService(ServiceNames.forMscRuntimeContainerDelegate(), processEngineService).addListener(verificationHandler).setInitialMode(ServiceController.Mode.ACTIVE).install();

            newControllers.Add(controller);

            // discover and register bpm platform plugins
            BpmPlatformPlugins    plugins        = BpmPlatformPlugins.load(this.GetType().ClassLoader);
            MscBpmPlatformPlugins managedPlugins = new MscBpmPlatformPlugins(plugins);

            ServiceController <BpmPlatformPlugins> serviceController = context.ServiceTarget.addService(ServiceNames.forBpmPlatformPlugins(), managedPlugins).addListener(verificationHandler).setInitialMode(ServiceController.Mode.ACTIVE).install();

            newControllers.Add(serviceController);
        }
Example #3
0
        public override void stop(StopContext arg0)
        {
            ManagedReference reference = null;

            try
            {
                // get the process application component
                ProcessApplicationInterface processApplication = null;
                ComponentView componentView = paComponentViewInjector.OptionalValue;
                if (componentView != null)
                {
                    reference          = componentView.createInstance();
                    processApplication = (ProcessApplicationInterface)reference.Instance;
                }
                else
                {
                    processApplication = noViewProcessApplication.Value;
                }

                BpmPlatformPlugins        bpmPlatformPlugins = platformPluginsInjector.Value;
                IList <BpmPlatformPlugin> plugins            = bpmPlatformPlugins.Plugins;

                foreach (BpmPlatformPlugin bpmPlatformPlugin in plugins)
                {
                    bpmPlatformPlugin.postProcessApplicationUndeploy(processApplication);
                }
            }
            catch (Exception e)
            {
                LOGGER.log(Level.WARNING, "Exception while invoking BpmPlatformPlugin.postProcessApplicationUndeploy", e);
            }
            finally
            {
                if (reference != null)
                {
                    reference.release();
                }
            }
        }