1# CHART Scheduler configuration files
 2
 3namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"
 4
 5element schedule {
 6    attribute xsi:noNamespaceSchemaLocation { "http://chart/schemas/schedule.xsd" }? &
 7    ## Describe the purpose of this configuration file
 8    element description { text }? &
 9
10    element enabled { xsd:boolean }? &
11
12    ## Set up the conditions to create a job or jobs
13    element trigger {
14        ## Time based hourly trigger
15        element hourly {
16            element minute { xsd:unsignedInt { maxInclusive="59" } }?
17         } |
18
19        ## Time based trigger at the same time every day
20        element daily {
21            element hour { xsd:unsignedInt { maxInclusive="23" } } &
22            element duration { xsd:duration }? &
23            element offset { xsd:duration }?
24        } |
25
26        ## Time based trigger at the same day and time each week
27        element weekly {
28            element day { "Monday" | "Tuesday" | "Wednesday" | "Thursday" |
29                            "Friday" | "Saturday" | "Sunday" } &
30            element hour { xsd:unsignedInt { maxInclusive="23" } } &
31           element offset { xsd:duration }?
32        } |
33
34        ## Time based monthly trigger
35        element monthly {
36           element day { xsd:unsignedInt { minInclusive="1" maxInclusive="31" } } &
37           element hour { xsd:unsignedInt { minInclusive="0" maxInclusive="23" } } &
38           element offset { xsd:duration }
39        } |
40
41        ## Directory monitor
42        element directory-monitor {
43            element directory { text } &
44            element pattern { text } &
45            element pdu-delay-queue { xsd:unsignedInt }? &
46            element timeout { xsd:duration }? &
47            element parser { text }?
48        }
49    } &
50
51    ## What should we do when a trigger is met?
52    element response {
53        element sid { text }? &
54        element scid { text }? &
55        element gsid { text }? &
56        element cfid { text }? &
57        element ogsid { text }? &
58        element activity { text, element scids { text }? }*
59    } *
60}