API Questions on Kentico API.
Version 6.x > API > Integration Bus and Scheduling View modes: 
User avatar
Member
Member
rmaspoch - 11/21/2011 10:51:19 AM
   
Integration Bus and Scheduling
Hi there,

Is it possible to schedule an outgoing or incoming task in the Integration Bus? We have a requirement to export/import product data twice a day at predefined times.

Thanks,
Rudy

User avatar
Member
Member
nicolas.juteau-nexun - 11/21/2011 1:12:46 PM
   
RE:Integration Bus and Scheduling
In Site Manager -> Administration -> Scheduled Tasks, there is task named "Process external integration tasks". You can use it to perform synchronization with your external system.

Please see http://devnet.kentico.com/docs/6_0/integrationguide/index.html?incoming_tasks.htm for more informations.

User avatar
Member
Member
rmaspoch - 11/21/2011 1:39:49 PM
   
RE:Integration Bus and Scheduling
After I posted I found that piece in the documentation, but it's still not clear to me if it only works for incoming tasks or both incoming and outgoing tasks. Does anyone know?

User avatar
Member
Member
nicolas.juteau-nexun - 11/21/2011 2:13:25 PM
   
RE:Integration Bus and Scheduling
I must agree with you. In the integration guide, the scheduled task is mentionned in Concept -> Incoming tasks.

However, if you edit that scheduled task in Site Manager, the task name is: Integration.ProcessExternalTasks and is calling CMS.Synchronization.IntegrationExternalTasksProcessor. In Reflector tool, the core inside IntegrationExternalTasksProcessor class seems to call IntegrationHelper.ProcessExternalTasksAsync() method. So I assume it processes the outgoing tasks only.

In the API documentation reference for IntegrationHelper class, the method ProcessInternalTasksAsync exists as well, so I don't see why you couldn't write your own scheduled task that does the incoming/outgoing synchronization. You can find documentation about how to write custom scheduled tasks here.

Unfortunately, my knowledge of the integration bus module ends here (not much in fact...). So i'd rather not go too far explaining.

Sorry.

User avatar
Member
Member
rmaspoch - 11/21/2011 2:15:28 PM
   
RE:Integration Bus and Scheduling
Thanks for your help.