Skip to Content
0
Former Member
Mar 13, 2009 at 10:04 PM

Turn Off Synch PlugIns Based On Synched Object Settings

20 Views

I'm using Web Tools v625 and SAP 2005. In SynchManager, under Settings, I can turn on and off any object that I want to synch. However, regardless of what's turned off or on, my plugins still run. For example, I turned off Items, yet my ItemPlugin still runs. I even have the following code in it, but I think this just checks to see if it's in the queue and synched:

//  The TransactionType indicates the operation that last occured for this record.
//  Don't run this if the record was deleted
if ((qData.TransType == TransactionType.Add || qData.TransType == TransactionType.Update) &&
    qData.Status == QueueStatus.InQueue) {
  // Ensure that the item was successfully synched at some point
  if (_items.GetByKey(qData.Keys[0])) {
    // The rest of my synch code...

Is there any way to stop a plugin from running when the corresponding item group is set to not synch?

P.S.: Does the code above indeed check for whether or not the item is in the queue and has been successfully synched?