Complex actor logic in expressions?
Since actors aren't constrained to be instances of ash resources, and in expressions, templates do simple
This works OK, but feels a little clunky. I could also use fragments in the expression along with the actor ID to go full "manual" mode and do my actor calculation manually, but that loses all the benefits of having those calculations encapsulated on the resource.
Is there any known advice on the best practice for handling this sort of thing?
get_in calls (link), it seems somewhat challenging to represent logic in expressions that relies on anything more than simple attributes on the actor. In some calculations I'm working on, I've resorted to representing this something like this:This works OK, but feels a little clunky. I could also use fragments in the expression along with the actor ID to go full "manual" mode and do my actor calculation manually, but that loses all the benefits of having those calculations encapsulated on the resource.
Is there any known advice on the best practice for handling this sort of thing?
