Stored script on trigger condition

Hello,

It’s possible to use stored scripts on Opendistro trigger condition?
I was trying to use it, but I got error “Invalid script language”.

On queries, stored scripts works well.

Thanks

Can you show how you’re getting to this error? Is this a painless script?

Yes, it’s a painless script. Below some print screens of my process to get the error.