I was trying to remember how to add user defined actions to a model in WED. Can Someone remind me of the work flow or point me to a tutorial please .. I just can't find anything

What I have tried:

1. create action in file called test.c
2. Use Map properties to associate with action file (test.c)
3. Use behavior panel to add action to model
4. Build/compile/run
5. model NOT running action ???????

Thank you