Re: How can datetime to month conversion failed in french language?

2017-04-09 Thread prabhu Mahendran
Jeff,

My actual data is in English(US).

consider sample data,


*1,12990,Mahe,May-17*
In this line i have get "May-17" and split it as 'May' and '17'.

Using below expression language..,



*${input.4:substringBefore('-'):toDate('MMM'):format('MM')}*In above query
it could convert 'May' into '05' value.

That can be work in my windows (English(US)).

That Same query not work in French OS windows(French(Swiss)).

It shows below error.

*org.apache.nifi.expression.language.exception.IllegalAttributeExpression:Cannot
parse attribute value as date:dateformat:MMM;attribute value:Mai*

In that exception it shows attribute value is 'Mai'.Those value is in
'French' but i had given my data is in 'May' [english only].

Can you suggest way to avoid this exception?


On Fri, Apr 7, 2017 at 11:40 PM, Jeff  wrote:

> Prabhu,
>
> I'll have to try this in NiFi myself.  I'll let you know what I find.
> What is the result of the EL you're using when you are trying it with
> French?
>
> On Fri, Apr 7, 2017 at 1:03 AM prabhu Mahendran 
> wrote:
>
>> jeff,
>>
>> Thanks for your reply.
>>
>> Attribute 'ds' having the '07/04/2017'.
>>
>> And  convert that into month using UpdateAttribute.
>>
>> ${ds:toDate('dd/MM/'):format('MMM')}.
>>
>> if i use that code in windows having language English(India) then it
>> worked.
>>
>> If i use that code in windows having language French(OS) it couldn't work.
>>
>> Can you suggest any way to solve that problem?
>>
>> On Fri, Apr 7, 2017 at 1:28 AM, Jeff  wrote:
>>
>> What is the expression language statement that you're attempting to use?
>>
>> On Thu, Apr 6, 2017 at 3:12 AM prabhu Mahendran 
>> wrote:
>>
>> In NiFi How JVM Check language of machine?
>>
>> is that take any default language like English(US) else System DateTime
>> Selected language?
>>
>> I face issue while converting datetime format into Month using expression
>> language with NiFi package installed with French OS.
>>
>> But it worked in English(US) Selected language.
>>
>> Can anyone help me to resolve this?
>>
>>
>>


Logging changes to workflow

2017-04-09 Thread HARRIOTT, John
Is it possible to log changes to a workflow so they can be captured by a 
central logging/auditing capability e.g. syslog.

This will allow security auditors to detect changes to a systems configuration 
e.g. addition/removal/modification of a processor(s).



Thanks



This email has been sent on behalf of one of the following companies within the 
BAE Systems Australia group of companies:

BAE Systems Australia Limited - Australian Company Number 008 423 005
BAE Systems Australia Defence Pty Limited - Australian Company Number 006 
870 846
BAE Systems Australia Logistics Pty Limited - Australian Company Number 086 
228 864

Our registered office is Evans Building, Taranaki Road, Edinburgh Parks,
Edinburgh, South Australia, 5111. If the identity of the sending company is
not clear from the content of this email please contact the sender.

This email and any attachments may contain confidential and legally
privileged information.  If you are not the intended recipient, do not copy or
disclose its content, but please reply to this email immediately and highlight
the error to the sender and then immediately delete the message.