It sounds like you want to set some internal tags.
Writing your own task gives some recommendations. The section you are in is support for nested elements. It is pretty simple. I would be inclined to use something like the following
List tokens = new ArrayList();
public void addConfiguredToken(NestedElement token) {
tokens.add(token);
}
Then you can use it using the following:
<task>
<token value="XXX" />
<token value="YYY" />
</task>
source
share