I have a situation where a process needs to set transient data variable but it has two potential sources for the value.
Is there a way from the JSL to set a transient data variable?
If so, I was planning to make the batchlet check to see if the transient data variable was already set or not. If set then
don't read but just exit with COMPLETED, otherwise read the file for the value.
No, there is no way to set transient data from JSL. In fact, job execution or step execution transient data is not exposed to JSL at all.
In the future, we may support referencing job/step execution transient data from job xml (see
Access job execution context data from job xml / JSL)