[ 
https://issues.apache.org/jira/browse/NIFI-2791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15605544#comment-15605544
 ] 

ASF GitHub Bot commented on NIFI-2791:
--------------------------------------

Github user JPercivall commented on the issue:

    https://github.com/apache/nifi/pull/1157
  
    @pvillard31 I addressed your comment and added to the unit test to verify 
that it properly handles the exceptions. A couple notes:
    
    1: The exception handling is not pretty. That said, I don't think there is 
a better/more concise way to do it since we're dealing with configurable 
reflection calls.
    2: Normally I would have the exception testing in individual tests with an 
"@Test(expected = AttributeExpressionLanguageException.class)" but since this 
is a large test class (that probably should be broken up) that tests all the EL 
and I wanted to keep it concise.


> Create a new Expression Language Function to support Java.lang.Math operations
> ------------------------------------------------------------------------------
>
>                 Key: NIFI-2791
>                 URL: https://issues.apache.org/jira/browse/NIFI-2791
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joseph Percivall
>            Assignee: Joseph Percivall
>             Fix For: 1.1.0
>
>
> Once EL is improved to support decimals (NIFI-1662) it will be desired to 
> support higher level math functions than are currently implemented. The 
> easiest way to do this is to provide access to the Math class[1]. This should 
> provide all the building blocks necessary to do any desired operations on 
> decimals.
> [1] https://docs.oracle.com/javase/7/docs/api/java/lang/Math.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to