http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/wiki/Documentation
Be, to check out the documentation available in the link above. The
API documentation can be very helpful if you know how to understand it
(it took me a while).
If you look at an example plugin you will see that each plugin point
takes the eventContext object as an argument. Knowing that, you can
take a look at the API documentation to see what functions are
available to you there. So clicking on the eventContext object, almost
at the top you can see there is a executeSubroutine() funciton. This
function takes a string as the first parameter, which is the name of
the subroutine, and the second parameter must be an event object.
Probably you will give it the current executing event. So executing a
subroutine may look something like this:
<!--- This gets the current event object --->
<cfset currentEvent = ARGUMENTS.eventContext.getCurrentEvent()>
<!--- This executes the subroutine --->
<cfset
ARGUMENTS.eventContext.executeSubroutine('mysubroutine',currentEvent)>
Keep in mind your variables really need to be var scoped. Hope this
helped!