Developer forum

Forum » Integration » Dynamicweb.Notifications.Integration.BeforeJob

Dynamicweb.Notifications.Integration.BeforeJob

Kim Søjborg Pedersen
Reply

Hi I have a need to "prepare" my XML file(s) before the integration (XML Provider) So I could really need a "Dynamicweb.Notifications.Integration.BeforeJob" 

Is there another way to do this without xslt?


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Kim,
yes, that sound like a good idea to have "Dynamicweb.Notifications.Integration.BeforeJob" notification.
But as a workaround for now you can subscribe to the upper level of the notifications hierarchy by subscribing to:
"Dynamicweb.Notifications.Standard.Application.BeforeBeginRequest/AfterBeginRequest/AuthenticateRequest"
In this subsciber you can check the visiting url: HttpContext.Current.Request.Url.AbsolutePath
and if it contains the pages: JobRunner.aspx/JobRunnerBackground.aspx/JobRunnerSynchronized.aspx with Query string parameter called "jobsToRun"
containing the value of your Data integration job you can consider this as a step before running the Data integration job and try to modify the xml files you need.
Regards, Dmitrij

 
Kim Søjborg Pedersen
Reply

Thanks Dmitriy, I will try that.

 

You must be logged in to post in the forum