snippets/get-servlet-context-by-process-definition/src/main/java/org/example/get_servlet_context_by_process_definition/ProcessApplicationHelper.java
public static String getServletContextPath(String processDefinitionId) {
		ProcessApplicationInfo processApplicationInfo = getProcessApplicationInfo(processDefinitionId);
		if (processApplicationInfo == null) {
			return null;
		}
		return processApplicationInfo.getProperties().get(
				ProcessApplicationInfo.PROP_SERVLET_CONTEXT_PATH);
	}
public static String getServletContextPath(String processDefinitionId) {
		ProcessApplicationInfo processApplicationInfo = getProcessApplicationInfo(processDefinitionId);
		if (processApplicationInfo == null) {
			return null;
		}
		return processApplicationInfo.getProperties().get(
				ProcessApplicationInfo.PROP_SERVLET_CONTEXT_PATH);
	}
Retrieve the servlet context path of a process definition from any process engine.