I have a custom variable in Updatedate processor( state = success), now i want to access those variable in my groovy script which is in invokescriptor processor.
def status= flowFile.getAttribute('status')
i tried below mentioned both syntax as well
Attemp1:
if( status.equals("success")){
//
}
Attemp 2:
if(status == "success"){
}
the above 2 attempts flowFile.getAttribute('status') returnning null value.
Please correct my mistake!