Thinking more about this, would be possible treat this concern using the "IdentityService", for example, providing a operation like that
List<User> findUsersByGroup(String groupId, List<GroupParameterBinding> groupParametersBinding) where "GroupParameterBinding" would have "parameterId" and "value" as attributes?
– or something like that (it was just a way to explain).
So the Actitvi Engine could parse the BPMN 2.0 parametrized resource assignment, as below, and, in this case, calls this specfic operation signature.
If this parse (of an official element of BPMN 2.0) was done directly in Activiti Engine, we could customize only the "IdentityService" in our application (a work that we already will do), without affect the core of the Engine.
We now have a dynamic resolving of assignments through the expressions you can use. We don't plan to introduce BPMN-specific notions in our identity abstractions. We do consider to introduce a TaskAssignmentHandler later on to allow for more flexible assignment handling. But that planning is not yet concrete.