Hi Zaid,
For effector-as-param, rule of thumb is whether you want to ever call it
from the web-console or REST api. If so, then better to take the entity
id and look that up.
But if it's just being called programmatically then you have the
parameter of type Entity.
Multiple arguments are absolutely fine.
Also note that args passed through the web-console / REST api will have
their types coerced using TypeCoercions.coerce so as well as the
standard strings/primitives you can have args of some complex types like
List, Map etc [1].
Aled
p.s. perhaps we should add a TypeCoercion for entity-id to Entity? Not
sure about that though.
[1]
https://github.com/brooklyncentral/brooklyn/blob/master/core/src/main/java/brooklyn/util/flags/TypeCoercions.java#L550-561