Project

General

Profile

1
<?xml version="1.0" encoding="UTF-8"?>
2
<RESOURCE_PROFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3
	<HEADER>
4
		<RESOURCE_IDENTIFIER value="605d8dc9-8dc7-4adc-848d-625b5655e468_V29ya2Zsb3dEU1Jlc291cmNlcy9Xb3JrZmxvd0RTUmVzb3VyY2VUeXBl"/>
5
		<RESOURCE_TYPE value="WorkflowDSResourceType"/>
6
		<RESOURCE_KIND value="WorkflowDSResources"/>
7
		<RESOURCE_URI value=""/>
8
		<DATE_OF_CREATION value="2014-12-16T18:13:51.0Z"/>
9
	</HEADER>
10
	<BODY>
11
		<WORKFLOW_NAME>Prepare Public Information Space Stats</WORKFLOW_NAME>
12
		<WORKFLOW_TYPE>Content Publishing</WORKFLOW_TYPE>
13
		<WORKFLOW_PRIORITY>30</WORKFLOW_PRIORITY>
14
		<CONFIGURATION start="manual">
15

    
16
			<NODE name="findStatsService" type="FindStatsService" isStart="true">
17
				<DESCRIPTION>find stats service</DESCRIPTION>
18
				<PARAMETERS>
19
					<PARAM name="xquery" type="string" managedBy="user" required="false">/RESOURCE_PROFILE[.//RESOURCE_TYPE/@value='StatsManagerServiceResourceType' and .//RESOURCE_KIND/@value='ServiceResources']/HEADER/RESOURCE_IDENTIFIER/@value/string()</PARAM>
20
					<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
21
				</PARAMETERS>
22
				<ARCS>
23
					<ARC name="found" to="setPortal"/>
24
				</ARCS>
25
			</NODE>
26
			<NODE name="setPortal" type="SetEnvParameter">
27
				<DESCRIPTION>Set the target portal instance</DESCRIPTION>
28
				<PARAMETERS>
29
					<PARAM name="parameterName" type="string" managedBy="system" required="true">portal</PARAM>
30
					<PARAM function="validValues(['test', 'beta', 'production'])" managedBy="user" name="parameterValue" required="true" type="string"/>
31
				</PARAMETERS>
32
				<ARCS>
33
					<ARC to="SELECT_BACKUP_CACHE"/>
34
				</ARCS>
35
			</NODE>
36
			<NODE name="SELECT_BACKUP_CACHE" type="Selection">
37
				<DESCRIPTION>A backup of the stats cache first, shall we?</DESCRIPTION>
38
				<PARAMETERS>
39
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
40
				</PARAMETERS>
41
				<ARCS>
42
					<ARC name="YES" to="backupCache"/>
43
					<ARC name="NO" to="SELECT_MIGRATION"/>
44
				</ARCS>
45
			</NODE>
46
			<NODE name="backupCache" type="BackupStatsCache">
47
				<DESCRIPTION>Backup the current stats cache. If the new generated shadow cache is not good we can rollback with the restore wf.</DESCRIPTION>
48
				<PARAMETERS>
49
					<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
50
					<PARAM managedBy="system" name="portalParam" required="true" type="string">portal</PARAM>
51
				</PARAMETERS>
52
				<ARCS>
53
					<ARC to="SELECT_MIGRATION"/>
54
				</ARCS>
55
			</NODE>
56
			<NODE name="SELECT_MIGRATION" type="Selection">
57
				<DESCRIPTION>Shall we migrate the cache from another portal?</DESCRIPTION>
58
				<PARAMETERS>
59
					<PARAM function="validValues(['YES', 'NO'])" managedBy="user" name="selection" required="true" type="string">YES</PARAM>
60
				</PARAMETERS>
61
				<ARCS>
62
					<ARC name="YES" to="migrateCache"/>
63
					<ARC name="NO" to="refreshShadowCache"/>
64
				</ARCS>
65
			</NODE>
66
			<NODE name="migrateCache" type="MigrateStatsCache">
67
				<DESCRIPTION>Select the cache from another portal</DESCRIPTION>
68
				<PARAMETERS>
69
					<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
70
					<PARAM managedBy="system" name="portalParam" required="true" type="string">portal</PARAM>
71
					<PARAM function="validValues(['test', 'beta', 'production'])" managedBy="user" name="sourcePortal" required="true" type="string"/>
72
				</PARAMETERS>
73
				<ARCS>
74
					<ARC to="success"/>
75
				</ARCS>
76
			</NODE>
77
			<NODE name="refreshShadowCache" type="RefreshShadowCache">
78
				<DESCRIPTION>Updates the shadow cache according to the shadow stats db.</DESCRIPTION>
79
				<PARAMETERS>
80
					<PARAM name="xqueryForServiceIdParam" type="string" managedBy="system" required="true">xqueryForStatsManagerService</PARAM>
81
					<PARAM managedBy="system" name="portalParam" required="true" type="string">portal</PARAM>
82
				</PARAMETERS>
83
				<ARCS>
84
					<ARC to="success"/>
85
				</ARCS>
86
			</NODE>
87
		</CONFIGURATION>
88
		<STATUS/>
89
	</BODY>
90
</RESOURCE_PROFILE>
91

    
92

    
(13-13/17)