What's the best way to invoke one plugin from another?
Since I run an intranet forum I cannot use the real use case, so here is a made up use case:
I have a plugin that adds a "status" field to discussions. When users change the "status" to specific values I want to invoke another plugin (for example, the Discussion Note plugin to add a post-it note to the discussion based on the changed status).
I can think of two ways, not sure they are good choices, and there probably are better ways:
1. Have the called plugin setup a mini controller and invoke it via URL.
2. Create an event in the calling plugin (fireevent?). Not yet sure how to do that, whether plugins can do that, and whether this would interfere with anything else.
Appreciate your advice.