Skip to main content

Situation


 



  • 3 offices/branches (A,B,C)
  • account dept in each office
  • process "payment approval"
  • started in office should be within that office, i.e.

    • request from 'A-Office' should be approved by 'A-Office' Account-dept
    • request from 'B-Office' should be approved by 'B-Office' Account-dept
    • request from 'C-Office' should be approved by 'C-Office' Account-dept



 


Current solution


 



  • webservice method GetAccountants( soffice_name] ) that return list of accountant logins in ioffice_name]
  • SmartObject wrapping this webservice
  • Activity Destination = SmartObject.GetAccountants (sCurrentOffice: process field])

 


I'd like to have more 'natural way', is there any? Custom role provider?


I'm sure it's very common situation with some best-practice :)


regards,


Sergey

Anybody? :)


I don't feel that there is an issue with your current approach. It's an acceptable approach (using a SmartObject as Destination) and will also scale well, i.e. if there is a new Office/Branch added, it will continue to work without a change in the process definition. Only the web service will need to be updated to cater for this.


One alternative, albeit less flexible, would be to create a Destination Set for each office with a rule checking on the Office Name, but then you will need to update the process everytime a new office or branch starts using the same process. Personally I would stick with your current approach.


Just for interest sakes, what are the concerns you have with your current approach?


Reply