Interface WF
-
Upload
bachtiar-yanuari -
Category
Documents
-
view
224 -
download
0
Transcript of Interface WF
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 1/225
Export a CSV File Function Common Key
Create Temp Table
Edit Temp Table
Update Transfer Status
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 2/225
Export CSV Data
Import a CSV file Create Temp Table
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 3/225
Edit Temp Table
Import Process
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 4/225
Oerie! " #enerate a Common Key $Uni%ue Key&
Oerie! " #et t'e data from t'e 'istory table( insert into Temp Table)
*) End Process
Oerie! " Temp Table can be edited by t'e IT department
Oerie! " #et t'e data from t'e Import +o,( to update t'e Temp Table)
Format " mm-dd-yyyy ''"mi"ss$./0& 1 Serial number $ 23 4 55 & Example " 63.-.7-.237 37"37"/2 236
4 If you !ant to update t'e 8OSS or 9SI 0istory Table of +ocal S:STE;44< #et a uni%ue Common Key from t'is function
44< Set to t'e 8OSS or 9SI 0istory Table of +ocal S:STE;
4 If you !ant to update t'e => Temp Table 44< #et a uni%ue Common Key from t'is function 44< Set to t'e => Temp Table
3) Initial Process 4 Set t'e ;aximum alue of Temp Table)Common Key to Sae Common Key 4 Set t'e processin, timestamp to Sae processin, timestamp
.) ;ain Process 4 It runs t'e Temp Table creation process of eac' feature in t'e order 4 Example 4444444444444444444444444444444444444444444444444444444444444 4 Sub Process 3) Create Temp Table $ =P & until error or end of data 4 Select from =P 0istory Table ?'ere $ =P 0istory Table)Common Key < Sae Common Key
and =P 0istory Table)Common Key @ Sae processin, timestamp & 44< Edit =P 0istory Table to CSV Data 44< Temp Table)Transfer status A 2 44< Insert into Temp Table
4 In t'e case of error 44< ?rite to Error lo, 44< Processin, Exit 4444444444444444444444444444444444444444444444444444444444444 4 Sub Process .) Create Temp Table $ =B & until error or end of data 4 Select from =B 0istory Table ?'ere $ =B 0istory Table)Common Key < Sae Common Key
and =B 0istory Table)Common Key @ Sae processin, timestamp & 44< Edit =B 0istory Table to CSV Data 44< Temp Table)Transfer status A 2 44< Insert into Temp Table
4 In t'e case of error 44< ?rite to Error lo, 44< Processin, Exit 4444444444444444444444444444444444444444444444444444444444444 4 Sub Process *) etc))) 4444444444444444444444444444444444444444444444444444444444444
4 Content confirmation 4 C'an,e master name 4 T'e replacement of t'e processin, order
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 5/225
Oerie! " Create a CSV File from Temp Table
Oerie! " Create a Temp Table from CSV File
4 UpdateSet Temp Table)Transfer Status A Import +o,)Transfer Status
( Temp Table)Error ;essa,e A Import +o,)Error ;essa,e From Temp Table ?'ere Temp Table)Common Key A Import +o,)Common Key
Creatin, timin, of CSV File 4 It !ill monitor a specific folder $ T'e loop in a fe! minutes units &
4 If t'e CSV Common Key exists 44< Bun t'e Export CSV Data 4 If t'e CSV Common Key does not exist 44< It is not not'in,
CSV Common Key Format 4 Common Key 44< mm-dd-yyyy ''"mi"ss$./0& 1 Serial number $ 23 4 55 &
44< Example 63.-.7-.237 37"37"/2 236
3) Initial Processx222D 4 Set t'e processin, timestamp to Sae processin, timestamp
.) ;ain Processx222D $ until end of data or Error& 4 Select from Temp Table ?'ere $ Temp Table)Common Key < CSV Common Key x222D
and Temp Table)Common Key @ Sae processin, timestamp &x222D 44< ?rite to CSV File 44< Update
Set Temp Table)Transfer Status A CSV OK From Temp Table ?'ere Temp Table)Common Key A tar,et data 4 In t'e case of error 44< Update
Set Temp Table)Transfer Status A CSV Error ( Temp Table)Error ;essa,e A Error ;essa,e From Temp Table ?'ere Temp Table)Common Key A tar,et data
*) End Processx222D 4 If t'ere is no tar,et data 44< Content to create an empty CSV File
3) Initial Processx222D 4 In t'e case of empty CSV File 44< Processin, Exit 4 Bead CSV File
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 6/225
Oerie! " Temp Table can be edited by t'e IT department
Oerie! " Temp Table can be edited by t'e IT department
.) ;ain Process $ until end of file or error & 4 Select from Temp Table ?'ere Temporaryly Table)Common Key A CSV File)Common Key 4 9ot found 44< Insert to Temp Table 4 Found 44< Update to Temp Table 4 ?rite to Import +o, 4 Bead CSV File
*) End Process 4 Set t'e ;aximum alue of Temp Table)Common Key to CSV Common Key 4 In t'e case of normal processin, 44< Processin, Exit 4 In t'e case of error 44< ?rite t'e Error ;essa,e to Import +o,
4 Content confirmation 4 C'an,e master name 4 T'e replacement of t'e processin, order
4 Select from Temp Table?'ere Temp Table)Transfer Status A 3
4 9ot found 44< Processin, Exit 4 Found 44< Insert t'e data by callin, t'e Function of eac' function 44< ?rite to Import +o,
4 Set t'e ;aximum alue of Temp Table)Common Key to CSV Common Key4 In t'e case of error 44< ?rite t'e Error ;essa,e to Import +o,
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 10/225
note&ヘッダーと明細があるテーブルについて
Common Keyを生成するタイミングは同じで!"#$い 4 Exaple 0eader Common Key" 63.-.7-.237 37"37"/2 236
+ine3 Common Key " 63.-.7-.237 37"37"/2 2.6 +ine. Common Key " 63.-.7-.237 37"37"/2 2*6 +ine* Common Key " 63.-.7-.237 37"37"/2 2/6
note&%&'ータ()*+"を,-./(01
2Sae Common Key(345('ータを%&にする6
27に Temp Tableに%&'ータがあ8.9:は;Updateする6
<=>?@Aに0istory TableをBCDEするとFG
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 11/225
Specify t'e conditions to create a CSV File4 Start Common Key
4 Start Common Key( End Common Key4 Start Common Key( End Common Key( Function4 Start Common Key( End Common Key( Function( Processin, Cate,ory4 Function(Processin, Cate,ory( Ban,e of t'e tar,et data( 0istory Table Key Information $=ll data ,enerated in t'e Process Cate,ory(0eader only( +ine only )))&
CSV Common Key Format 4 Start Common Key 44< mm-dd-yyyy ''"mi"ss$./0& 1 Serial number $ 23 4 55 &
44< Example 63.-.7-.237 37"37"/2 236 4 End Common Key 44< mm-dd-yyyy ''"mi"ss$./0& 1 Serial number $ 23 4 55 &
44< Example 63.-.7-.237 37".7"22 *26 4 Function
44< =P( =B( PO ))) 4 Processin, Cate,ory 44< Cancel ))) 4 Ban,e of t'e tar,et data 44< =++( 0ead( +ine ))) 4 0istory Table Key Information 44< Pipe4delimited 66
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 13/225
98OSS S:STE;
to xport CSV file in +ocal S:ST ; 44< to import
4 Initial Process
44< Set t'e processin, timestamp to Sae processin, timestamp
#et t'e data from t'e 8OSS or 9SI 0istory Table of t'e Temp Table
4 Initial processin, of all t'e functions
44< Set t'e ;aximum alue of Temp Table)Common Key to Sae Common Key
44< Set t'e processin, timestamp to Sae processin, timestamp
4 ;ain Process $ It runs t'e Temp Table creation process of eac' feature in t'e order &
44< $ 8OSS or 9SI 0istory Table)Common Key < Sae Common Key and
8OSS or 9SI 0istory Table)Common Key @ Sae processin, timestamp &
44< Insert into Temp Table
9SI0istory Table
9SI0istory Table
8OSS0istory Table
+ocal S:ST ;
Temp Table Format
4 Common Key " mm-dd-yyyy ''"mi"ss$./0& 1 Serial number
4 Function " =P(=B(PO )))
4 Processin, cate,ory " Cancel )))
4 0istory Table Key Infomation " Pipe4delimited 66
4 CSV Data " C+O8 T:PE
4 Transfer status
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 14/225
FTP Serer
4 ;ain Process $ until end of data &
4 $ Temp Table)Common Key < CSV Common Key and
Temp Table)Common Key @ Sae Processin, timestamp &
44< ?rite to CSV File
4 End Process
4 If t'ere is no tar,et data
44< Content to create an empty CSV File
FTP Serer
=>
3) Initial Process
4 In t'e case of empty CSV File 44< Processin, Exit
4 Bead CSV File
.) ;ain Process $ until end of file &
4 Select from Temp Table
?'ere Temporaryly Table)Common Key A CSV File)Common Key
4 9ot found 44< Insert to Temp Table
4 Found 44< Update to Temp Table 4 ?rite to Import +o,
4 Bead CSV File
*) End Process
4 Set t'e ;aximum alue of Temp Table)Common Key to CSV Common Key
4 In t'e case of normal processin, 44< Processin, Exit
4 In t'e case of error 44< ?rite t'e Error ;essa,e to Import +o,
Temp Table Format
4 Common Key " mm-dd-yyyy ''"mi"ss$./0& 1 Serial number
4 Function " =P(=B(PO )))
4 Processin, cate,ory " Cancel )))
0istor Table Ke Infomation Pi e delimited 6 6
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 15/225
4 Select from Temp Table
?'ere Temp Table)Transfer Status A 3
4 9ot found
44< Processin, Exit 4 Found
44< Insert t'e data by callin, t'e Function of eac' function
44< ?rite to Import +o,
4 In t'e case of error
44< ?rite t'e Error ;essa,e to Import +o,
4 Set t'e ;aximum alue of Temp Table)Common Key to CSV Common Key
4 CSV Data " C+O8 T:PE
4 Transfer status
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 16/225
I S:STE;
ExportCSV Data
Create8OSS 1 9SI
0istory Table
Create8OSS 1 9SI
0istory Table
Create Temp Table
Im
Update Transfer Status
Temp Table
Edit Temp Table
4 Transfer Status
2 " 9ot yet transaction
3 " ?rite to CSV
. " =lready transaction
* " Beected by => import process / " Beected by => postin, processHIー
FunctionCommon Key
9SI0istory Table
9SI0istory Table
9SI0istory Table
If you !ant to update t'e 8OSS or 9SI 0istory Table of +ocal S:STE;44< #et a uni%ue Common Key from t'is function
44< Set to t'e 8OSS or 9SI 0istory Table of +ocal S:STE;
CSV Common Key
Common Key
Table
Format " mm-dd-yyyy ''"mi"ss$./0& 1 SeExample " 63.-.7-.237 37"37"/2 236
4 Content confirmation
4 C'an,e master name
4 T'e replacement of t'e processin, order
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 17/225
CSV File
Send Folder
Send Folder
FTPJ ,et
CSV File
Create Temp Table
Beceie Folder
FTP "put
T T bl
Edit TempTable
4 Content confirmation4 C'an,e master name4 T'e replacement of t'e processin, order
Beceie Folder
Import +o,
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 18/225
Table Table
=> 0istory Table
Import Process
CSV Common Key
Import +o,
CSV Common Key
Import lo, Format
4 Common Key " mm-dd-yyyy ''"mi"ss$./0& 1 Serial number
4 Function " =P(=B(PO )))
4 Processin, cate,ory " Cancel )))
4 0istory Table Key Infomation " Pipe4delimited 66
4 Transfer status 4 Error ;essa,e
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 20/225
44< Set t'e processin, timestamp t
4 ;ain Process $ until end of data &
4 $ Temp Table)Common Key < Par
Temp Table)Common Key @ Sae
44< Beturn +ist - =rray of Becord
4 End Process
4 If t'ere is no tar,et data
44< return 9U++ or empty +ist
4 #et +ist -=rray of Becord From ?CF
4 9ot found
44< Processin, Exit
4 Found
44< Insert t'e data by callin, t'e Function of eac' function
44< Update Status of Becord Usin, ?CF
4 In t'e case of error
44< ?rite t'e Error ;essa,e to Import +o, Usin, ?CF
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 22/225
9SI S:STE;8OSS S:STE;
to xport CSV file in +ocal S:ST ; 44< to import CSV file in => Usin, ?CF
Export
Create8OSS 1 9SI
0istory Table
Create8OSS 1 9SI
0istory Table
Create Temp Table
istory Table of t'e Temp Table
s
Table)Common Key to Sae Common Key
Sae processin, timestamp
le creation process of eac' feature in t'e order &
mon Key < Sae Common Key and
mon Key @ Sae processin, timestamp &
Temp Table
E T T
FunctionCommon Key
9SI0istory Table
9SI0istory Table
9SI0istory Table9SI
0istory Table
9SI0istory Table
8OSS0istory Table
If you44<44<
+ocal S:ST ;
i"ss$./0& 1 Serial number
e4delimited 66
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 23/225
?CF Client
CSV Data Sae processin, timestamp
meter Common Key and
Processin, timestamp &
?CF Serice
Function - ;et'ode "#et+istOfTempTable $ optional param as common ey& as +ist of Becord
Table Table => Table
=>
Import Process
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 25/225
Updateransfer Status
ditmpble
4 Transfer Status
2 " 9ot yet transaction
3 " ?rite to CSV
. " =lready transaction
* " Beected by => import process / " Beected by => postin, processHIー
!ant to update t'e 8OSS or 9SI 0istory Table of +ocal S:STE;et a uni%ue Common Key from t'is function
et to t'e 8OSS or 9SI 0istory Table of +ocal S:STE;
Common Key Table
Format " mm-dd-yyyy ''"mi"ss$./0& 1 Serial number $ 23 4 55 & Example " 63.-.7-.237 37"37"/2 236
4 Content confirmation
4 C'an,e master name
4 T'e replacement of t'e processin, order
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 26/225
Function - ;et'ode "SetTime+astTimeStampStatus$param as common ey( status as status( +o, as strin,&
For Eac' +ist of Becord
?'ile $Found&
Update Status of Becord based on common ey
if Error update status !it' error lo,
End
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 46/225
=>
Table Table
=> 0istory Table
#et t'e data from t'e => 0istory Table of t'e Temp Table
4 Initial processin, of all t'e functions
44< Set t'e ;aximum alue of Temp Table)Common Key to Sae Common Key
44< Set t'e processin, timestamp to Sae processin, timestamp
4 ;ain Process $ It runs t'e Temp Table creation process of eac' feature in t'e order &
44< $ => 0istory Table)Common Key < Sae Common Key and
=> 0istory Table)Common Key @ Sae processin, timestamp &
4 #et a uni%ue Common Key from Common ey Function
44< Insert into Temp Table
Temp Table Format
4 Common Key " mm-dd-yyyy ''"mi"ss$./0& 1 Serial number
4 Function " =P(=B(PO )))
4 Processin, cate,ory " Cancel )))
4 0istory Table Key Infomation " Pipe4delimited 66
4 CSV Data " C+O8 T:PE
4 Transfer status
to xport CSV file in => 44< to imp
4 Initial Process
44< Set t'e processin, timestamp to Sae processin, timestamp
4 ;ain Process $ until end of data &
4 $ Temp Table)Common Key < CSV Common Key and Temp Table)Common Key @ Sae Processin, timestamp &
44< ?rite to CSV File
4 End Process
4 If t'ere is no tar,et data
44< Content to create an empty CSV File
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 47/225
FTP Serer
FTP Serer
4 Select from Temp Table
?'ere Temp Table)Transfer Status A 3
4 9ot found
+ocal S:ST ;
Temp Table Format
4 Common Key " mm-dd-yyyy ''"mi"ss$./0& 1 Serial number
4 Function " =P(=B(PO )))
4 Processin, cate,ory " Cancel ))) 4 0istory Table Key Infomation " Pipe4delimited 66
4 CSV Data " C+O8 T:PE
4 Transfer status
3) Initial Process
4 In t'e case of empty CSV File 44< Processin, Exit
4 Bead CSV File
.) ;ain Process $ until end of file &
4 Select from Temp Table
?'ere Temp Table)Common Key A CSV File)Common Key
4 9ot found 44< Insert to Temp Table
4 Found 44< Update to Temp Table 4 ?rite to Import +o,
4 Bead CSV File*) End Process
4 Set t'e ;aximum alue of Temp Table)Common Key to CSV Common Key
4 In t'e case of normal processin, 44< Processin, Exit
4 In t'e case of error 44< ?rite t'e Error ;essa,e to Import +o,
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 48/225
8OSS0istory Table
8OSS0istory Table
8OSS0istory Table
8OSS S:STE;
44< Processin, Exit
4 Found
44< Insert t'e data by callin, t'e Function of eac' function( 44< ?rite to Import +o,
4 In t'e case of error
44< ?rite t'e Error ;essa,e to Import +o,
4 Set t'e ;aximum alue of Temp Table)Common Key to CSV Common Key
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 49/225
FunctionCommon Key
ExportCSV Data
Create Temp Table
CSV File
Temp TableCSV Common Key
44< to import CSV file in +ocal S:ST ;
If you !ant to update t'e Temp Table
44< #et a uni%ue Common Key from t'is function
44< Set to t'e Temp Table
Common Key Table
Edit Temp Table
4 Content confirmation
4 C'an,e master name
4 T'e replacement of t'e processin, order
Format " mm-dd-yyyy ''"mi"ssExample " 63.-.7-.237 37"37
I
Update Transfer Status
4 Transfer Status
2 " 9ot yet transaction
3 " ?rite to CSV
. " =lready transaction
* " Beected by => import pro / " Beected by => postin, pr
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 50/225
Beceie Folder
Temp Table
Send Folder Beceie Folder
FTP ",et
Send Folder
FTPJ put
Edit Temp Table
CSV File
Create Temp Table
4 Content confirmation
4 C'an,e master name
4 T'e replacement of t'e processin, order
Import +o,
CSV Common Key
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 51/225
Import +o,
Import ProcessImport Process
Import Process
9SI0istory Table
9SI0istory Table
9SI0istory Table
CSV Common Key
Import lo, Format
4 Common Key " mm-dd-yyyy ''"mi"ss$./0& 1 Serial n
4 Function " =P(=B(PO )))
4 Processin, cate,ory " Cancel )))
4 0istory Table Key Infomation " Pipe4delimited 66
4 Transfer status
4 Error ;essa,e
7/24/2019 Interface WF
http://slidepdf.com/reader/full/interface-wf 52/225
$./0& 1 Serial number $ 23 4 55 & "/2 236
port +o,
esscessHIー