When sending events to reactive objects in different address spaces, the RidSendRemoteEvent function must be used (and not the standard event generation macro RiCGEN):
RiCBoolean RidSendRemoteEvent (const RhpString strReactiveName, struct RiCEvent* const ev, const RhpPositive eventSize);
strReactiveName - the published name of the destination reactive object
ev - pointer to the event to send
eventSize - the size of the event to send
For convenience, IBM® Rational® Rhapsody® includes a macro named RiCGENREMOTE, which calls the RidSendRemoteEvent function:
RiCGENREMOTE ([string - the published name of the destination reactive object], [type of event with parameters in parentheses])
RiCGENREMOTE("destinationObject", Fstarted());