IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#57998 - 05/18/21 08:54 AM schedule a specific date
Wladson Marques Offline
OL Newbie

Registered: 05/10/21
Posts: 4
Hello, do we have a way to schedule the execution of the process from a specific date?

I have a new process that will read files from a specific directory and handle them, but the files must date from a specific date or greater than the date. I tried to make a script with true / false outputs so as not to run the process, but when it is the case, it deletes the file and I didn't want it to delete,

Top
#58000 - 05/18/21 10:26 AM Re: schedule a specific date [Re: Wladson Marques]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
So in layman's term, you want the process to read files from a folder and process only those which are equal or greater than a specific date.

Do you expect the file meeting the requirement to be remove from that folder, once they have been processed, or not?
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#58011 - 05/18/21 01:18 PM Re: schedule a specific date [Re: Jean-Cédric]
Wladson Marques Offline
OL Newbie

Registered: 05/10/21
Posts: 4
Originally Posted By: Jean-Cédric
So in layman's term, you want the process to read files from a folder and process only those which are equal or greater than a specific date.

Do you expect the file meeting the requirement to be remove from that folder, once they have been processed, or not?


This!

I would like the file that meets the requirement to be removed from that folder once it has been processed. The others that do not meet the requirement, must remain in the directory.

Top
#58012 - 05/18/21 01:35 PM Re: schedule a specific date [Re: Wladson Marques]
Jean-Cédric Offline
OL Expert

Registered: 10/03/16
Posts: 681
Loc: Québec, Canada
Then you should start by using the Folder Listing plugin which will return you a XML list of all files in that folder with their date of creation.

Then, using a XML Splitter, you split that list and make a condition of the date.

In the TRUE branch, you add a Folder Capture that will grab the files and process them.

In the FALSE branch, you put nothing.
_________________________
♪♫♪♫
99 frigging bugs in my code
99 frigging bugs
Take one down
Code around
127 frigging bugs in my code
♪♫♪♫

Top
#58013 - 05/19/21 08:55 AM Re: schedule a specific date [Re: Jean-Cédric]
Wladson Marques Offline
OL Newbie

Registered: 05/10/21
Posts: 4
Thanks Jean-Cédric, it worked like a charm !

Top