we all know that converting a scheduler integration to REST is quite easy , where as the reverse is not possible and the only way to achieve it is through creating a wrapper scheduler integration and invoking the trigger one as child from there.
But there is another way through which we can achieve the direct conversion.
For that please refer to below example.
Note : Every step mentioned has to be done very carefully
Create Scheduler Integration.
I’ve created a base one in
which it invokes a SOAP service.
I’ve created a small trigger integration which I’m going to change to scheduler without any wrapper.
Please follow the below steps to convert rest based to scheduler:
1) Export the integration.
2) Rename the iar file to zip.
3) Now unzip the file.
4) Compare the properties files of both scheduler and rest based integration and make the changes to rest based as per the scheduler integration
After changes
Now open the resources folder:
Move the scheduler resource file “Processor_8” to the App
driven / rest based trigger integration
Scheduler file
Now open the PROJECT_INF folder and compare the analysis
files between the two integrations and remove the rest_trigger components form
the analysis file of app driven integration and replace them with the scheduler
components.
Post changes
Similarly for project.xml file as well
That’s all now once you are done with the changes.
Now zip the "icspackage" folder and rename it with the integration name
After importing back the lates one to the OIC , now the rest
based integration is converted to scheduled
Hope you have liked the article and learnt something new for the day.
-Preetham Konjeti
For the following step - "Move the scheduler resource file “Processor_8” to the App driven / rest based trigger integration" - Can you please publish the exact Source and Target path.
ReplyDeleteAlso please publish a screenshot Post Project XML changes.
ReplyDelete