/** * @deprecated since 7.2, use {@link #getBpmnExecutionContext()} */ @Deprecated public static ExecutionContext getExecutionContext() { return getBpmnExecutionContext(); }
/** * @deprecated since 7.2, use {@link #getBpmnExecutionContext()} */ @Deprecated public static ExecutionContext getExecutionContext() { return getBpmnExecutionContext(); }
protected DeploymentEntity getDeployment() { return Context.getBpmnExecutionContext().getDeployment(); }
/** * Returns the current delegation execution or null if the * execution is not available. * * @return the current delegation execution or null if not available */ public static DelegateExecution getCurrentDelegationExecution() { BpmnExecutionContext bpmnExecutionContext = Context.getBpmnExecutionContext(); ExecutionEntity executionEntity = null; if (bpmnExecutionContext != null) { executionEntity = bpmnExecutionContext.getExecution(); } return executionEntity; } }
/** * Returns the current delegation execution or null if the * execution is not available. * * @return the current delegation execution or null if not available */ public static DelegateExecution getCurrentDelegationExecution() { BpmnExecutionContext bpmnExecutionContext = Context.getBpmnExecutionContext(); ExecutionEntity executionEntity = null; if (bpmnExecutionContext != null) { executionEntity = bpmnExecutionContext.getExecution(); } return executionEntity; } }
protected DeploymentEntity getDeployment() { return Context.getBpmnExecutionContext().getDeployment(); }
protected ExecutionEntity getExecutionFromContext() { if(Context.getCommandContext() != null) { BpmnExecutionContext executionContext = Context.getBpmnExecutionContext(); if(executionContext != null) { return executionContext.getExecution(); } } return null; }
/** * @deprecated since 7.2, use {@link #getBpmnExecutionContext()} */ @Deprecated public static ExecutionContext getExecutionContext() { return getBpmnExecutionContext(); }
protected DeploymentEntity getDeployment() { return Context.getBpmnExecutionContext().getDeployment(); }
/** * Returns the current delegation execution or null if the * execution is not available. * * @return the current delegation execution or null if not available */ public static DelegateExecution getCurrentDelegationExecution() { BpmnExecutionContext bpmnExecutionContext = Context.getBpmnExecutionContext(); ExecutionEntity executionEntity = null; if (bpmnExecutionContext != null) { executionEntity = bpmnExecutionContext.getExecution(); } return executionEntity; } }
protected ExecutionEntity getExecutionFromContext() { if(Context.getCommandContext() != null) { BpmnExecutionContext executionContext = Context.getBpmnExecutionContext(); if(executionContext != null) { return executionContext.getExecution(); } } return null; }
@Override public Object sendTo(String endpointUri, String processVariables, String correlationId) { Collection<String> vars; if (processVariables == null) { vars = new LinkedList<String>(); ActivityExecution execution = Context.getBpmnExecutionContext() .getExecution(); final Set<String> variableNames = execution.getVariableNames(); if (variableNames != null) { for (String variableName : variableNames) { vars.add(variableName + "?"); } } } else if ("".equals(processVariables)) { vars = Collections.emptyList(); } else { vars = Arrays.asList(processVariables.split("\\s*,\\s*")); } return sendToInternal(endpointUri, vars, correlationId); }
private Object sendToInternal(String endpointUri, Collection<String> variables, String correlationKey) { ActivityExecution execution = (ActivityExecution) Context .getBpmnExecutionContext().getExecution(); Map<String, Object> variablesToSend = new HashMap<String, Object>(); for (String var : variables) {