Hi, This is how we do it:
Let the successful workflow create an empty file with a deterministic path based on today's date. Like /some_root/${YEAR}${MONTH}${DAY}/_SUCCESS Then you use a decision node in your workflow that looks for the file using fs:exists. If it's there, then don't execute further, if it's not there, then run your actions. /pelle On Sat 8 Apr 2017 at 21:00 Kashif Hussain <kash.t...@gmail.com> wrote: > Hi, > > I want to run a java action once every day.I have created a coordinator > which executes the workflow containing the action 4 times every day. > Normal scenario would be that the workflow runs successfully in first > run.In the next runs it will run only if the previous run on the same day > failed. > I am writing a java action for performing this.The java program needs to > get the previous workflow of the coordinator to take the decision to > execute the next java action(which contains logic). > > How can I achieve this ? What classes and methods can I use ? > I tried to go through the documentation of the api but it is very short. I > am still confused.Please help. > > Regards, > Kashif > -- *Per Ullberg* Data Vault Tech Lead Odin Uppsala +46 701612693 <javascript:void(0);> Klarna AB (publ) Sveavägen 46, 111 34 Stockholm Tel: +46 8 120 120 00 <javascript:void(0);> Reg no: 556737-0431 klarna.com