ymlkey: use this to point to a var containing the content of yml
path: this is a yq like path to use to query/select the node/sub elements/wildcard matched reslt
reg: this is the var name to register the queried value
ymlkey: not required at all
path: this is a path to address an object then follow by dot . assignment for sub element
localOnly: register the result to local func scope but not global runtime scope
collect: register the result to be an yml array/list of values
you can use wildcard format to match your selection criteria
datapath: format is like a.b.c(name=fr*).value, following the yq path format:
vars:
query_name: jason
student:
name: Tom
gender: Male
school: Sydney Grammar
nsw:
sydney:
- sg:
student:
name: Grace
gender: Female
school: MLC
- kings:
student:
name: Emily
gender: Female
school: KINGS
chatswood:
- chatswood_high:
student:
name: Jason
gender: Mail
school: Public High School
tasks:
- name: task
task:
- func: cmd
vars:
ymlstr: |
student:
name: jason
gender: Male
school: The Kings
do:
- name: query
desc: query using ref var ymlstr and query a registered var by default in global
cmd:
ymlkey: ymlstr
path: student.school
reg: school_name
- func: cmd
do:
- name: print
cmd: '{{.school_name}}'
#--------------------------------------------------------------------
- func: cmd
vars:
ymlstr: |
student: |
name: jason
gender: Male
school: The Kings
do:
- name: query
desc: query using ref var ymlstr and query a registered var by default in global
cmd:
ymlkey: ymlstr
path: student
reg: student_info
- func: cmd
do:
- name: print
cmd: '{{.student_info}}'
#--------------------------------------------------------------------
- func: cmd
vars:
ymlstr: |
student:
name: jason
gender: Male
school: The Kings
do:
- name: query
desc: query and query a registered var in local
cmd:
ymlkey: ymlstr
path: student.school
reg: local_school_name
flags: [localOnly]
- func: cmd
do:
- name: print
cmd: '{{.local_school_name}}'
- func: cmd
#--------------------------------------------------------------------
do:
- name: query
desc: query from cached vars only
cmd:
path: nsw.sydney.sg.student.school
reg: data_school_name
- func: cmd
do:
- name: print
cmd: '{{.data_school_name}}'
#--------------------------------------------------------------------
- func: cmd
do:
- name: query
desc: query from cached vars and put result into a list/array
cmd:
path: nsw.sydney.**.student.school
reg: school_name_list
flags: [collect]
- name: printObj
cmd: '{{.school_name_list}}'
- name: print
cmd: '{{.school_name_list}}'
#--------------------------------------------------------------------
- func: cmd
do:
- name: query
desc: query a sub node
cmd:
path: nsw.sydney
reg: city
flags: [collect]
- name: printObj
cmd: '{{.city}}'
- name: print
cmd: '{{.city}}'
#--------------------------------------------------------------------
- func: cmd
do:
- name: query
desc: query a selected indexed node from a array
cmd:
path: nsw.sydney.[1]
reg: city1
- name: printObj
cmd: '{{.city1}}'
- name: print
cmd: '{{.city1}}'
- func: cmd
#--------------------------------------------------------------------
do:
- name: query
desc: query all nodes from an array
cmd:
path: nsw.sydney.[*]
reg: cityall
- name: printObj
cmd: '{{.cityall}}'
- name: print
cmd: '{{.cityall}}'
#--------------------------------------------------------------------
#TO TEST
- func: cmd
do:
- name: query
desc: query result matching the criteria
cmd:
path: nsw.sydney.[*].*(name==Emily)
reg: studentx
- name: printObj
cmd: '{{.studentx}}'
- name: print
cmd: '{{.studentx}}'
- func: cmd
do:
- name: query
desc: query result matching the criteria
cmd:
path: nsw.sydney.[1].*(name==Emily)
reg: studenty
- name: printObj
cmd: '{{.studenty}}'
- func: cmd
do:
- name: query
desc: query result matching the criteria
cmd:
path: nsw.sydney.**(name==Emily)
reg: studentz
- name: printObj
cmd: '{{.studentz}}'
- func: cmd
do:
- name: query
desc: query result matching the criteria
cmd:
path: nsw.sydney.[*].kings(name==Emily)
reg: studentm
- name: printObj
cmd: '{{.studentm}}'
- func: cmd
do:
- name: query
desc: query result matching the criteria
cmd:
path: nsw.sydney.[*].*(name==Grace)
reg: studentn
- name: printObj
cmd: '{{.studentn}}'
- func: cmd
do:
- name: query
desc: query result matching the criteria
cmd:
path: nsw.chatswood.[*]
reg: studento
- name: printObj
cmd: '{{.studento}}'
#--------------------------------------------------------------------
- func: cmd
do:
- name: query
desc: query and register result as a yml string instead of object
cmd:
path: nsw.
reg: city2
flags: [ymlOnly]
- name: trace
cmd: ====>
- name: printObj
cmd: '{{.city2}}'
- name: print
cmd: '{{.city2}}'
- name: print
cmd: '{{.city2|len}}'
- name: trace
cmd: <====
#--------------------------------------------------------------------
- func: cmd
do:
- name: query
desc: query result from yml file using refdir
cmd:
ymlfile: d0100.yml
refdir: ./tests/functests
path: nsw.
reg: city2
flags: [ymlOnly]
- name: print
cmd: '{{.city2}}'
#--------------------------------------------------------------------
- func: cmd
do:
- name: query
desc: query result from yml file using implicit global refdir
cmd:
ymlfile: d0100.yml
path: nsw.
reg: city2
flags: [ymlOnly]
- name: print
cmd: '{{.city2}}'
loading [Config]: ./tests/functests/upconfig.yml
Main config:
Version -> 1.0.0
RefDir -> ./tests/functests
WorkDir -> cwd
AbsWorkDir -> /up_project/up
TaskFile -> c0100
Verbose -> vvv
ModuleName -> self
ShellType -> /bin/sh
MaxCallLayers -> 8
Timeout -> 3600000
MaxModuelCallLayers -> 256
EntryTask -> task
ModRepoUsernameRef ->
ModRepoPasswordRef ->
work dir: /up_project/up
-exec task: task
loading [Task]: ./tests/functests/c0100
module: [self], instance id: [dev], exec profile: []
profile - envVars:
(*core.Cache)({
})
Task1: [task ==> task: ]
-Step1:
self: final context exec vars:
(*core.Cache)({
"student": {
"name": "Tom",
"gender": "Male",
"school": "Sydney Grammar"
},
"nsw": {
"sydney": {
{
"sg": {
"student": {
"name": "Grace",
"gender": "Female",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"gender": "Female",
"school": "KINGS"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"gender": "Mail",
"school": "Public High School",
"name": "Jason"
}
}
}
}
},
"up_runtime_task_layer_number": 0,
"ymlstr": "student:\n name: jason\n gender: Male\n school: The Kings\n",
"query_name": "jason"
})
~SubStep1: [query: query using ref var ymlstr and query a registered var by default in global ]
-Step2:
self: final context exec vars:
(*core.Cache)({
"nsw": {
"sydney": {
{
"sg": {
"student": {
"school": "MLC",
"name": "Grace",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"school": "KINGS",
"name": "Emily",
"gender": "Female"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"gender": "Mail",
"school": "Public High School",
"name": "Jason"
}
}
}
}
},
"query_name": "jason",
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"school_name": (*string)("The Kings"),
"up_runtime_task_layer_number": 0
})
~SubStep1: [print: ]
The Kings
-Step3:
self: final context exec vars:
(*core.Cache)({
"school_name": (*string)("The Kings"),
"nsw": {
"sydney": {
{
"sg": {
"student": {
"gender": "Female",
"school": "MLC",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
}
},
"up_runtime_task_layer_number": 0,
"ymlstr": "student: |\n name: jason\n gender: Male\n school: The Kings\n",
"query_name": "jason",
"student": {
"name": "Tom",
"gender": "Male",
"school": "Sydney Grammar"
}
})
~SubStep1: [query: query using ref var ymlstr and query a registered var by default in global ]
-Step4:
self: final context exec vars:
(*core.Cache)({
"nsw": {
"sydney": {
{
"sg": {
"student": {
"school": "MLC",
"name": "Grace",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
}
},
"query_name": "jason",
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"name": "jason",
"gender": "Male",
"school": "The Kings"
}),
"up_runtime_task_layer_number": 0
})
~SubStep1: [print: ]
map[gender:Male name:jason school:The Kings]
-Step5:
self: final context exec vars:
(*core.Cache)({
"nsw": {
"sydney": {
{
"sg": {
"student": {
"school": "MLC",
"name": "Grace",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
}
},
"query_name": "jason",
"student": {
"school": "Sydney Grammar",
"name": "Tom",
"gender": "Male"
},
"up_runtime_task_layer_number": 0,
"ymlstr": "student:\n name: jason\n gender: Male\n school: The Kings\n",
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"school": "The Kings",
"name": "jason",
"gender": "Male"
})
})
~SubStep1: [query: query and query a registered var in local ]
-Step6:
self: final context exec vars:
(*core.Cache)({
"student_info": (*map[interface {}]interface {})({
"school": "The Kings",
"name": "jason",
"gender": "Male"
}),
"up_runtime_task_layer_number": 0,
"nsw": {
"sydney": {
{
"sg": {
"student": {
"gender": "Female",
"school": "MLC",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"name": "Jason",
"gender": "Mail",
"school": "Public High School"
}
}
}
}
},
"query_name": "jason",
"student": {
"school": "Sydney Grammar",
"name": "Tom",
"gender": "Male"
},
"school_name": (*string)("The Kings")
})
~SubStep1: [print: ]
None
-Step7:
self: final context exec vars:
(*core.Cache)({
"nsw": {
"chatswood": {
{
"chatswood_high": {
"student": {
"name": "Jason",
"gender": "Mail",
"school": "Public High School"
}
}
}
},
"sydney": {
{
"sg": {
"student": {
"gender": "Female",
"school": "MLC",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
}
},
"query_name": "jason",
"student": {
"name": "Tom",
"gender": "Male",
"school": "Sydney Grammar"
},
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"school": "The Kings",
"name": "jason",
"gender": "Male"
}),
"up_runtime_task_layer_number": 0
})
~SubStep1: [query: query from cached vars only ]
-Step8:
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"name": "jason",
"gender": "Male",
"school": "The Kings"
}),
"data_school_name": "",
"nsw": {
"sydney": {
{
"sg": {
"student": {
"school": "MLC",
"name": "Grace",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"school": "KINGS",
"name": "Emily",
"gender": "Female"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"name": "Jason",
"gender": "Mail",
"school": "Public High School"
}
}
}
}
},
"query_name": "jason",
"student": {
"name": "Tom",
"gender": "Male",
"school": "Sydney Grammar"
}
})
~SubStep1: [print: ]
-Step9:
self: final context exec vars:
(*core.Cache)({
"query_name": "jason",
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"gender": "Male",
"school": "The Kings",
"name": "jason"
}),
"data_school_name": "",
"nsw": {
"chatswood": {
{
"chatswood_high": {
"student": {
"name": "Jason",
"gender": "Mail",
"school": "Public High School"
}
}
}
},
"sydney": {
{
"sg": {
"student": {
"school": "MLC",
"name": "Grace",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"gender": "Female",
"school": "KINGS"
}
}
}
}
},
"up_runtime_task_layer_number": 0
})
~SubStep1: [query: query from cached vars and put result into a list/array ]
~SubStep2: [printObj: ]
object:
[MLC KINGS]: (interface {}) <nil>
~SubStep3: [print: ]
[MLC KINGS]
-Step10:
self: final context exec vars:
(*core.Cache)({
"student": {
"name": "Tom",
"gender": "Male",
"school": "Sydney Grammar"
},
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"gender": "Male",
"school": "The Kings",
"name": "jason"
}),
"up_runtime_task_layer_number": 0,
"data_school_name": "",
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"nsw": {
"chatswood": {
{
"chatswood_high": {
"student": {
"name": "Jason",
"gender": "Mail",
"school": "Public High School"
}
}
}
},
"sydney": {
{
"sg": {
"student": {
"school": "MLC",
"name": "Grace",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"gender": "Female",
"school": "KINGS"
}
}
}
}
},
"query_name": "jason"
})
~SubStep1: [query: query a sub node ]
~SubStep2: [printObj: ]
object:
[[map[sg:map[student:map[gender:Female name:Grace school:MLC]]] map[kings:map[student:map[gender:Female name:Emily school:KINGS]]]]]: (interface {}) <nil>
~SubStep3: [print: ]
[[map[sg:map[student:map[gender:Female name:Grace school:MLC]]] map[kings:map[student:map[gender:Female name:Emily school:KINGS]]]]]
-Step11:
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"nsw": {
"sydney": {
{
"sg": {
"student": {
"gender": "Female",
"school": "MLC",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
}
},
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"gender": "Male",
"school": "The Kings",
"name": "jason"
}),
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}
}
}),
"query_name": "jason",
"student": {
"school": "Sydney Grammar",
"name": "Tom",
"gender": "Male"
},
"data_school_name": ""
})
~SubStep1: [query: query a selected indexed node from a array ]
~SubStep2: [printObj: ]
object:
map[kings:map[student:map[gender:Female name:Emily school:KINGS]]]: (interface {}) <nil>
~SubStep3: [print: ]
map[kings:map[student:map[gender:Female name:Emily school:KINGS]]]
-Step12:
self: final context exec vars:
(*core.Cache)({
"student": {
"school": "Sydney Grammar",
"name": "Tom",
"gender": "Male"
},
"student_info": (*map[interface {}]interface {})({
"name": "jason",
"gender": "Male",
"school": "The Kings"
}),
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"school_name": (*string)("The Kings"),
"nsw": {
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
},
"sydney": {
{
"sg": {
"student": {
"school": "MLC",
"name": "Grace",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"school": "KINGS",
"name": "Emily",
"gender": "Female"
}
}
}
}
},
"up_runtime_task_layer_number": 0,
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}
}
}),
"query_name": "jason",
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}),
"data_school_name": ""
})
~SubStep1: [query: query all nodes from an array ]
~SubStep2: [printObj: ]
object:
map[kings:map[student:map[gender:Female name:Emily school:KINGS]] sg:map[student:map[gender:Female name:Grace school:MLC]]]: (interface {}) <nil>
~SubStep3: [print: ]
map[kings:map[student:map[gender:Female name:Emily school:KINGS]] sg:map[student:map[gender:Female name:Grace school:MLC]]]
-Step13:
self: final context exec vars:
(*core.Cache)({
"data_school_name": "",
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"up_runtime_task_layer_number": 0,
"student_info": (*map[interface {}]interface {})({
"gender": "Male",
"school": "The Kings",
"name": "jason"
}),
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}),
"nsw": {
"chatswood": {
{
"chatswood_high": {
"student": {
"name": "Jason",
"gender": "Mail",
"school": "Public High School"
}
}
}
},
"sydney": {
{
"sg": {
"student": {
"name": "Grace",
"gender": "Female",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"school": "KINGS",
"name": "Emily",
"gender": "Female"
}
}
}
}
},
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
},
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}),
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}
}
}),
"query_name": "jason",
"school_name": (*string)("The Kings")
})
~SubStep1: [query: query result matching the criteria ]
~SubStep2: [printObj: ]
object:
map[gender:Female name:Emily school:KINGS]: (interface {}) <nil>
~SubStep3: [print: ]
map[gender:Female name:Emily school:KINGS]
-Step14:
self: final context exec vars:
(*core.Cache)({
"student_info": (*map[interface {}]interface {})({
"name": "jason",
"gender": "Male",
"school": "The Kings"
}),
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}),
"studentx": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"nsw": {
"sydney": {
{
"sg": {
"student": {
"gender": "Female",
"school": "MLC",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"school": "KINGS",
"name": "Emily",
"gender": "Female"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
}
},
"query_name": "jason",
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}
}
}),
"data_school_name": "",
"student": {
"school": "Sydney Grammar",
"name": "Tom",
"gender": "Male"
},
"school_name": (*string)("The Kings"),
"cityall": (*map[interface {}]interface {})({
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
},
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
}
}),
"up_runtime_task_layer_number": 0
})
~SubStep1: [query: query result matching the criteria ]
~SubStep2: [printObj: ]
object:
map[gender:Female name:Emily school:KINGS]: (interface {}) <nil>
-Step15:
self: final context exec vars:
(*core.Cache)({
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}),
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"data_school_name": "",
"student_info": (*map[interface {}]interface {})({
"school": "The Kings",
"name": "jason",
"gender": "Male"
}),
"studentx": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}
}
}),
"up_runtime_task_layer_number": 0,
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"studenty": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"nsw": {
"sydney": {
{
"sg": {
"student": {
"gender": "Female",
"school": "MLC",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"gender": "Mail",
"school": "Public High School",
"name": "Jason"
}
}
}
}
},
"school_name": (*string)("The Kings"),
"query_name": "jason",
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
},
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
})
})
~SubStep1: [query: query result matching the criteria ]
~SubStep2: [printObj: ]
object:
map[gender:Female name:Emily school:KINGS]: (interface {}) <nil>
-Step16:
self: final context exec vars:
(*core.Cache)({
"up_runtime_task_layer_number": 0,
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"name": "Grace",
"school": "MLC",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}
}
}),
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"data_school_name": "",
"query_name": "jason",
"school_name": (*string)("The Kings"),
"studentx": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}),
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
},
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}),
"studenty": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"student_info": (*map[interface {}]interface {})({
"gender": "Male",
"school": "The Kings",
"name": "jason"
}),
"studentz": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"student": {
"school": "Sydney Grammar",
"name": "Tom",
"gender": "Male"
},
"nsw": {
"sydney": {
{
"sg": {
"student": {
"name": "Grace",
"gender": "Female",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"gender": "Female",
"school": "KINGS"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
}
}
})
~SubStep1: [query: query result matching the criteria ]
~SubStep2: [printObj: ]
object:
map[gender:Female name:Emily school:KINGS]: (interface {}) <nil>
-Step17:
self: final context exec vars:
(*core.Cache)({
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
},
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}),
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}
}
}),
"studentx": (*map[interface {}]interface {})({
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}),
"studenty": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"query_name": "jason",
"school_name": (*string)("The Kings"),
"data_school_name": "",
"studentz": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"studentm": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"student_info": (*map[interface {}]interface {})({
"gender": "Male",
"school": "The Kings",
"name": "jason"
}),
"up_runtime_task_layer_number": 0,
"nsw": {
"chatswood": {
{
"chatswood_high": {
"student": {
"school": "Public High School",
"name": "Jason",
"gender": "Mail"
}
}
}
},
"sydney": {
{
"sg": {
"student": {
"name": "Grace",
"gender": "Female",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
}
},
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
})
})
~SubStep1: [query: query result matching the criteria ]
~SubStep2: [printObj: ]
object:
map[gender:Female name:Grace school:MLC]: (interface {}) <nil>
-Step18:
self: final context exec vars:
(*core.Cache)({
"student": {
"name": "Tom",
"gender": "Male",
"school": "Sydney Grammar"
},
"nsw": {
"sydney": {
{
"sg": {
"student": {
"name": "Grace",
"gender": "Female",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"gender": "Female",
"school": "KINGS"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"gender": "Mail",
"school": "Public High School",
"name": "Jason"
}
}
}
}
},
"studentn": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Grace",
"school": "MLC"
}),
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"school_name": (*string)("The Kings"),
"student_info": (*map[interface {}]interface {})({
"name": "jason",
"gender": "Male",
"school": "The Kings"
}),
"studentm": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}
}
}),
"studenty": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"studentx": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"up_runtime_task_layer_number": 0,
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
},
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}),
"data_school_name": "",
"studentz": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}),
"query_name": "jason"
})
~SubStep1: [query: query result matching the criteria ]
~SubStep2: [printObj: ]
object:
map[chatswood_high:map[student:map[gender:Mail name:Jason school:Public High School]]]: (interface {}) <nil>
-Step19:
self: final context exec vars:
(*core.Cache)({
"query_name": "jason",
"studentn": (*map[interface {}]interface {})({
"school": "MLC",
"gender": "Female",
"name": "Grace"
}),
"up_runtime_task_layer_number": 0,
"studenty": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"studentz": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"name": "Grace",
"school": "MLC",
"gender": "Female"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}
}
}),
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}),
"studentx": (*map[interface {}]interface {})({
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}),
"nsw": {
"chatswood": {
{
"chatswood_high": {
"student": {
"gender": "Mail",
"school": "Public High School",
"name": "Jason"
}
}
}
},
"sydney": {
{
"sg": {
"student": {
"gender": "Female",
"school": "MLC",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"school": "KINGS",
"name": "Emily"
}
}
}
}
},
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"gender": "Female",
"name": "Grace",
"school": "MLC"
}
},
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}),
"student_info": (*map[interface {}]interface {})({
"gender": "Male",
"school": "The Kings",
"name": "jason"
}),
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"data_school_name": "",
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"studento": (*map[interface {}]interface {})({
"chatswood_high": {
"student": {
"school": "Public High School",
"gender": "Mail",
"name": "Jason"
}
}
}),
"studentm": (*map[interface {}]interface {})({
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}),
"school_name": (*string)("The Kings")
})
~SubStep1: [query: query and register result as a yml string instead of object ]
~SubStep2: [trace: ]
Trace:====>
~SubStep3: [printObj: ]
object:
chatswood:
- chatswood_high:
student:
gender: Mail
name: Jason
school: Public High School
sydney:
- sg:
student:
gender: Female
name: Grace
school: MLC
- kings:
student:
gender: Female
name: Emily
school: KINGS
: (interface {}) <nil>
~SubStep4: [print: ]
chatswood:
- chatswood_high:
student:
gender: Mail
name: Jason
school: Public High School
sydney:
- sg:
student:
gender: Female
name: Grace
school: MLC
- kings:
student:
gender: Female
name: Emily
school: KINGS
~SubStep5: [print: ]
277
~SubStep6: [trace: ]
Trace:<====
-Step20:
self: final context exec vars:
(*core.Cache)({
"student_info": (*map[interface {}]interface {})({
"name": "jason",
"gender": "Male",
"school": "The Kings"
}),
"studentn": (*map[interface {}]interface {})({
"school": "MLC",
"gender": "Female",
"name": "Grace"
}),
"student": {
"gender": "Male",
"school": "Sydney Grammar",
"name": "Tom"
},
"nsw": {
"sydney": {
{
"sg": {
"student": {
"name": "Grace",
"gender": "Female",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"school": "KINGS",
"name": "Emily",
"gender": "Female"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"gender": "Mail",
"school": "Public High School",
"name": "Jason"
}
}
}
}
},
"studentm": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}
}
}),
"studenty": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"query_name": "jason",
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}),
"studentz": (*map[interface {}]interface {})({
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}),
"city2": "chatswood:\n- chatswood_high:\n student:\n gender: Mail\n name: Jason\n school: Public High School\nsydney:\n- sg:\n student:\n gender: Female\n name: Grace\n school: MLC\n- kings:\n student:\n gender: Female\n name: Emily\n school: KINGS\n",
"studento": (*map[interface {}]interface {})({
"chatswood_high": {
"student": {
"school": "Public High School",
"gender": "Mail",
"name": "Jason"
}
}
}),
"up_runtime_task_layer_number": 0,
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"name": "Grace",
"school": "MLC",
"gender": "Female"
}
},
"kings": {
"student": {
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}
}
}),
"school_name": (*string)("The Kings"),
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"data_school_name": "",
"studentx": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
})
})
~SubStep1: [query: query result from yml file using refdir ]
~SubStep2: [print: ]
sydney:
- sg:
student:
name: Grace
gender: Female
school: MLC
- kings:
student:
name: Emily
gender: Female
school: KINGS
chatswood:
- chatswood_high:
student:
name: Jason
gender: Mail
school: Public High School
-Step21:
self: final context exec vars:
(*core.Cache)({
"studentz": (*map[interface {}]interface {})({
"name": "Emily",
"school": "KINGS",
"gender": "Female"
}),
"studentx": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"student": {
"name": "Tom",
"gender": "Male",
"school": "Sydney Grammar"
},
"city2": "sydney:\n- sg:\n student:\n name: Grace\n gender: Female\n school: MLC\n- kings:\n student:\n name: Emily\n gender: Female\n school: KINGS\nchatswood:\n- chatswood_high:\n student:\n name: Jason\n gender: Mail\n school: Public High School\n",
"cityall": (*map[interface {}]interface {})({
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
},
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}),
"studentn": (*map[interface {}]interface {})({
"name": "Grace",
"school": "MLC",
"gender": "Female"
}),
"studenty": (*map[interface {}]interface {})({
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}),
"city1": (*map[interface {}]interface {})({
"kings": {
"student": {
"gender": "Female",
"name": "Emily",
"school": "KINGS"
}
}
}),
"student_info": (*map[interface {}]interface {})({
"name": "jason",
"gender": "Male",
"school": "The Kings"
}),
"school_name_list": (*[]interface {})({
"MLC",
"KINGS"
}),
"studentm": (*map[interface {}]interface {})({
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}),
"up_runtime_task_layer_number": 0,
"nsw": {
"sydney": {
{
"sg": {
"student": {
"name": "Grace",
"gender": "Female",
"school": "MLC"
}
}
},
{
"kings": {
"student": {
"name": "Emily",
"gender": "Female",
"school": "KINGS"
}
}
}
},
"chatswood": {
{
"chatswood_high": {
"student": {
"name": "Jason",
"gender": "Mail",
"school": "Public High School"
}
}
}
}
},
"school_name": (*string)("The Kings"),
"query_name": "jason",
"city": (*[]interface {})({
{
{
"sg": {
"student": {
"school": "MLC",
"gender": "Female",
"name": "Grace"
}
}
},
{
"kings": {
"student": {
"school": "KINGS",
"gender": "Female",
"name": "Emily"
}
}
}
}
}),
"studento": (*map[interface {}]interface {})({
"chatswood_high": {
"student": {
"gender": "Mail",
"name": "Jason",
"school": "Public High School"
}
}
}),
"data_school_name": ""
})
~SubStep1: [query: query result from yml file using implicit global refdir ]
~SubStep2: [print: ]
sydney:
- sg:
student:
name: Grace
gender: Female
school: MLC
- kings:
student:
name: Emily
gender: Female
school: KINGS
chatswood:
- chatswood_high:
student:
name: Jason
gender: Mail
school: Public High School