Task context structure example
Task context example
Consider the following example to understand the structure of the task context. In this case, the structure is populated after several tasks have completed. For more information about the task context structure, see Task context structure.
The WORKFLOWVAR workflow contains two tasks named TASKVAR and TASKVAR1.
{
RC
var: {
key:val... },
"js" : {
"defId" : "04885fa7-c3ee-45ab-a1db-264f814fb86d",
"wksId" : "a842d20c-97d8-40c0-afee-7e617fbd911d",
"name" : "/WFVAR",
"schedTime" : "2023-02-09T14:44:32.250Z",
"id" : "a5ffa516-d6a0-4516-86ba-4490e586b9c8",
"wks" : "/WS_AGT_0"
},
"jobs" : {
"TASKVAR" : {
"wa" : {
"jobDef" : "/TASKVAR",
"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"
},
},
"TASKVAR2" : {
"wa" : {
"jobDef" : "/TASKVAR2",
"wksId" : "f0e04e03-aa27-4b20-9f5e-40eb5bf66b82",
"logon" : "[wauser]",
"name" : "TASKVAR2",
"rerunNum" : 0,
"id" : "44439148-be6e-41cd-bc84-f0093e47e481",
"jobDefId" : "3daae93c-6279-4af9-91cd-ae2a1807f306",
"wks" : "/WS_AGT_1"
}
}
}
}