Description
Output.from expression indicates the result of the task (and can be consumed by subsequent task)
Output.to expression indicates what should be the value of the context once the task is completed.
I think the names are confusing (it actually takes me a lot of time to understand why do we have two expressions in output), so I think we must change them.
output.from might be renamed to output.result (the expression indicates the result of the task)
output.to might be renamed to output.setContext (clearly states the purpose is to the set the value of the context), If we found that setContext break the single word paradigm that we are implicitly following in the DSL, then lets just use output.context.
Also we need to explicilly indicate in the documentation that it is assumed that the expression language should support merging context.
Related to that, if this assumption turns to be wrong, another possibility is to use
output:
context:
set:
Right now, context will only support set: but we leave the door open to add append:, delete: or merge: in future if needed
Metadata
Metadata
Assignees
Type
Projects
Status