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 java.util.Map<String, org.camunda.bpm.container.impl.deployment.util.DeployedProcessArchive> processArchiveDeploymentMap = deployedProcessApplication.getProcessArchiveDeploymentMap(); IDictionary <string, DeployedProcessArchive> processArchiveDeploymentMap = deployedProcessApplication.ProcessArchiveDeploymentMap; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.container.impl.deployment.util.DeployedProcessArchive deployedProcessArchive = processArchiveDeploymentMap.get(processArchive.getName()); DeployedProcessArchive deployedProcessArchive = processArchiveDeploymentMap[processArchive.Name]; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.camunda.bpm.engine.ProcessEngine processEngine = serviceContainer.getServiceValue(org.camunda.bpm.container.impl.spi.ServiceTypes.PROCESS_ENGINE, processEngineName); ProcessEngine processEngine = serviceContainer.getServiceValue(ServiceTypes.PROCESS_ENGINE, processEngineName); // unregrister with the process engine. processEngine.ManagementService.unregisterProcessApplication(deployedProcessArchive.AllDeploymentIds, true); // delete the deployment if not disabled if (PropertyHelper.getBooleanProperty(processArchive.Properties, org.camunda.bpm.application.impl.metadata.spi.ProcessArchiveXml_Fields.PROP_IS_DELETE_UPON_UNDEPLOY, false)) { if (processEngine != null) { // always cascade & skip custom listeners deleteDeployment(deployedProcessArchive.PrimaryDeploymentId, processEngine.RepositoryService); } } }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: protected org.camunda.bpm.engine.impl.jobexecutor.JobExecutor getJobExecutorService(final org.camunda.bpm.container.impl.spi.PlatformServiceContainer serviceContainer) protected internal virtual JobExecutor getJobExecutorService(PlatformServiceContainer serviceContainer) { // lookup container managed job executor string jobAcquisitionName = processEngineXml.JobAcquisitionName; JobExecutor jobExecutor = serviceContainer.getServiceValue(ServiceTypes.JOB_EXECUTOR, jobAcquisitionName); return(jobExecutor); }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are not available in .NET: //ORIGINAL LINE: protected org.camunda.bpm.engine.ProcessEngine getProcessEngine(final org.camunda.bpm.container.impl.spi.PlatformServiceContainer serviceContainer, String defaultDeployToProcessEngineName) protected internal virtual ProcessEngine getProcessEngine(PlatformServiceContainer serviceContainer, string defaultDeployToProcessEngineName) { string processEngineName = processArchive.ProcessEngineName; if (!string.ReferenceEquals(processEngineName, null)) { ProcessEngine processEngine = serviceContainer.getServiceValue(ServiceTypes.PROCESS_ENGINE, processEngineName); ensureNotNull("Cannot deploy process archive '" + processArchive.Name + "' to process engine '" + processEngineName + "' no such process engine exists", "processEngine", processEngine); return(processEngine); } else { ProcessEngine processEngine = serviceContainer.getServiceValue(ServiceTypes.PROCESS_ENGINE, defaultDeployToProcessEngineName); ensureNotNull("Cannot deploy process archive '" + processArchive.Name + "' to default process: no such process engine exists", "processEngine", processEngine); return(processEngine); } }
public static ProcessEngine getDefaultProcessEngine(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; return(serviceContainer.getServiceValue(ServiceTypes.PROCESS_ENGINE, "default")); }
public static ProcessApplicationInfo getProcessApplicationInfo(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(org.camunda.bpm.container.impl.deployment.Attachments.PROCESS_APPLICATION); AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION); JmxManagedProcessApplication managedPa = serviceContainer.getServiceValue(ServiceTypes.PROCESS_APPLICATION, processApplication.Name); return(managedPa.ProcessApplicationInfo); }
public static IList <ProcessEngine> getProcessEngines(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.ProcessApplicationInfo processApplicationInfo = getProcessApplicationInfo(operationContext); ProcessApplicationInfo processApplicationInfo = getProcessApplicationInfo(operationContext); IList <ProcessEngine> processEngines = new List <ProcessEngine>(); foreach (ProcessApplicationDeploymentInfo deploymentInfo in processApplicationInfo.DeploymentInfo) { string processEngineName = deploymentInfo.ProcessEngineName; processEngines.Add((ProcessEngine)serviceContainer.getServiceValue(ServiceTypes.PROCESS_ENGINE, processEngineName)); } return(processEngines); }