Hi Houshyar,
You need to customize the Expected Events extractor and Event Types extractors
1) Expected Events:
IMG -> Integration with Other mySAP.com Components -> Event Management Interface -> Define Application Interface -> Define Used Bus. Proc. Types, Appl. Obj. Types, and Evt Types -> Define Used Business Process Types -> Define Application Object Types.
From the above path select your Application Object and goto your Expected Event extractor. This is where your expected events are built. If you need to add custom, one option is to customize your AO Type and add custom EE extractor.
2) Event Types
IMG -> Integration with Other mySAP.com Components -> Event Management Interface -> Define Application Interface -> Define Used Bus. Proc. Types, Appl. Obj. Types, and Evt Types -> Define Used Business Process Types -> Define Event Types.
Similarly for your events, goto above path and see if your events have event types defined. If not add an Event Type for you event.
You also need to few changes on EM side like expected events profile, define your events, check your EH Type for the new application object types, if you create a new one.
Let us know if you need code snippet and we can provide.
Thanks,
Vishnu