public static string getApplicationPathForDeployment(ProcessEngine engine, string deploymentId) { // get the name of the process application that made the deployment string processApplicationName = null; IdentityService identityService = engine.IdentityService; Authentication currentAuthentication = identityService.CurrentAuthentication; try { identityService.clearAuthentication(); processApplicationName = engine.ManagementService.getProcessApplicationForDeployment(deploymentId); } finally { identityService.Authentication = currentAuthentication; } if (string.ReferenceEquals(processApplicationName, null)) { // no a process application deployment return(null); } else { ProcessApplicationService processApplicationService = BpmPlatform.ProcessApplicationService; ProcessApplicationInfo processApplicationInfo = processApplicationService.getProcessApplicationInfo(processApplicationName); return(processApplicationInfo.Properties[org.camunda.bpm.application.ProcessApplicationInfo_Fields.PROP_SERVLET_CONTEXT_PATH]); } }
public MscManagedProcessApplication(ProcessApplicationInfo processApplicationInfo, ProcessApplicationReference processApplicationReference) { this.processApplicationInfo = processApplicationInfo; this.processApplicationReference = processApplicationReference; }