AnsweredAssumed Answered

Resource Management

Question asked by hmartim on Sep 17, 2010
Latest reply on Sep 20, 2010 by tombaeyens
Hi,

in previous post (http://forums.activiti.org/en/viewtopic.php?f=3&t=188), I asked about parametrized resource, and Joram suggested to implement an 'AssignmentHandler'.

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.

<userTask id="ApproveOrder" name="ApproveOrder">
  <potentialOwner resourceRef="regionalManager">
    <resourceParameterBinding parameterRef="buyerName">
       <formalExpression>${buyerName}</formalExpression>
    </resourceParameterBinding>
    <resourceParameterBinding parameterRef="region">
    <formalExpression>${regionName}</formalExpression>
       </resourceParameterBinding>
</potentialOwner>
</userTask>


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.

Is it could be a way?

Thanks,
Hudson.

Outcomes