How to get a command or event by Openhab2

Hello,
I am a beginner
I want to know how to retrieve a command or event (in eclipse smarthome) when I change its status to PaperUI (from openHAB2).
Thank you for your answers