Job context structure example

Job context example

Consider the following example to understand the structure of the job context. In this case, the structure is populated after several jobs have completed. For more information about the job context structure, see Job context structure.

The JOBVAR job stream contains two jobs named JOBAVR and JOBVAR1.

{
    RC  
    var: {
        key:val... },
      "js" : {
       "defId" : "04885fa7-c3ee-45ab-a1db-264f814fb86d",
       "wksId" : "a842d20c-97d8-40c0-afee-7e617fbd911d",
       "name" : "/JSVAR",
       "schedTime" : "2023-02-09T14:44:32.250Z",
       "id" : "a5ffa516-d6a0-4516-86ba-4490e586b9c8",
       "wks" : "/WS_AGT_0"
      },
  "jobs" : {
   "JOBVAR" : {
    "wa" : {
     "jobDef" : "/JOBVAR",
     "wksId" : "a842d20c-97d8-40c0-afee-7e617fbd911d",
     "logon" : "[wauser]",
     "name" : "JOBVAR",
     "rerunNum" : 0,
     "id" : "c462119a-c65d-4963-a18f-584088ead26d",
     "jobDefId" : "39e3369d-0380-4976-9f69-e7fb8eb005e4",
     "wks" : "/WS_AGT_0"
    },
   }, 
   "JOBVAR2" : { 
     "wa" : { 
        "jobDef" : "/JOBVAR2", 
        "wksId" : "f0e04e03-aa27-4b20-9f5e-40eb5bf66b82", 
        "logon" : "[wauser]", 
        "name" : "JOBVAR2", 
        "rerunNum" : 0, 
        "id" : "44439148-be6e-41cd-bc84-f0093e47e481", 
        "jobDefId" : "3daae93c-6279-4af9-91cd-ae2a1807f306", 
        "wks" : "/WS_AGT_1" 
      } 
    } 
  } 
}