gd_bam 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Graph author="fluke" created="Tue Feb 05 15:38:24 PST 2013" guiVersion="3.3.1" id="1360179808937" licenseType="Commercial" modified="Fri Feb 22 13:36:18 PST 2013" modifiedBy="fluke" name="process_name" revision="1.12" showComponentDetails="true">
3
+ <Global>
4
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_in.xml" id="Metadata0"/>
5
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_out.xml" id="Metadata1"/>
6
+ <MetadataGroup id="ComponentGroup0" name="metadata"/>
7
+ <Property fileURL="params.txt" id="GraphParameter0"/>
8
+ <Property fileURL="workspace.prm" id="GraphParameter1"/>
9
+ <Dictionary/>
10
+ </Global>
11
+ <Phase number="0">
12
+ <Node enabled="enabled" fileURL="data/1_in.csv" guiHeight="77" guiName="CSV Reader" guiWidth="128" guiX="124" guiY="169" id="DATA_READER0" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
13
+ <Node enabled="enabled" fileURL="data/out.csv" guiHeight="77" guiName="CSV Writer" guiWidth="128" guiX="609" guiY="169" id="DATA_WRITER0" outputFieldNames="true" quoteCharacter="&quot;" quotedStrings="true" type="DATA_WRITER"/>
14
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="365" guiY="175" id="REFORMAT0" type="REFORMAT">
15
+ <attr name="transform"><![CDATA[//#CTL2
16
+
17
+ // Transforms input record into output record.
18
+ function integer transform() {
19
+ $out.0.* = $in.0.*;
20
+ $out.0.Url = '${SF_SERVER_FOR_LINKS}' + $in.0.Id;
21
+
22
+ return ALL;
23
+ }
24
+
25
+ // Called during component initialization.
26
+ // function boolean init() {}
27
+
28
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
29
+ // required by the transform. All resources allocated within this method should be released
30
+ // by the postExecute() method.
31
+ // function void preExecute() {}
32
+
33
+ // Called only if transform() throws an exception.
34
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
35
+
36
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
37
+ // allocated within the preExecute() method.
38
+ // function void postExecute() {}
39
+
40
+ // Called to return a user-defined error message when an error occurs.
41
+ // function string getMessage() {}
42
+ ]]></attr>
43
+ </Node>
44
+ <Edge fromNode="DATA_READER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (output)" toNode="REFORMAT0:0"/>
45
+ <Edge fromNode="REFORMAT0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge1" inPort="Port 0 (in)" metadata="Metadata1" outPort="Port 0 (out)" toNode="DATA_WRITER0:0"/>
46
+ </Phase>
47
+ </Graph>
@@ -0,0 +1,222 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Graph author="fluke" created="Tue Feb 05 15:38:24 PST 2013" guiVersion="3.3.2" id="1360179808937" licenseCode="CLP1DGOODD71636137BY" licenseType="Commercial" modified="Fri Mar 08 12:55:05 PST 2013" modifiedBy="gdc-defectivedisplay" name="process_name" revision="1.17" showComponentDetails="true">
3
+ <Global>
4
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_in.xml" id="Metadata0"/>
5
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_out.xml" id="Metadata1"/>
6
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/2_in.xml" id="Metadata3"/>
7
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/2_out.xml" id="Metadata4"/>
8
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/3_in.xml" id="Metadata5"/>
9
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/3_out.xml" id="Metadata6"/>
10
+ <MetadataGroup id="ComponentGroup0" name="metadata"/>
11
+ <Property fileURL="params.txt" id="GraphParameter0"/>
12
+ <Property fileURL="workspace.prm" id="GraphParameter2"/>
13
+ <Dictionary/>
14
+ </Global>
15
+ <Phase number="0">
16
+ <Node charset="UTF-8" enabled="enabled" fileURL="${PROJECT}/data/3_in.csv" guiHeight="89" guiName="CSV Reader" guiWidth="128" guiX="26" guiY="339" id="DATA_READER1" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
17
+ <Node charset="UTF-8" enabled="enabled" fileURL="${PROJECT}/data/1_in.csv" guiHeight="89" guiName="CSV Reader" guiWidth="128" guiX="26" guiY="9" id="DATA_READER5" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
18
+ <Node charset="UTF-8" enabled="enabled" fileURL="${PROJECT}/data/2_in.csv" guiHeight="89" guiName="CSV Reader" guiWidth="128" guiX="26" guiY="158" id="DATA_READER6" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
19
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="263" guiY="339" id="EXT_SORT1" sortKey="Id(a)" type="EXT_SORT"/>
20
+ <Edge fromNode="DATA_READER1:0" guiBendpoints="" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (in)" metadata="Metadata5" outPort="Port 0 (output)" toNode="EXT_SORT1:0"/>
21
+ <Edge debugMode="true" fromNode="DATA_READER5:0" guiBendpoints="" guiRouter="Manhattan" id="Edge6" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (output)" toNode="REFORMAT4:0"/>
22
+ <Edge debugMode="true" fromNode="DATA_READER6:0" guiBendpoints="" guiRouter="Manhattan" id="Edge28" inPort="Port 0 (in)" metadata="Metadata3" outPort="Port 0 (output)" toNode="REFORMAT5:0"/>
23
+ <Edge fromNode="EXT_SORT1:0" guiBendpoints="" guiRouter="Manhattan" id="Edge2" inPort="Port 1 (slave)" metadata="Metadata6" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN0:1"/>
24
+ </Phase>
25
+ <Phase number="19">
26
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="215" guiY="15" id="REFORMAT4" type="REFORMAT">
27
+ <attr name="transform"><![CDATA[//#CTL2
28
+
29
+ // Transforms input record into output record.
30
+ function integer transform() {
31
+
32
+ integer number_of_fields = length($in.0);
33
+ integer i = 0;
34
+ string input_name = "";
35
+ integer output_index = 0;
36
+ string type = "";
37
+ string value = "";
38
+ for (i; i< number_of_fields; ++i) {
39
+ type = getFieldType($in.0, i);
40
+ input_name = getFieldName($in.0, i);
41
+ output_index = getFieldIndex($out.0, input_name);
42
+ if (output_index != -1) {
43
+ switch(type) {
44
+ case "string": setStringValue($out.0, output_index, getStringValue($in.0, input_name): ""); break;
45
+ case "number": setNumValue($out.0, output_index, getNumValue($in.0, input_name) : 0); break;
46
+ case "date": setDateValue($out.0, output_index, getDateValue($in.0, input_name) : str2date("1950-01-01", "yyyy-MM-dd")); break;
47
+
48
+ }
49
+
50
+ }
51
+ };
52
+
53
+ $out.0.isTask = "false";
54
+
55
+ return OK;
56
+ }
57
+
58
+ // Called during component initialization.
59
+ // function boolean init() {}
60
+
61
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
62
+ // required by the transform. All resources allocated within this method should be released
63
+ // by the postExecute() method.
64
+ // function void preExecute() {}
65
+
66
+ // Called only if transform() throws an exception.
67
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
68
+
69
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
70
+ // allocated within the preExecute() method.
71
+ // function void postExecute() {}
72
+
73
+ // Called to return a user-defined error message when an error occurs.
74
+ // function string getMessage() {}
75
+ ]]></attr>
76
+ </Node>
77
+ <Edge fromNode="REFORMAT4:0" guiBendpoints="" guiRouter="Manhattan" id="Edge40" inPort="Port 0 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="SIMPLE_GATHER0:0"/>
78
+ </Phase>
79
+ <Phase number="20">
80
+ <Node append="false" charset="UTF-8" enabled="enabled" fileURL="${PROJECT}/data/out.csv" guiHeight="89" guiName="Activity" guiWidth="128" guiX="1024" guiY="339" id="ACTIVITY1" makeDirs="false" outputFieldNames="true" quoteCharacter="&quot;" quotedStrings="true" type="DATA_WRITER"/>
81
+ <Node enabled="enabled" guiHeight="77" guiName="ExtMergeJoin" guiWidth="128" guiX="665" guiY="333" id="EXT_MERGE_JOIN0" joinKey="$WhatId(a)#$Id(a);" joinType="leftOuter" type="EXT_MERGE_JOIN">
82
+ <attr name="transform"><![CDATA[//#CTL2
83
+
84
+ // Transforms input record into output record.
85
+ function integer transform() {
86
+ $out.0.* = $in.0.*;
87
+ $out.0.CreatedDate = $in.1.CreatedDate;
88
+ $out.0.CloseDate = $in.1.CloseDate;
89
+ $out.0.AccountId = $in.1.AccountId;
90
+ $out.0.OpportunityOwner = $in.1.OwnerId;
91
+ $out.0.Stage = $in.1.StageName;
92
+
93
+ return ALL;
94
+ }
95
+
96
+ // Called during component initialization.
97
+ // function boolean init() {}
98
+
99
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
100
+ // required by the transform. All resources allocated within this method should be released
101
+ // by the postExecute() method.
102
+ // function void preExecute() {}
103
+
104
+ // Called only if transform() throws an exception.
105
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
106
+
107
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
108
+ // allocated within the preExecute() method.
109
+ // function void postExecute() {}
110
+
111
+ // Called to return a user-defined error message when an error occurs.
112
+ // function string getMessage() {}
113
+ ]]></attr>
114
+ </Node>
115
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="619" guiY="141" id="EXT_SORT0" sortKey="WhatId(a)" type="EXT_SORT"/>
116
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="853" guiY="339" id="REFORMAT0" type="REFORMAT">
117
+ <attr name="transform"><![CDATA[//#CTL2
118
+
119
+ // Transforms input record into output record.
120
+ function integer transform() {
121
+ $out.0.* = $in.0.*;
122
+
123
+
124
+ if ($in.0.CloseDate != null && $in.0.CloseDate != "" && left($in.0.CloseDate, 4) < "1950") {
125
+ $out.0.CloseDate = '1950-01-01';
126
+ }
127
+
128
+ if ($in.0.CloseDate != null && $in.0.CloseDate != "" && left($in.0.CloseDate, 4) > "2049") {
129
+ $out.0.CloseDate = '2049-01-01';
130
+ }
131
+
132
+ if ($in.0.CreatedDate != null && $in.0.CreatedDate != "") {
133
+ $out.0.CreatedDate = left($in.0.CreatedDate, 10);
134
+ }
135
+
136
+ return ALL;
137
+ }
138
+
139
+ // Called during component initialization.
140
+ // function boolean init() {}
141
+
142
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
143
+ // required by the transform. All resources allocated within this method should be released
144
+ // by the postExecute() method.
145
+ // function void preExecute() {}
146
+
147
+ // Called only if transform() throws an exception.
148
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
149
+
150
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
151
+ // allocated within the preExecute() method.
152
+ // function void postExecute() {}
153
+
154
+ // Called to return a user-defined error message when an error occurs.
155
+ // function string getMessage() {}
156
+ ]]></attr>
157
+ </Node>
158
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="232" guiY="158" id="REFORMAT5" type="REFORMAT">
159
+ <attr name="transform"><![CDATA[//#CTL2
160
+
161
+ // Transforms input record into output record.
162
+ function integer transform() {
163
+ integer number_of_fields = length($in.0);
164
+ integer i = 0;
165
+ string input_name = "";
166
+ integer output_index = 0;
167
+ string type = "";
168
+ string value = "";
169
+ for (i; i< number_of_fields; ++i) {
170
+ type = getFieldType($in.0, i);
171
+ input_name = getFieldName($in.0, i);
172
+ output_index = getFieldIndex($out.0, input_name);
173
+ if (output_index != -1) {
174
+ switch(type) {
175
+ case "string": setStringValue($out.0, output_index, getStringValue($in.0, input_name) : ""); break;
176
+ case "number": setNumValue($out.0, output_index, getNumValue($in.0, input_name) : 0); break;
177
+ case "date": setDateValue($out.0, output_index, getDateValue($in.0, input_name) : str2date("1950-01-01", "yyyy-MM-dd")); break;
178
+ }
179
+
180
+ }
181
+ };
182
+
183
+ $out.0.isTask = "true";
184
+
185
+ if (($in.0.ActivityDate != null && $in.0.ActivityDate != "") && left($in.0.ActivityDate, 4) < "1950") {
186
+ $out.0.ActivityDate = '1950-01-01';
187
+ }
188
+
189
+ if (($in.0.ActivityDate != null && $in.0.ActivityDate != "") && left($in.0.ActivityDate, 4) > "2049") {
190
+ $out.0.ActivityDate = '2049-01-01';
191
+ }
192
+
193
+ return OK;
194
+ }
195
+
196
+ // Called during component initialization.
197
+ // function boolean init() {}
198
+
199
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
200
+ // required by the transform. All resources allocated within this method should be released
201
+ // by the postExecute() method.
202
+ // function void preExecute() {}
203
+
204
+ // Called only if transform() throws an exception.
205
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
206
+
207
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
208
+ // allocated within the preExecute() method.
209
+ // function void postExecute() {}
210
+
211
+ // Called to return a user-defined error message when an error occurs.
212
+ // function string getMessage() {}
213
+ ]]></attr>
214
+ </Node>
215
+ <Node enabled="enabled" guiHeight="72" guiName="SimpleGather" guiWidth="128" guiX="445" guiY="146" id="SIMPLE_GATHER0" type="SIMPLE_GATHER"/>
216
+ <Edge fromNode="EXT_MERGE_JOIN0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge3" inPort="Port 0 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="REFORMAT0:0"/>
217
+ <Edge fromNode="EXT_SORT0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge1" inPort="Port 0 (driver)" metadata="Metadata4" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN0:0"/>
218
+ <Edge fromNode="REFORMAT0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge4" inPort="Port 0 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="ACTIVITY1:0"/>
219
+ <Edge fromNode="REFORMAT5:0" guiBendpoints="" guiRouter="Manhattan" id="Edge41" inPort="Port 1 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="SIMPLE_GATHER0:1"/>
220
+ <Edge fromNode="SIMPLE_GATHER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge135" inPort="Port 0 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="EXT_SORT0:0"/>
221
+ </Phase>
222
+ </Graph>
@@ -0,0 +1,88 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Graph author="fluke" created="Tue Feb 05 15:38:24 PST 2013" guiVersion="3.3.1" id="1360179808937" licenseType="Commercial" modified="Fri Feb 22 14:52:17 PST 2013" modifiedBy="fluke" name="process_name" revision="1.14" showComponentDetails="true">
3
+ <Global>
4
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_in.xml" id="Metadata0"/>
5
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_out.xml" id="Metadata1"/>
6
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/2_in.xml" id="Metadata3"/>
7
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/2_out.xml" id="Metadata4"/>
8
+ <MetadataGroup id="ComponentGroup0" name="metadata"/>
9
+ <Property fileURL="params.txt" id="GraphParameter0"/>
10
+ <Property fileURL="workspace.prm" id="GraphParameter1"/>
11
+ <Dictionary/>
12
+ </Global>
13
+ <Phase number="0">
14
+ <Node charset="UTF-8" enabled="enabled" fileURL="${PROJECT}/data/1_in.csv" guiHeight="89" guiName="CSV Reader" guiWidth="128" guiX="284" guiY="12" id="DATA_READER5" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
15
+ <Node charset="UTF-8" enabled="enabled" fileURL="${PROJECT}/data/2_in.csv" guiHeight="89" guiName="CSV Reader" guiWidth="128" guiX="284" guiY="232" id="DATA_READER6" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
16
+ <Edge debugMode="true" fromNode="DATA_READER5:0" guiBendpoints="" guiRouter="Manhattan" id="Edge6" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (output)" toNode="REFORMAT4:0"/>
17
+ <Edge debugMode="true" fromNode="DATA_READER6:0" guiBendpoints="" guiRouter="Manhattan" id="Edge28" inPort="Port 0 (in)" metadata="Metadata3" outPort="Port 0 (output)" toNode="REFORMAT5:0"/>
18
+ </Phase>
19
+ <Phase number="19">
20
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="473" guiY="18" id="REFORMAT4" type="REFORMAT">
21
+ <attr name="transform"><![CDATA[//#CTL2
22
+
23
+ // Transforms input record into output record.
24
+ function integer transform() {
25
+
26
+ $out.0.* = $in.0.*;
27
+ $out.0.Status = "Done";
28
+
29
+ return OK;
30
+ }
31
+
32
+ // Called during component initialization.
33
+ // function boolean init() {}
34
+
35
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
36
+ // required by the transform. All resources allocated within this method should be released
37
+ // by the postExecute() method.
38
+ // function void preExecute() {}
39
+
40
+ // Called only if transform() throws an exception.
41
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
42
+
43
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
44
+ // allocated within the preExecute() method.
45
+ // function void postExecute() {}
46
+
47
+ // Called to return a user-defined error message when an error occurs.
48
+ // function string getMessage() {}
49
+ ]]></attr>
50
+ </Node>
51
+ <Edge fromNode="REFORMAT4:0" guiBendpoints="" guiRouter="Manhattan" id="Edge40" inPort="Port 0 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="SIMPLE_GATHER0:0"/>
52
+ </Phase>
53
+ <Phase number="20">
54
+ <Node append="false" charset="UTF-8" enabled="enabled" fileURL="${PROJECT}/data/out.csv" guiHeight="89" guiName="Activity" guiWidth="128" guiX="905" guiY="103" id="ACTIVITY1" makeDirs="false" outputFieldNames="true" quoteCharacter="&quot;" quotedStrings="true" type="DATA_WRITER"/>
55
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="490" guiY="232" id="REFORMAT5" type="REFORMAT">
56
+ <attr name="transform"><![CDATA[//#CTL2
57
+
58
+ // Transforms input record into output record.
59
+ function integer transform() {
60
+ $out.0.* = $in.0.*;
61
+
62
+ return OK;
63
+ }
64
+
65
+ // Called during component initialization.
66
+ // function boolean init() {}
67
+
68
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
69
+ // required by the transform. All resources allocated within this method should be released
70
+ // by the postExecute() method.
71
+ // function void preExecute() {}
72
+
73
+ // Called only if transform() throws an exception.
74
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
75
+
76
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
77
+ // allocated within the preExecute() method.
78
+ // function void postExecute() {}
79
+
80
+ // Called to return a user-defined error message when an error occurs.
81
+ // function string getMessage() {}
82
+ ]]></attr>
83
+ </Node>
84
+ <Node enabled="enabled" guiHeight="72" guiName="SimpleGather" guiWidth="128" guiX="652" guiY="112" id="SIMPLE_GATHER0" type="SIMPLE_GATHER"/>
85
+ <Edge fromNode="REFORMAT5:0" guiBendpoints="" guiRouter="Manhattan" id="Edge41" inPort="Port 1 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="SIMPLE_GATHER0:1"/>
86
+ <Edge fromNode="SIMPLE_GATHER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge135" inPort="Port 0 (in)" metadata="Metadata4" outPort="Port 0 (out)" toNode="ACTIVITY1:0"/>
87
+ </Phase>
88
+ </Graph>
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Graph author="fluke" created="Tue Feb 05 15:38:24 PST 2013" guiVersion="3.3.1" id="1360179808937" licenseType="Commercial" modified="Thu Feb 21 23:29:16 PST 2013" modifiedBy="fluke" name="process_name" revision="1.11" showComponentDetails="true">
3
+ <Global>
4
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_in.xml" id="Metadata0"/>
5
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_out.xml" id="Metadata1"/>
6
+ <MetadataGroup id="ComponentGroup0" name="metadata"/>
7
+ <Property fileURL="params.txt" id="GraphParameter0"/>
8
+ <Property fileURL="workspace.prm" id="GraphParameter1"/>
9
+ <Dictionary/>
10
+ </Global>
11
+ <Phase number="0">
12
+ <Node enabled="enabled" fileURL="data/1_in.csv" guiHeight="77" guiName="CSV Reader" guiWidth="128" guiX="124" guiY="169" id="DATA_READER0" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
13
+ <Node enabled="enabled" fileURL="data/out.csv" guiHeight="77" guiName="CSV Writer" guiWidth="128" guiX="609" guiY="169" id="DATA_WRITER0" outputFieldNames="true" quoteCharacter="&quot;" quotedStrings="true" type="DATA_WRITER"/>
14
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="365" guiY="175" id="REFORMAT0" type="REFORMAT">
15
+ <attr name="transform"><![CDATA[//#CTL2
16
+
17
+ // Transforms input record into output record.
18
+ function integer transform() {
19
+ $out.0.* = $in.0.*;
20
+ $out.0.Name = $in.0.FirstName + " " + $in.0.LastName;
21
+ $out.0.Url = '${SF_SERVER_FOR_LINKS}' + $in.0.Id;
22
+
23
+ return OK;
24
+ }
25
+
26
+ // Called during component initialization.
27
+ // function boolean init() {}
28
+
29
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
30
+ // required by the transform. All resources allocated within this method should be released
31
+ // by the postExecute() method.
32
+ // function void preExecute() {}
33
+
34
+ // Called only if transform() throws an exception.
35
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
36
+
37
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
38
+ // allocated within the preExecute() method.
39
+ // function void postExecute() {}
40
+
41
+ // Called to return a user-defined error message when an error occurs.
42
+ // function string getMessage() {}
43
+ ]]></attr>
44
+ </Node>
45
+ <Edge fromNode="DATA_READER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (output)" toNode="REFORMAT0:0"/>
46
+ <Edge fromNode="REFORMAT0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge1" inPort="Port 0 (in)" metadata="Metadata1" outPort="Port 0 (out)" toNode="DATA_WRITER0:0"/>
47
+ </Phase>
48
+ </Graph>
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Graph author="fluke" created="Tue Feb 05 15:38:24 PST 2013" guiVersion="3.3.1" id="1360179808937" licenseType="Commercial" modified="Fri Feb 22 13:36:18 PST 2013" modifiedBy="fluke" name="process_name" revision="1.12" showComponentDetails="true">
3
+ <Global>
4
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_in.xml" id="Metadata0"/>
5
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_out.xml" id="Metadata1"/>
6
+ <MetadataGroup id="ComponentGroup0" name="metadata"/>
7
+ <Property fileURL="params.txt" id="GraphParameter0"/>
8
+ <Property fileURL="workspace.prm" id="GraphParameter1"/>
9
+ <Dictionary/>
10
+ </Global>
11
+ <Phase number="0">
12
+ <Node enabled="enabled" fileURL="data/1_in.csv" guiHeight="77" guiName="CSV Reader" guiWidth="128" guiX="124" guiY="169" id="DATA_READER0" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
13
+ <Node enabled="enabled" fileURL="data/out.csv" guiHeight="77" guiName="CSV Writer" guiWidth="128" guiX="609" guiY="169" id="DATA_WRITER0" outputFieldNames="true" quoteCharacter="&quot;" quotedStrings="true" type="DATA_WRITER"/>
14
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="365" guiY="175" id="REFORMAT0" type="REFORMAT">
15
+ <attr name="transform"><![CDATA[//#CTL2
16
+
17
+ // Transforms input record into output record.
18
+ function integer transform() {
19
+
20
+ $out.0.* = $in.0.*;
21
+ return ALL;
22
+ }
23
+
24
+ // Called during component initialization.
25
+ // function boolean init() {}
26
+
27
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
28
+ // required by the transform. All resources allocated within this method should be released
29
+ // by the postExecute() method.
30
+ // function void preExecute() {}
31
+
32
+ // Called only if transform() throws an exception.
33
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
34
+
35
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
36
+ // allocated within the preExecute() method.
37
+ // function void postExecute() {}
38
+
39
+ // Called to return a user-defined error message when an error occurs.
40
+ // function string getMessage() {}
41
+ ]]></attr>
42
+ </Node>
43
+ <Edge fromNode="DATA_READER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (output)" toNode="REFORMAT0:0"/>
44
+ <Edge fromNode="REFORMAT0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge1" inPort="Port 0 (in)" metadata="Metadata1" outPort="Port 0 (out)" toNode="DATA_WRITER0:0"/>
45
+ </Phase>
46
+ </Graph>
@@ -0,0 +1,179 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Graph author="gdc-defectivedisplay" created="Thu Mar 07 20:20:14 PST 2013" guiVersion="3.3.2" id="1362726965567" licenseCode="CLP1DGOODD71636137BY" licenseType="Commercial" modified="Thu Mar 21 11:26:21 PDT 2013" modifiedBy="?" name="process_opportunity_line_item" revision="1.25" showComponentDetails="true">
3
+ <Global>
4
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_in.xml" id="Metadata0"/>
5
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/1_out.xml" id="Metadata1"/>
6
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/2_in.xml" id="Metadata2"/>
7
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/2_out.xml" id="Metadata3"/>
8
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/3_in.xml" id="Metadata4"/>
9
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/3_out.xml" id="Metadata5"/>
10
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/4_in.xml" id="Metadata6"/>
11
+ <Metadata fileURL="${PROJECT}/metadata/${FLOW}/${NAME}/4_out.xml" id="Metadata7"/>
12
+ <Property fileURL="params.txt" id="GraphParameter0"/>
13
+ <Property fileURL="workspace.prm" id="GraphParameter1"/>
14
+ <Dictionary/>
15
+ </Global>
16
+ <Phase number="0">
17
+ <Node enabled="enabled" fileURL="data/1_in.csv" guiHeight="77" guiName="CSV Reader" guiWidth="128" guiX="74" guiY="51" id="DATA_READER0" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
18
+ <Node enabled="enabled" fileURL="data/2_in.csv" guiHeight="77" guiName="CSV Reader" guiWidth="128" guiX="74" guiY="153" id="DATA_READER1" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
19
+ <Node enabled="enabled" fileURL="data/3_in.csv" guiHeight="77" guiName="CSV Reader" guiWidth="128" guiX="74" guiY="388" id="DATA_READER2" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
20
+ <Node enabled="enabled" fileURL="data/4_in.csv" guiHeight="77" guiName="CSV Reader" guiWidth="128" guiX="60" guiY="539" id="DATA_READER3" quoteCharacter="&quot;" quotedStrings="true" skipRows="1" type="DATA_READER"/>
21
+ <Node enabled="enabled" fileURL="data/out.csv" guiHeight="77" guiName="CSV Writer" guiWidth="128" guiX="1142" guiY="533" id="DATA_WRITER0" outputFieldNames="true" quoteCharacter="&quot;" quotedStrings="true" type="DATA_WRITER"/>
22
+ <Node enabled="enabled" guiHeight="89" guiName="ExtMergeJoin" guiWidth="128" guiX="488" guiY="113" id="EXT_MERGE_JOIN0" joinKey="$PricebookEntryId(a)#$Id(a);" joinType="leftOuter" type="EXT_MERGE_JOIN">
23
+ <attr name="transform"><![CDATA[//#CTL2
24
+
25
+ // Transforms input record into output record.
26
+ function integer transform() {
27
+ $out.0.* = $in.0.*;
28
+
29
+ $out.0.PricebookEntryId = $in.1.Product2Id;
30
+
31
+ return ALL;
32
+ }
33
+
34
+ // Called during component initialization.
35
+ // function boolean init() {}
36
+
37
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
38
+ // required by the transform. All resources allocated within this method should be released
39
+ // by the postExecute() method.
40
+ // function void preExecute() {}
41
+
42
+ // Called only if transform() throws an exception.
43
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
44
+
45
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
46
+ // allocated within the preExecute() method.
47
+ // function void postExecute() {}
48
+
49
+ // Called to return a user-defined error message when an error occurs.
50
+ // function string getMessage() {}
51
+ ]]></attr>
52
+ </Node>
53
+ <Node enabled="enabled" guiHeight="89" guiName="ExtMergeJoin" guiWidth="128" guiX="673" guiY="382" id="EXT_MERGE_JOIN1" joinKey="$Id(a)#$OpportunityId(a);" joinType="leftOuter" slaveDuplicates="true" type="EXT_MERGE_JOIN">
54
+ <attr name="transform"><![CDATA[//#CTL2
55
+
56
+ // Transforms input record into output record.
57
+ function integer transform() {
58
+
59
+ $out.0.* = $in.0.*;
60
+
61
+ $out.0.Id = nvl2($in.1.Id, $in.1.Id + $in.0.Id, $in.0.Id);
62
+ $out.0.OpportunityId = $in.0.Id;
63
+
64
+
65
+
66
+ $out.0.Amount = nvl($in.1.TotalPrice,$in.0.Amount);
67
+ $out.0.Product = $in.1.PricebookEntryId;
68
+
69
+ return ALL;
70
+ }
71
+
72
+ // Called during component initialization.
73
+ // function boolean init() {}
74
+
75
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
76
+ // required by the transform. All resources allocated within this method should be released
77
+ // by the postExecute() method.
78
+ // function void preExecute() {}
79
+
80
+ // Called only if transform() throws an exception.
81
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
82
+
83
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
84
+ // allocated within the preExecute() method.
85
+ // function void postExecute() {}
86
+
87
+ // Called to return a user-defined error message when an error occurs.
88
+ // function string getMessage() {}
89
+ ]]></attr>
90
+ </Node>
91
+ <Node enabled="enabled" guiHeight="89" guiName="ExtMergeJoin" guiWidth="128" guiX="809" guiY="533" id="EXT_MERGE_JOIN2" joinKey="$StageName(a)#$Id(a);" joinType="leftOuter" slaveDuplicates="true" type="EXT_MERGE_JOIN">
92
+ <attr name="transform"><![CDATA[//#CTL2
93
+
94
+ // Transforms input record into output record.
95
+ function integer transform() {
96
+
97
+ $out.0.* = $in.0.*;
98
+
99
+ $out.0.IsClosed = $in.1.IsClosed;
100
+ $out.0.IsWon = $in.1.IsWon;
101
+
102
+ return ALL;
103
+ }
104
+
105
+ // Called during component initialization.
106
+ // function boolean init() {}
107
+
108
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
109
+ // required by the transform. All resources allocated within this method should be released
110
+ // by the postExecute() method.
111
+ // function void preExecute() {}
112
+
113
+ // Called only if transform() throws an exception.
114
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
115
+
116
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
117
+ // allocated within the preExecute() method.
118
+ // function void postExecute() {}
119
+
120
+ // Called to return a user-defined error message when an error occurs.
121
+ // function string getMessage() {}
122
+ ]]></attr>
123
+ </Node>
124
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="252" guiY="51" id="EXT_SORT0" sortKey="PricebookEntryId(a)" type="EXT_SORT"/>
125
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="252" guiY="153" id="EXT_SORT1" sortKey="Id" type="EXT_SORT"/>
126
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="252" guiY="388" id="EXT_SORT2" sortKey="Id(a)" type="EXT_SORT"/>
127
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="482" guiY="236" id="EXT_SORT3" sortKey="OpportunityId(a)" type="EXT_SORT"/>
128
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="283" guiY="539" id="EXT_SORT4" sortKey="Id(a)" type="EXT_SORT"/>
129
+ <Node enabled="enabled" guiHeight="77" guiName="ExtSort" guiWidth="128" guiX="855" guiY="388" id="EXT_SORT5" sortKey="StageName(a)" type="EXT_SORT"/>
130
+ <Node enabled="enabled" guiHeight="65" guiName="Reformat" guiWidth="128" guiX="989" guiY="533" id="REFORMAT0" type="REFORMAT">
131
+ <attr name="transform"><![CDATA[//#CTL2
132
+
133
+ // Transforms input record into output record.
134
+ function integer transform() {
135
+ $out.0.* = $in.0.*;
136
+
137
+
138
+ // if ($in.0.Snapshot == "" || $in.0.Snapshot == null) {
139
+ // $out.0.Snapshot = '2013-01-08';
140
+ // }
141
+
142
+ return ALL;
143
+ }
144
+
145
+ // Called during component initialization.
146
+ // function boolean init() {}
147
+
148
+ // Called during each graph run before the transform is executed. May be used to allocate and initialize resources
149
+ // required by the transform. All resources allocated within this method should be released
150
+ // by the postExecute() method.
151
+ // function void preExecute() {}
152
+
153
+ // Called only if transform() throws an exception.
154
+ // function integer transformOnError(string errorMessage, string stackTrace) {}
155
+
156
+ // Called during each graph run after the entire transform was executed. Should be used to free any resources
157
+ // allocated within the preExecute() method.
158
+ // function void postExecute() {}
159
+
160
+ // Called to return a user-defined error message when an error occurs.
161
+ // function string getMessage() {}
162
+ ]]></attr>
163
+ </Node>
164
+ <Edge fromNode="DATA_READER0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge0" inPort="Port 0 (in)" metadata="Metadata0" outPort="Port 0 (output)" toNode="EXT_SORT0:0"/>
165
+ <Edge fromNode="DATA_READER1:0" guiBendpoints="" guiRouter="Manhattan" id="Edge2" inPort="Port 0 (in)" metadata="Metadata2" outPort="Port 0 (output)" toNode="EXT_SORT1:0"/>
166
+ <Edge fromNode="DATA_READER2:0" guiBendpoints="" guiRouter="Manhattan" id="Edge5" inPort="Port 0 (in)" metadata="Metadata4" outPort="Port 0 (output)" toNode="EXT_SORT2:0"/>
167
+ <Edge fromNode="DATA_READER3:0" guiBendpoints="" guiRouter="Manhattan" id="Edge10" inPort="Port 0 (in)" metadata="Metadata6" outPort="Port 0 (output)" toNode="EXT_SORT4:0"/>
168
+ <Edge debugMode="true" fromNode="EXT_MERGE_JOIN0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge8" inPort="Port 0 (in)" metadata="Metadata1" outPort="Port 0 (out)" toNode="EXT_SORT3:0"/>
169
+ <Edge fromNode="EXT_MERGE_JOIN1:0" guiBendpoints="" guiRouter="Manhattan" id="Edge13" inPort="Port 0 (in)" metadata="Metadata5" outPort="Port 0 (out)" toNode="EXT_SORT5:0"/>
170
+ <Edge debugMode="false" fromNode="EXT_MERGE_JOIN2:0" guiBendpoints="" guiRouter="Manhattan" id="Edge1" inPort="Port 0 (in)" metadata="Metadata5" outPort="Port 0 (out)" toNode="REFORMAT0:0"/>
171
+ <Edge debugMode="false" fromNode="EXT_SORT0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge3" inPort="Port 0 (driver)" metadata="Metadata0" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN0:0"/>
172
+ <Edge debugMode="false" fromNode="EXT_SORT1:0" guiBendpoints="" guiRouter="Manhattan" id="Edge4" inPort="Port 1 (slave)" metadata="Metadata2" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN0:1"/>
173
+ <Edge debugMode="false" fromNode="EXT_SORT2:0" guiBendpoints="" guiRouter="Manhattan" id="Edge7" inPort="Port 0 (driver)" metadata="Metadata4" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN1:0"/>
174
+ <Edge fromNode="EXT_SORT3:0" guiBendpoints="" guiRouter="Manhattan" id="Edge9" inPort="Port 1 (slave)" metadata="Metadata1" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN1:1"/>
175
+ <Edge fromNode="EXT_SORT4:0" guiBendpoints="" guiRouter="Manhattan" id="Edge11" inPort="Port 1 (slave)" metadata="Metadata6" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN2:1"/>
176
+ <Edge fromNode="EXT_SORT5:0" guiBendpoints="" guiRouter="Manhattan" id="Edge12" inPort="Port 0 (driver)" metadata="Metadata5" outPort="Port 0 (out)" toNode="EXT_MERGE_JOIN2:0"/>
177
+ <Edge debugMode="false" fromNode="REFORMAT0:0" guiBendpoints="" guiRouter="Manhattan" id="Edge6" inPort="Port 0 (in)" metadata="Metadata5" outPort="Port 0 (out)" toNode="DATA_WRITER0:0"/>
178
+ </Phase>
179
+ </Graph>