on 07-14-2016 10:36 AM
Hi All,
We have a requirement to schedule a job to trigger a BPM using Java scheduler on every Monday and also on the last working day of the month.
Now, I know I can achieve at least the first part of this requirement easily using Cron job definition. Interesting bit is the 2nd part. Looking at the documentation, I don't think this can be achieved using a single instance of schedule:
Scheduling Jobs with Cron Start Conditions - Using Central Development Services - SAP Library
Problem with multiple instance of the schedule would be where there is overlap. Or have I misinterpreted the help documentation?
Another interesting constraint is testing of the last working day requirement(due to short time-frame of development and testing lifecycle) and hence any first hand experience with similar requirement would be really useful.
Or alternately, is there a way of referencing a SAP (ECC) factory calendar using Java scheduler?
Note: I would like to avoid scheduling and triggering interface from ECC system.
Thanks in advance.
Regards,
Sanjeev
Couldn't find any way of making this work, so had to resort to a work-around. I decided to schedule the BPM to run on all days from 26-31 of each month. And then in BPM using a custom ejb function I evaluated if the current date was last working date or not. If the current date is last working day, I perform the tasks as required, else skip processing. Still need to test the ejb works smoothly by testing on coming weekend, fingers crossed.
Cheers,
Sanjeev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any inputs please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bumping up the thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.