1 Reply Latest reply on Nov 4, 2016 10:23 AM by cfang

    Setting Transient Data

    richardmoore

      I have a situation where a process needs to set transient data variable but it has two potential sources for the value.

      1. If a specific system property is given that should be the value.
      2. Otherwise, I will need a batchlet to read a file to get 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.

        • 1. Re: Setting Transient Data
          cfang

          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

          JBERET-267

          Access job execution context data from job xml / JSL)