Defining Custom connection variable for a Synchronization project

Hi Community,

How can I set up a session variable for a synchronization that I've created So I can achieve the following -:

i.e. the process should not generate if the object is updated via specific Sync.

ex - Let's say I have a sync name xyz which runs between databases let's say db1 and db2 would to like to do when object updates through sync 'xyz' in db2 so the process applied on this object should not generate if the object is updated via xyz Sync. how achieve that using session variable.

Thanks in advance