1# CHART Activity algorithm specification files
2
3namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"
4
5element activity {
6 attribute xsi:noNamespaceSchemaLocation { "http://chart/schemas/activity.xsd" } &
7
8 ## Give about one sentance describing what this activity does.
9 element description { text } &
10
11 ## Link to a web page giving more information.
12 element url { text }? &
13
14 ## List all events this activity can raise.
15 element event { text }* &
16
17 ## General purpose processing algorithm or a report generator.
18 element class { "algorithm" | "report" } &
19
20 ## Name of an executable to test this activity.
21 element test { text }? &
22
23 ## For a processing algorithm name the executable file.
24 element executable { text }? &
25
26 ## For a report activity name the report template XML file inside
27 ## settings.REPORT_TEMPLATE_DIR.
28 element template { text }? &
29
30 ## Allow heavy-weight activities to be restricted to workers with more resources
31 element weight { xsd:float }? &
32
33 ## Allows workers to target some activities first
34 element priority { xsd:float }? &
35
36 ## State which parameters the algorithm needs to be called with
37 element calling-convention { "none" | "timerange" | "sid+timerange" | "filename" | "sid+hourly" | "sid+timerange+table"} &
38
39 ## Tell the worker this activity should be called automatically after certain tables are written to
40 element trigger {
41 element with-stats { xsd:boolean }? &
42 element type { "orbital" | "daily" | "hourly" | "threedaily" | "20min" }? &
43 element table { text }? &
44 element latency { xsd:duration }?
45 }* &
46
47 ## Declare all output tables we can write to.
48 element output-table { text }* &
49
50 ## This is purely cosmetic. Tell the report viewer to group together all reports with the
51 ## same <group> value.
52 element group { text }* &
53
54 ## Enable only for SIDs
55 element sid { text }* &
56
57 ## When viewing a report in the report viewer the user can pull down a list of other
58 ## reports to switch to. If the activity has <related> reports these are shown at the top.
59 element related {
60 element report { text }*
61 }* &
62
63 element weight { xsd:integer }? &
64
65 element priority { xsd:integer }? &
66
67 element configuration {
68 element parameter {
69 element name { text } &
70 element description { text } &
71 element datatype { "path" } &
72 element value { text }
73 }+
74 }?
75}