Search in sources :

Example 1 with AbstractVariableScope

use of org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope in project camunda-bpm-platform by camunda.

the class ExpressionManager method getElContext.

public ELContext getElContext(VariableScope variableScope) {
    ELContext elContext = null;
    if (variableScope instanceof AbstractVariableScope) {
        AbstractVariableScope variableScopeImpl = (AbstractVariableScope) variableScope;
        elContext = variableScopeImpl.getCachedElContext();
    }
    if (elContext == null) {
        elContext = createElContext(variableScope);
        if (variableScope instanceof AbstractVariableScope) {
            ((AbstractVariableScope) variableScope).setCachedElContext(elContext);
        }
    }
    return elContext;
}
Also used : ELContext(org.camunda.bpm.engine.impl.javax.el.ELContext) AbstractVariableScope(org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope)

Example 2 with AbstractVariableScope

use of org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope in project camunda-bpm-platform by camunda.

the class AbstractVariableCmd method execute.

public Void execute(CommandContext commandContext) {
    this.commandContext = commandContext;
    AbstractVariableScope scope = getEntity();
    executeOperation(scope);
    ExecutionEntity contextExecution = getContextExecution();
    if (contextExecution != null) {
        contextExecution.dispatchDelayedEventsAndPerformOperation((Callback<PvmExecutionImpl, Void>) null);
    }
    if (!preventLogUserOperation) {
        logVariableOperation(scope);
    }
    return null;
}
Also used : ExecutionEntity(org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity) PvmExecutionImpl(org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl) AbstractVariableScope(org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope)

Aggregations

AbstractVariableScope (org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope)2 ELContext (org.camunda.bpm.engine.impl.javax.el.ELContext)1 ExecutionEntity (org.camunda.bpm.engine.impl.persistence.entity.ExecutionEntity)1 PvmExecutionImpl (org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl)1