-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathavaya_process_skill_data.int
102 lines (95 loc) · 2.14 KB
/
avaya_process_skill_data.int
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version "1";
object 'PARM' "parms" {
parms = {
{
name = "archiveDir",
default = "/var/opt/DI/dl-dataroot/IMPdata/archive/avaya/skills",
testdefault = "/var/opt/DI/dl-dataroot/IMPdata/archive/avaya/skills"
},
{
name = "sourceDir",
default = "/mnt/avaya/skills",
testdefault = "/mnt/avaya/skills"
},
{
name = "buildDir",
default = "/var/opt/DI/dl-dataroot/IMPdata/temp/build/avaya/skills",
testdefault = "/var/opt/DI/dl-dataroot/IMPdata/temp/build/avaya/skills"
}
}
};
object 'TSKL' "Main" {
contents = {
`Avaya Skill ETL`
}
};
object 'TASK' "Avaya Skill ETL" {
inputs = {
`Directory-1-DIR`
},
output = `Execrows-1-EXR`,
processes = {
`arch-CAL`,
`filename-SRT`,
`nix-CAL`
}
};
object 'INPT' "Directory-1-DIR" {
//+ coordinatex = `33`,
//+ coordinatey = `8`,
input_type = `directory`,
starnames = { `*.csv`, `*.txt` },
directory = `$sourceDir`
};
object 'PROC' "arch-CAL" {
//+ coordinatex = `333`,
//+ coordinatey = `8`,
process_type = `calc`,
input = `nix-CAL`,
calcs = {
{
name = `archFile`,
value = `concat("$(buildDir)","/",nixFile,".bz2")`
},
{
name = `perlInput`,
value = `concat("$buildDir","/",Filename)`
}
}
};
object 'PROC' "filename-SRT" {
//+ coordinatex = `133`,
//+ coordinatey = `8`,
process_type = `sort`,
input = `Directory-1-DIR`,
sort_columns = { `Modified Date`, `Filename` }
};
object 'PROC' "nix-CAL" {
//+ coordinatex = `233`,
//+ coordinatey = `8`,
process_type = `calc`,
input = `filename-SRT`,
calcs = {
{
name = `nixPath`,
value = `replace(Path," ", "\\ ")`,
update = `true`
},
{
name = `nixFile`,
value = `replace(Filename," ", "\\ ")`
}
}
};
object 'OUTP' "Execrows-1-EXR" {
//+ coordinatex = `433`,
//+ coordinatey = `8`,
output_type = `execrows`,
input = `arch-CAL`,
commands = {
`mv $$nixPath $buildDir/`,
`perl avaya_summary_skill_parse.pl "$$(perlInput)"`,
`bzip2 $buildDir/$$nixFile`,
`mv $$archFile $archiveDir/`
}
};