Hi support
I have a loop which tests for the successful completion of a process initiated by a cmd task executed as a the task just before the loop. The loop executes a get status command , parses the xml output file produced by the get status check , resolving the processing complete date element from the file - when the processing complete date is greater than the date and time stored just before the task was started the job is complete. This is an external tool and I have no control over the method the command provides to test for completion.
I set a user variable (type double) as - {DATEFORMAT(yyyyMMddHHmmss)}
after parsing the xml element that was output I get - 2012-05-18T12:02:14+10:00
and then I try setting a variable as this - which should extract all the numeric elements and stitch them together
{STRING(Left|{TASK(PrevTask,StdOut)}|4)}{STRING(Substring|{TASK(PrevTask,StdOut)}|5|2)}{STRING(Substring|{TASK(PrevTask,StdOut)}|8|2)}{STRING(Substring|{TASK(PrevTask,StdOut)}|11|2)}{STRING(Substring|{TASK(PrevTask,StdOut)}|14|2)}{STRING(Substring|{TASK(PrevTask,StdOut)}|17|2)}{STRING(Substring|{TASK(PrevTask,StdOut)}|20|2)}{STRING(Substring|{TASK(PrevTask,StdOut)}|23|2)}
the variable gets the value - [Thi Vribl i olyav
also the variable is changed from double to string
Should this work and is it a valid approach
Thanks
Edited by user
2012-05-21T01:04:54Z
|
Reason: Not specified