public Object getResult(Object workingMemoryContext,
                            Object context,
                            Tuple tuple,
                            Declaration[] declarations,
                            WorkingMemory workingMemory) throws Exception {
        Object[]  localVars = ((MVELAccumulatorContext) context).getVariables();
        
        MVELAccumulatorFactoryContext factoryContext = (MVELAccumulatorFactoryContext)workingMemoryContext;
        VariableResolverFactory factory = factoryContext.getResultFactory();
        resultUnit.updateFactory( null, tuple, localVars, (InternalWorkingMemory) workingMemory, workingMemory.getGlobalResolver(), factory );

        return MVELSafeHelper.getEvaluator().executeExpression( this.result, null, factory );
    }
public Object getResult ( Object workingMemoryContext , Object context , Tuple tuple , Declaration [ ] declarations , WorkingMemory workingMemory ) throws Exception { Object [ ] localVars = ( ( MVELAccumulatorContext ) context ) . getVariables ( ) ; MVELAccumulatorFactoryContext factoryContext = ( MVELAccumulatorFactoryContext ) workingMemoryContext ; VariableResolverFactory factory = factoryContext . getResultFactory ( ) ; resultUnit . updateFactory ( null , tuple , localVars , ( InternalWorkingMemory ) workingMemory , workingMemory . getGlobalResolver ( ) , factory ) ; return MVELSafeHelper . getEvaluator ( ) . executeExpression ( this . result , null , factory ) ; }
/* (non-Javadoc)
@see org.kie.spi.Accumulator#getResult(java.lang.Object, org.kie.spi.Tuple, org.kie.rule.Declaration[], org.kie.WorkingMemory)