Is it possible to extend a Business process ?
I am trying to figure out if we can extend a business process in IRIS. My Use Case is that I am developing RESTful Interfaces and my each REST Interface needs to go through certain processes before getting to the actual action.
e.g. I have 2 REST Interfaces, GetPatient and GetEncounter. Both of these need to invoke "GetToken" Business Operation to go to the Authentication server to get an authentication token before they go ahead and hit the Business Operation to Get the data i.e. Patient or Encounter.
Is it possible to create like a "Super" business process that does the call to "GetToken" and extend the two Business Processes for "GetPatient" and "GetEncounter" from that "Super" Process instead of having to add a <call></call> to "Get Token" in both my business processes individually ?
What I am trying to achieve here is, if I have a new developer tomorrow who is working on "GetReferral" interface, I don't have to tell him to remember to add the call to "GetToken" in his BP. He can just extend his BP from the "Super" BP which would address all the common concerns like "Getting a token" or "basic schema" check etc. I am keen to hear any other ideas or ways this can be done.