Scriptable Java objects

A scriptable Java object is any Java object that is accessible through JavaScript, such as GlideRecord or GlideDateTime.

Any workflow activity can access scriptable Java objects, but any scriptable Java object declared within an activity is available only to that activity. Do not store scriptable Java objects as scratchpad variables. Instead, store primitive data from the Java object that a follow-up activity can use to reconstruct the Java object, such as the object Name or unique ID.