Thanks for the answer, Roman Hutnyk. Integration tasks in queue were not processed at all and that happens only if I use api to make changes to object.
I resolved using event handler in the documentation.Since I have 2 to 3 connectors , I check the type of object and then assign appropriate connector class and pass it to ProcessTask method.