private Object delegateBusinessValueForLeftOperand(final SOperation operation, final Object valueToSetObjectWith, final SExpressionContext expressionContext, final boolean shouldPersistValue) throws SOperationExecutionException { final Object businessObject = extractObjectToInvokeFromContext(operation, expressionContext); final String methodName = extractMethodName(operation); final String parameterType = extractParameterType(operation); try { Object newValue = businessDataService.callJavaOperation(businessObject, valueToSetObjectWith, methodName, parameterType); if (shouldPersistValue) { newValue = entitiesActionsExecutor.executeAction(newValue, null, mergeEntityAction); } return newValue; } catch (final SBonitaException e) { throw new SOperationExecutionException(e); } }
private Object delegateBusinessValueForLeftOperand(final SOperation operation, final Object valueToSetObjectWith, final SExpressionContext expressionContext, final boolean shouldPersistValue) throws SOperationExecutionException { final Object businessObject = extractObjectToInvokeFromContext(operation, expressionContext); final String methodName = extractMethodName(operation); final String parameterType = extractParameterType(operation); try { Object newValue = businessDataService.callJavaOperation(businessObject, valueToSetObjectWith, methodName, parameterType); if (shouldPersistValue) { newValue = entitiesActionsExecutor.executeAction(newValue, null, mergeEntityAction); } return newValue; } catch (final SBonitaException e) { throw new SOperationExecutionException(e); } }