Script expression in the submit hierarchy tool
Posted: Wed Jul 10, 2013 6:04 pm
Hello,
We have an issue with the submit hierarchy tool and the script expressions used to . Maybe someone could help us.
We have one hierarchy folder when the production files are stored. There is one folder per date in format DDMMYYYY
We are trying to set up a maintenance flow to copy the file for the current date to the backup server at the end of production.
We are using the Submit hierarchy tool (set up to the root of the production folder) and adjust the processed folders using the rules.
To define the process folder we use the next script expression:
var date = new Date();
var sdate = date.toString();
sdate= sdate.substring(8, 10) + sdate.substring(5, 7) + sdate.substring(0, 4);
This expression has been tested with SwitchScripter and returns a correct value of DDMMYYYY
Using this script expression in the Folder name property of the adjustment rules for the Submit Hierarchy tool does not work. Everything in the submit tool is ok, if we set up the name using patterns or regular expressions it works, so everything point to the script expression.
Has anybody experience with the script expression in the submit hierarchy tool?.
Any help will be very much appreciated.
We have an issue with the submit hierarchy tool and the script expressions used to . Maybe someone could help us.
We have one hierarchy folder when the production files are stored. There is one folder per date in format DDMMYYYY
We are trying to set up a maintenance flow to copy the file for the current date to the backup server at the end of production.
We are using the Submit hierarchy tool (set up to the root of the production folder) and adjust the processed folders using the rules.
To define the process folder we use the next script expression:
var date = new Date();
var sdate = date.toString();
sdate= sdate.substring(8, 10) + sdate.substring(5, 7) + sdate.substring(0, 4);
This expression has been tested with SwitchScripter and returns a correct value of DDMMYYYY
Using this script expression in the Folder name property of the adjustment rules for the Submit Hierarchy tool does not work. Everything in the submit tool is ok, if we set up the name using patterns or regular expressions it works, so everything point to the script expression.
Has anybody experience with the script expression in the submit hierarchy tool?.
Any help will be very much appreciated.