Can I access Trigger's script variables

Hello,

I was wondering if I can access the values in variables defined in a Trigger script ?

For example :

def users = [];
for (def uname : ctx.results[0].aggregations.failed_logins.buckets) {
    if (uname.doc_count>2) {
        users.add(uname.key);
    }
}

Can I access the content of users array in my actions ?

Thank you

Hey @hilo25 .
Did you find any solution to the problem?
I’m trying to do the same with no luck :frowning: