on 09-10-2009 11:58 PM
Hi,
I'm looking for a way to start and stop an existing schedule based on certain criteria.
Is it possible to enable/disable a schedule programatically, from within an Action block? Calling an HTTP URL for example?
Thanks.
Francois,
It is quite possible to enable or disable scheduled transaction from the BLS transaction.I don't know why do you want this facility.
I've tested in MII 11.5 as explaine below:
Scheduler xml files are available in the root folder C:\Lighthammer\Scheduler\. You have to just load these in trnsaction from XML Loader action block..In this xml file you can find the enable attribute,through this you can enable od disbale by setting "true" or "false" respectively. Then save these xml files using XML Saver action block. Then refresh the MII menu and check the scheduler tab the output will be reflected.
-Suresh
Edited by: Suresh Hiremath on Sep 11, 2009 11:56 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Suresh,
I'm running MII 12.0.5 and I can't find any XML file with Schedule data. Maybe I missed it. There is a Scheduler folder but it only contains jsp pages. I suspect Schedules have been moved to the NW DB, which I do not have access to.
FYI, the reason I'd like to disable this is to control the execution of rather high frequency activites only to certain period of time, based on conditions on external systems. This only to minimize resource usage.
So my question is still open. Can this be done with MII 12.0, without accessing the NetWeaver DB?
Thanks.
Hi,
One solution would be using the Illuminator service for this:
First execute the Scheduler service with list mode (using XML query or HTTP Post action) as :
/XMII/Illuminator?service=Scheduler&mode=List
This will give you the list of the available scheduler configurations in the system along with the corresponding Job ID. Use XPath in BLS to retrieve the JobID from the list by the Scheduler Config name.
Next execute the Scheduler service with Disable mode passing the JobID retrieved from :
/XMII/Illuminator?service=Scheduler&mode=Enable&ID=<JobID>
This will disable that particular scheduled job. To enable it use the same service with Enable mode:
/XMII/Illuminator?service=Scheduler&mode=Disable&ID=<JobID>
Hope this helps.
Thanks,
Dipankar
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.