Forum Discussion
rupert_anderson
Valued Contributor
Ok, so thats slightly different to the way I took your first question.
To get a context property from Groovy code do:
log.info context["idEna"] or log.info context.idEna
to access a property using a property expansion e.g. to insert into a request, do:
${idEna}
Is that what you wanted?
Regards,
Rup
rupert_anderson
9 years agoValued Contributor
Yes, you can also do it that way, although longer :-)
Similarly, to set a context property in Groovy you can also a shorter option:
context["hello"]="yes" log.info context.hello or context.hello = "no" log.info context.hello
Regards,
Rup
- francisbrochu9 years agoOccasional Contributor
Got it, thanks !
I will definitively use the shorter version :)
Related Content
- 4 years ago
- 7 years ago
Recent Discussions
- 12 hours ago