Context is a built-in object container for storing context variables.
Lifecycle is only the current template. If a task has a action set, its lifecycle is only the current action + template.
[action] ↓ template
SessionVar is a global variable, it can pass variable in multiple tasks. According to the order of execution of the task, from the first task of the action to the template, and then to the next task action to the template, until the end of the run.
task1: action ↓ task1: template ↓ task2: action ↓ task2: template ↓ ... ↓ taskn: action ↓ taskn: template
Comparison of var and sessionVar usage.
var sessionVar set variable: context.setVariable(...) context.setSessionVariable(...) get variable: context.getVariable(...) context.getSessionVariable(...) tag(example:get) <get value="..."/> <get value='...' valueScope="session"/>
a and b are var variable, c and list are sessionVar variable.
In the template, you can use <%%>, also use tag.