Revision 47355
Added by Michele Artini almost 7 years ago
simple-aggregation-wf.xml | ||
---|---|---|
9 | 9 |
<TEMPLATE_NAME>Simple aggregation workflow</TEMPLATE_NAME> |
10 | 10 |
<TEMPLATE type="wf" language="StringTemplate"> |
11 | 11 |
<![CDATA[ |
12 |
|
|
12 |
<RESOURCE_PROFILE> |
|
13 |
<HEADER> |
|
14 |
<RESOURCE_IDENTIFIER value=""/> |
|
15 |
<RESOURCE_TYPE value="simple"/> |
|
16 |
<RESOURCE_KIND value="wf"/> |
|
17 |
<RESOURCE_MANAGER value="$worker$" /> |
|
18 |
<DATE_OF_CREATION value=""/> |
|
19 |
</HEADER> |
|
20 |
<BODY> |
|
21 |
<WORKFLOW_NAME>$name$</WORKFLOW_NAME> |
|
22 |
<WORKFLOW_DESCRIPTION>$desc$</WORKFLOW_DESCRIPTION> |
|
23 |
<WORKFLOW_INFO/> |
|
24 |
<WORKFLOW_FAMILY>aggregator</WORKFLOW_FAMILY> |
|
25 |
<WORKFLOW_PRIORITY>50</WORKFLOW_PRIORITY> |
|
26 |
<DATASOURCE id="$dsId$" interface="$iface$"/> |
|
27 |
<CONFIGURATION start="MANUAL" status="EXECUTABLE"> |
|
28 |
<PARAMETERS> |
|
29 |
<PARAM category="TRANSFORMATION_RULE_ID" description="Transformation Rule Identifier" function="listProfiles('TransformationRuleDSResourceType', '//TITLE')" managedBy="user" name="transformationRuleId" required="true" type="string"></PARAM> |
|
30 |
<PARAM category="MDSTORE_ID" description="Store for collected records" managedBy="system" name="collMdstoreId" required="true">$collMdstoreId$</PARAM> |
|
31 |
<PARAM category="MDSTORE_ID" description="Store for transformed records" managedBy="system" name="cleanMdstoreId" required="true">$cleanMdstoreId$</PARAM> |
|
32 |
</PARAMETERS> |
|
33 |
<WORKFLOW> |
|
34 |
<NODE isStart="true" name="collection" type="LaunchWorkflowTemplate"> |
|
35 |
<DESCRIPTION>Collect records</DESCRIPTION> |
|
36 |
<PARAMETERS> |
|
37 |
<PARAM name="wfTemplateId" value="XXXXXXXXXXXXXXXXX"/> |
|
38 |
<PARAM name="wfTemplateParams"> |
|
39 |
<MAP> |
|
40 |
<ENTRY key="dsId" value="$dsId$"/> |
|
41 |
<ENTRY key="interface" value="$iface$"/> |
|
42 |
<ENTRY key="collMdstoreId" ref="collMdstoreId"/> |
|
43 |
</MAP> |
|
44 |
</PARAM> |
|
45 |
</PARAMETERS> |
|
46 |
<ARCS> |
|
47 |
<ARC to="transform"/> |
|
48 |
</ARCS> |
|
49 |
</NODE> |
|
50 |
<NODE name="transform" type="LaunchWorkflowTemplate"> |
|
51 |
<DESCRIPTION>Clean record</DESCRIPTION> |
|
52 |
<PARAMETERS> |
|
53 |
<PARAM name="wfTemplateId" value="YYYYYYYYYYYYYYYYY"/> |
|
54 |
<PARAM name="wfTemplateParams"> |
|
55 |
<MAP> |
|
56 |
<ENTRY key="dsId" value="$dsId$"/> |
|
57 |
<ENTRY key="interface" value="$iface$"/> |
|
58 |
<ENTRY key="collMdstoreId" ref="collMdstoreId"/> |
|
59 |
<ENTRY key="cleanMdstoreId" ref="cleanMdstoreId"/> |
|
60 |
<ENTRY key="transformRuleId" ref="transformationRuleId"/> |
|
61 |
</MAP> |
|
62 |
</PARAM> |
|
63 |
</PARAMETERS> |
|
64 |
<ARCS> |
|
65 |
<ARC to="success"/> |
|
66 |
</ARCS> |
|
67 |
</NODE> |
|
68 |
</WORKFLOW> |
|
69 |
<DESTROY_WORKFLOW_TEMPLATE id="ZZZZZZZZZZZZZZZZZZZZZZZZZ"> |
|
70 |
<PARAMETERS> |
|
71 |
<PARAM name="dsId" value="$dsId$"/> |
|
72 |
<PARAM name="interface" value="$iface$"/> |
|
73 |
<PARAM name="collMdstoreId" ref="collMdstoreId"/> |
|
74 |
<PARAM name="cleanMdstoreId" ref="cleanMdstoreId"/> |
|
75 |
</PARAMETERS> |
|
76 |
</DESTROY_WORKFLOW_TEMPLATE> |
|
77 |
</CONFIGURATION> |
|
78 |
<NOTIFICATIONS/> |
|
79 |
<SCHEDULING enabled="false"> |
|
80 |
<CRON>9 9 9 ? * *</CRON> |
|
81 |
<MININTERVAL>10080</MININTERVAL> |
|
82 |
</SCHEDULING> |
|
83 |
<STATUS/> |
|
84 |
</BODY> |
|
85 |
</RESOURCE_PROFILE> |
|
13 | 86 |
]]> |
14 | 87 |
</TEMPLATE> |
15 | 88 |
</BODY> |
Also available in: Unified diff
partial repohi implementation