Registering a Service
Use the SMACseRegisterService function to register a call-back
function. The SMACseRegisterService function takes the following arguments:
iServiceName- Service name as specified in the SCXML state chart.
iFunction- Service function.
iUserData- Opaque point to user data to be accessed by the service function.
iCollective- Set to 1 if the function is called collectively on all compute ranks; otherwise, set to 0 to be called by the main process.
iPersistant- Set to 0.
You should call SMACseRegisterService prior to registering your
model.