public static ProcessApplicationReference getTargetProcessApplication(String deploymentId) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); ProcessApplicationReference processApplicationForDeployment = processApplicationManager.getProcessApplicationForDeployment(deploymentId); return processApplicationForDeployment; }
public static ProcessApplicationReference getTargetProcessApplication(String deploymentId) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); ProcessApplicationReference processApplicationForDeployment = processApplicationManager.getProcessApplicationForDeployment(deploymentId); return processApplicationForDeployment; }
public static boolean areProcessApplicationsRegistered() { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); return processApplicationManager.hasRegistrations(); }
public static boolean areProcessApplicationsRegistered() { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); return processApplicationManager.hasRegistrations(); }
public static String assertAndEnsureNoProcessApplicationsRegistered(ProcessEngine processEngine) { ProcessEngineConfigurationImpl engineConfiguration = (ProcessEngineConfigurationImpl) processEngine.getProcessEngineConfiguration(); ProcessApplicationManager processApplicationManager = engineConfiguration.getProcessApplicationManager(); if (processApplicationManager.hasRegistrations()) { processApplicationManager.clearRegistrations(); return "There are still process applications registered"; } else { return null; } }
public static String assertAndEnsureNoProcessApplicationsRegistered(ProcessEngine processEngine) { ProcessEngineConfigurationImpl engineConfiguration = (ProcessEngineConfigurationImpl) processEngine.getProcessEngineConfiguration(); ProcessApplicationManager processApplicationManager = engineConfiguration.getProcessApplicationManager(); if (processApplicationManager.hasRegistrations()) { processApplicationManager.clearRegistrations(); return "There are still process applications registered"; } else { return null; } }
protected ProcessApplicationReference getProcessApplicationForDeployment(String deploymentId) { ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); return processApplicationManager.getProcessApplicationForDeployment(deploymentId); }
private static void loggContextSwitchDetails(ExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFound(execution, processApplicationManager); } }
private static void loggContextSwitchDetails(CaseExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFoundForCaseExecution(execution, processApplicationManager); } }
private static void loggContextSwitchDetails(CaseExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFoundForCaseExecution(execution, processApplicationManager); } }
private static void loggContextSwitchDetails(ExecutionEntity execution) { final CoreExecutionContext<? extends CoreExecution> executionContext = Context.getCoreExecutionContext(); // only log for first atomic op: if(executionContext == null ||( executionContext.getExecution() != execution) ) { ProcessApplicationManager processApplicationManager = Context.getProcessEngineConfiguration().getProcessApplicationManager(); LOG.debugNoTargetProcessApplicationFound(execution, processApplicationManager); } }
public ProcessApplicationRegistration execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); final ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); return processApplicationManager.registerProcessApplicationForDeployments(deploymentsToRegister, reference); }
public ProcessApplicationRegistration execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); final ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); return processApplicationManager.registerProcessApplicationForDeployments(deploymentsToRegister, reference); }
public Void execute(CommandContext commandContext) { if(deploymentIds == null) { throw new ProcessEngineException("Deployment Ids cannot be null."); } commandContext.getAuthorizationManager().checkCamundaAdmin(); Context.getProcessEngineConfiguration() .getProcessApplicationManager() .unregisterProcessApplicationForDeployments(deploymentIds, removeProcessesFromCache); return null; }
public Void execute(CommandContext commandContext) { if(deploymentIds == null) { throw new ProcessEngineException("Deployment Ids cannot be null."); } commandContext.getAuthorizationManager().checkCamundaAdmin(); Context.getProcessEngineConfiguration() .getProcessApplicationManager() .unregisterProcessApplicationForDeployments(deploymentIds, removeProcessesFromCache); return null; }
public String execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); ProcessApplicationReference reference = Context.getProcessEngineConfiguration() .getProcessApplicationManager() .getProcessApplicationForDeployment(deploymentId); if(reference != null) { return reference.getName(); } else { return null; } }
public String execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); ProcessApplicationReference reference = Context.getProcessEngineConfiguration() .getProcessApplicationManager() .getProcessApplicationForDeployment(deploymentId); if(reference != null) { return reference.getName(); } else { return null; } }
public ProcessApplicationReference execute(CommandContext commandContext) { ProcessDefinitionEntity definition = commandContext .getProcessDefinitionManager() .findLatestProcessDefinitionByKey(PROCESS_ID); String deploymentId = definition.getDeploymentId(); ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); return processApplicationManager.getProcessApplicationForDeployment(deploymentId); } });
.getProcessApplicationManager() .getProcessApplicationForDeployment(deploymentId);
.getProcessApplicationManager() .getProcessApplicationForDeployment(deploymentId);