How to use MDS Events in your BPM processes?
With choreography gaining importance compared to orchestration, events will start playing an increasingly important role. In Oracle SOA Suite, it makes sense to put the related event definitions into MDS, so they can be used by multiple processes and services.
However, when you have your event in MDS and you try to use it in your BPM process, you will not be able to access it. You'll find that your BPM process will only look into the contents of the project that it's in and you can't use external events. Now here's the trick to still make it happen:
- Copy the event definition that you want to use into your project;
- Let your BPM process use the local event on design time;
- Open your composite.xml in source mode and change the import location of the event definition to the oramds: location;
- Remove the local copy;
- Deploy & enjoy!