Hi Jarrett,
I intend to run an automatic download job to download files from our server to the ptc server.
For a more user friendly approach, automatic download of files from the server would help.
I have found a solution, but cannot validate the correctness of it.
I have been through the customization guide for PTC Windchill 10.2M10 and the help center topics, but could not find any topic for customizing the ‘Common Schedule Queue’ to add an independent job to it.
A little bit of re-engineering led me to the queueInitializers.xconf file located at: \Windchill\codebase\wt\queue\queueInitializers.xconf
This is what I did:
1. I created my own Java class to be executed. This is a replica/edited version of the com.ptc.tml.queue.TranslationScheduleQueue.Java
2. Made an extra entry for my custom class in the queueInitializers.xconf. So the automatic download process runs as a job in the common schedule queue.
3. Changed the getInterval() method to fetch the interval of the custom job from the database. This interval was set using my custom screen.
So you see, there is my custom settings screen to set the time interval to execute my job.
The common schedule queue shows my job in its list of jobs. A user can set the time interval for the job which will automatically download the requied files to the ptc server. Moreover, the user also has the option to completely shut the automatic download procedure.
Thanks for showing interest and for taking pains to help me. I am going to do a full testing round to check if this approach has any flaws, but if you have some experience about this and can validate whether my approach is correct or if there is any flaw, it would be great.
Cheers!
Kazi