Hi Stephen,
I consider the workaround you found rather a hack, because it involves internal API (implcitly by calling parentScope.getCurrentActivityId()
etc. where parentScope
in java is declared as AbstractVariableScope
, while #getCurrentActivityId
is a method declared on its subclass ExecutionEntity
; so the implicit cast (in Java terms) is where you are leaving public API). Thus, I would not document it.
I’d rather we make execution
available in connector parameters. This would also make implementing this use case more straightforward. Feel free to raise a feature request for that and/or provide an implementation.
Cheers,
Thorben