Beruflich Dokumente
Kultur Dokumente
3.
Conlgur the endpont bindings for this scr\,ice rnd savc the concreteWSDL llc-
C,,ts,,z]ir
. a
trPr)(r,rrordeAenl.? rtsouroe; Selecl lhe fnrlp,i"r Btnlrgr uh Seect thc Errlp{)l,rr Nd/r? ()w whcre the intfssProcessordcrEndpoin) cnlf), is, rcli!rtirg rhc ?)rrryolr and .'OAP ,rtdlk ldN tlor rppea. below In rhe 7ialrs/,,7rab. seecr thc qcuc and lerify olhcr endpoinL birdins sctrinss: . JMS l)c\tinarion: USERXX. Procesotalr, Serwice (wilh your E\,IS Scrlcr.unnng. browsr to and sclecl rhis qucuc c.crtcd ir Excrcise 1)
l.rb of rhc
. . .
JMS DestinaLion Typc: Queue (detilur) JMS Messale Typc: Bytes Nlessge (delault)
4!91!
jltFc rdr<r&' s{
,.1tr'.g,q|G uws@|fu
l;---l
|fu l! -
tl
:,
if Trgct a a
Nxrrcspace:
Proc66aordfcoEcr!e
\rngs and Savc prcjcct
^pplJ concrcLr WSDL iilc tbr clienr u\e: Sve thc Cick Sov WSDL lrowsc to fbldef ondiskClhwpXX\BWP.Corc\Scr!i.cs\OrdefPrccess\Contrrt Filc Nanrc: Poces6OrdrSenice ConcreewsDL Selcct lhr /OrdcrProccsvconaract foldcr and press thc ky FS to Relresh Resourccs nnd veril] thar rhc concrcle WSDL itppcars
1I
lr / //ACr)nrv,L\.W,,(r rr iJl,r",!rirr
'1.
Prute\\lrtt(h0et.
4rrl0!j \r{ r'3}uuhJ\<,1.\.1 ncd rhc P,D.rrcOr.,J tt?-\rr'nI'! Ptn. c$Ba!.hO-1. t ,a no.crL i.. JUnfi!urdliul \u tra. i, Inroke. Ini. ,<r \:'<.
r Seect /ProccssDet-Ln il ion !/OrdcrPfoccss/ProccsslarchO rder c. .l\ ) r DJ.rr( ,(r\ J n f, ,r.,n/r'."llt. r ln ir! plact add and transirion a SOAP Rcqcst leply aoti!iL). configufed a \Jrn.: .Lnvoke P.oces6or<ler Servic a :ier\ icc: /B\\P.c|)rclscrriccs/OdefPfoce!s/Contract/
ProccssorderServicc ConcretewSDL
as li)llows
a r //, a
musL bc
nrnnuS)
.-rlo,(1 \ll I
selcct lhc Ntakc
L P -."o,.1/\'!'i
C
.tr11J
in!LMcssage/Purchalcordcr:
$Parse FO-xMt/PurchaseOrder
5.
l.-t-i=.t Ll,o
1/
Overview
ln rhis cxcrcise you test the P/rce.rro/dr Service implemcntadon using Pro.s$ Batcho submit ordcrs nd vcrify successful processing.
der to
Steps
l.
Validate your prujec and debug any ermrs associarcd wirh your proiecr. Note: Ignore the "talerord e tsrrbscti.ptian XX 'n les iDk' warning and all unassociated errors
2.
. r r
Ar./r?rdl" Teste
ltilily
1.
esr
Pf ocess/ImplemeLaLion/ProcessOrder/
.l\tg!activity/PrccessDelintions/OrderProccss,?rocessBatchorde/ReceiveDatch
Order
Ter, (ebllll
a a
Verify tesdng:
a a I it
't
ttsCO E.lucdrion
PrcgrMs
t5.
lbr each proccsscd ordtr. a uniq(cly nnmed reruf file (O.dcrfD +dmc- lrcslnnp) vltiltc r() rhc 9i%onle rOutpu Diredor\Acq,, tnr cxat]nplc:
id-r),1
cig."
is
*dd, htr
i- @,
e,
x9
:-
pcn this filc: irs contnts should conrrin Lhe fornrdrrd orclcfdclails, fbrcxample
t.dlfeG6',rfu*
r I
tlc Adapter Tcsicr Crrrrl? t.rb. vcrily thar dre adaplef servioc fcccivcd lhc pfocessed sole$ ordcr and nscrred the data in lhe drraf,nsr.
s
-cceeoed
V B\vl:
TIR( O
lt^int\!\rrrlJ)\1 i I ItneCrdtir
r Verifl thc adaptef service by clrccking c databsc tables fir sales ordcr dalii . Log nto SQL:Plus using a colllnland pfompl:
C:
\>sq1plu6 uerxx/userxx@edusvr
lcrily an cntr] lrr ch ofdcr fron sl,Es oRDER where oRDER lD = from ORDER DETAIL where ORDER ID
SQL>
SQL> sIct *
s]ec *
Tl BCO
Tesr
Or,l., P/n.r\{irj u
Ur
c ,ndit onq.
. . r
Eclil CIIIWEDU\Batch0{ems l rigger.b{t 1o sub ilorhcr ordcrs that contain life ilems (e.g.. BatchOrder02.xml. BatclOrder(l3.xn1, RatchOrdcr04.\ml)
dfLnnr
) a
You should feceve a Lrniquel) nrrcd Order Resull fie for each pfoccssed ordcr
'Brtchordcr05.\'l
C
P, dc?r rar /. r should t.kc Lhc 'RclccLcd" paLh lt\ll lrrokc Ordcf Result filc should rcxd CrcdiL Chcck Rjectod'
rctlttc lt.t
kS
rrn?
and de
fo. r.ansitor b) srcfping re uscrxx Crcditchcckscrvicc engine tion TIBCO AdminisraLof and sul'rnuin: rn odef: a Ord./P/a.?rr lhould lake thc Failcd pr|1l:tt\ Itbk. Ctcdi Cllct 5r./!'1.. and the {)der Resulr llle should fc.d Failcd Lo do CrediL Check Please t|! a!,rin lateC
Tcsl thc Crcdit Check Failed
" t.!0
,t
*g-u
{,&
a I
SLq) Dcsigncr
tcr
Opcn the C:\BWEDLI\Ba1Chordcr\imsTrisser.bat scrifr lilc xnd revort back to the Batchorder0l.rn fllc ($ rhar subscqucnt ordcn arc 'Acccprccl')
egmtioa
Troubleshooting
If you
have
a a o r . r
To test aclivity-by-adivly, in the Z?rter tab use the "Stcp lo next activty" oplion
From lhe Dcsigner met, sele{l Wittdew > Shore ConJor, !o view crrors comprehensively (use thc - al option for morc detailcd enor mcssages) Examinc\Documcnts a||dSettings\Mministrator\.TlBco\ogs\dsigner.tog
Verify that your JMS Queue shows the nessage as "pending" after e producer h!9 scnt [f an lctivity fsils, kcep the proccss ir debug m(de and exahine the error dialog
il
If processing continues to fail at a cenain activity, place a brekpoi[t bcfore (and pcrhaps aftr) at activity, rc-submit an order aod examine the data in thc activity's Inpt and Output labs to verily that the corecl dala is being passed
I'.qe 222
Notes
i 1 htesnlil
Notes
Unit 7
trxIenqtnq vv rrocesses
Thjs unit pfo!ides techniques fof extending BW proccss dcfntions using Java palette aotivites and olher Bw activities. ln the lab at 1)llow\ you dclclop lhc Procest Web O lcr ptoccss dcfnition thar will en,rble BwP operators t{r input turchasc ordcrs via ihc Wcb.
Topics
. Ohjectiws, pr.!.226 . Erte ing Bu'i e"Walkr pagc 227 . Jard C.de Actir ir. IJrge 228 . Jard Evnt So|rce, page22t) . Jdra Metho.lActiritr, pgc 230 . Ja to XML 10 J.tra, pale 231 . Cutton RW Pal.res, pa!.232 . Ct lttti4iS EEine Bea!r, page 233 . Exrotlng Eot Handlir.q, pagc l3,l . E\tendinC a BIY Ptoject, paee 235 . B\vP ltnplenentaion: Procett Web Onlc\ page 236 . Ptotz's Weh Orrler Inplententatun, pagc 23'7 . Procets wet:) Oftlet DeJinitior, ptle 238 . Quer)'Or.1ers Deflnition lnpo fted), paee 239 . Proccss \leb Otuler Seqence Diagran, pqe 21O . Qrery Oftlt^ Se.tuent'e Diaqrun, paee 241 . Iab lnpLenentdtion, p,lge 242 r Lb I lmplcmcnt Proccss Wcb Ordcr, page 2,15
(
Pge 225
lnt!*ti.t
Knowledge
. . . .
Explain how lo extend BW procss definitons using Java activitis ldentify the types of Java methods thal are supported by
BW Java activilies
Skills
fmplment We Order Processing
Obiectives
The gool ol Lhis nt is to prepare you lbr rhe tinaphasc ofthc BwP intcgration implemenhtio, Pncess Wel, Or.kt.'o lha( cnd aficr compleling this unit you willbe ablc to:
. r r
Orz./er Froccss
dcfinition
Page 220
1-t
BCO E.lrcaion
Pnsnurl
lrtn
7:
l:.ttr.lit8
BW Ptu.es!es
. . , . .
f rror handling
Plugins and add-ons
Extending Businessworks
uw prccellcs can bc cxtcndcd vafious ways. The most comnnm oplon is Lo usc thc acri!ties and resources prcvided by Lhc J.!a has cri!irics ard resoufces lof execuling .lavr flerre This code s well xs convcftng bctween Java objecls rnd XMI'rlcllc
Othef
rdi!iie! aLcrn rlso bc uscd ro cxtcnd BW processes incude thc lnspccrff activity. the Generare Ilrror nd thc Exccrtc Command dcLiviLies You crn l$ crcatc your own custom palcltes and lop|rLc Lhcsc paeLLcs \vith prc built processes rnd rcsorce! lo| feusc.
h .rniotl
BW generates Java class and skeleton code . Developer mplements irvo,ke /) method Supports simpie and complex objects
rab,
orlou
cn
*ilh
Jav. Codc
in tho
e,j\tidc.
^ctvties
'l
l BCo
Ett.aio
Pttlui\
tin
7:
. .
t..t h,t.!tuit
. .
. .
@m
1:_t:
:.:Jlti,;
It-l
,:;
i:::a-,,,* -
The J.r!d Metlod activity .lllows you to in!okc a nerhod conlaincd in Java cl.$s. You can construcL ar instancc ofc spcified Java class. iI you choosc to inlokc rhc coltsrructor lbr rhe c,rss.
The Jovll class lb nust be locaLcd in rhe cllrlspath lor TIBCO Dcsgner and lhc TIBCO Bulincssworks prcccss cngine. LldaLc Lhc dcsigner.Lft and blvcrgine.tra filc to conlAn thc direcrcry whcrc youf Java chss llcs ar lo(alcd. Thc Choose a Class orChoose a Class and llhod dilog rppcaa when you click thc Show Cl{ss Browscr buLlon. This dialog !11!s you to pick aJa!a class (and cthod ofthat class for he Jalr Nlclhod acLivir)) fiom a lst of archivcs availahlc in rhc TIBCI) BusioessWorks CLASSPATH-
PdSe
).0
, .
Schema
. .
Xl\,41
schema
Activities
Java to X[,4L
l1l -,"-!
l'::. l *;l
XML to Java
Thc Ja!.l Schra rcsourcc alloss )ou ro specity . Ja!a class thllr can b uscd Lo conligurc rJrva To XNIL or XML To Ja\a acti!t]. Thc Ja\a To XML:cririry allows you to conlert inlo xn XML clocu cnr.
a
Javr oblecl
drla
The XVIL to J:r: activty allows you to cfe,rte an instanoe ol a Java objcct bascd on dara liorn .n XML docuncnr. Thc XML schema tol p(Nding input to lhe Java obje.l i! crerled lrom lhe Java objccl of Java Schema speciled on the Coflguration lab of thi! rcLivily.
.i J
/rr.S"rr,
"
*-
'l aU
r.
i
::r.-'
l:::.-1Al
Custom BW Palettes
Custori lalctL.s rllow y(ru to sa\c. collecrion ofrcsources 10.r prcdctincd kraLion and eirler \hrc ir wirh rnhcr uscrs o. use rt yoursclfar a tire. To crcfltc a custorr (uscr dctined) palctrcl
'atcr
. r .
Choosc Paletres > My Palettes > Ncw Palette arrl cncr a nonle On trojccr s!. rbe ne\\' plctte is savcd lo thc localior spccilcd by rhe User Palcuc DB*tor! prctrence (r.mlpalctte tlc tyF)
No$. you can add (by drasging d dropping) .esourccs and proceises thc projecL Lrcc to the cusLor palcfte
r(n
Ih htld a lto|t tllctte: Place he palcrtc in the Uscr Palctrc Dircctory ard choose P.lcttes > My Prlrttcs > llelord Palctres
Pagt 2-t2
't
I BCO
E.lu.dtio I \v Uru
ht s
. .
. '
SLrspend/shudownengine
Thc Enginc
Con and activity allows you ro fetdeve statistcs and infonation abour proccss dcfnitions. prcccss nsrances, and acti!iti$ in thc currcntly running pfocess engne. This activilt aso lers you pcrli,rm engine nnirltenancc, such as suspending rd
rcsuning process irstances and shutting down the enginc
J.,r
r' lraln
. I .
Cateh
. .
I'xi
I Genrdre I Error --r
-=-----t
I I
l4#l I
e"tt,ro*
-l
Ccncfate Enofl Ccnerres cror lnd c0uses an imnredirrd rrnsition to any c of 1r0n$tions. Il thcrc afc no e||or lfansi!ion$i lhe pfocess lnrance h lts cxccuion
ReThro\,: Thfows c ciccption caught by thc c:ch c{i$iLy again. Use this aclivily whcn rou wish lo Fopaga{c c cxc'rption
Page 2.14
l'n..$.s
.
.
TIBCO Smafi[,4apper
flanage cross-r.ienced daia
. ' .
TiBCO BusinessConnect
B2B integralion
[4a nirame plug n for TLBCO N4ainf.ame Server Srte
Seres
Exlending a BW Project
Btr\incs\Works leililrles workllow, B2B. fo rand mainlame intcgration hy ersily interfacing with othef TIBCO fr(flLrcts
slrpporting thcsc sc^,iccs.
itl B\\ t :
t ! B CO E
u s
it
\:Vb rk )t 5.1
I nr e exi
(,t
DTIBCO
BWP lmplementation: Process Web
Order
Pnn?\yt
Y.llrrl
. .
Notc the use ol the.fR!a Code acljvity in this process [o paNc thc incoming HTTI'Nsr contnDing ordr ilcms.
. .
, .
*::
&
Presented back lo browser Contims thal your adapler seruice is propeny vring I r-r.lorl-D io il-, d o
Query Orders
Def
inition (lmported)
0rcryi)/dcru is aprr defincd ptuccss aL tou impor into your projecl. lr queries all orders rccordcd in rhc salcs rlatlhase and pfesenrs this infomririon on rcqucr ro thc Wcb. It is callcd by
Il
O et Scarence l)irgranr sbowr abole ls the same rs shown prcviouslr_ cxcept thrr whrL lou will lou nrpenrenL is highlighted. In lhe nexL lab ]ou build thc web Orde. I)rocessing componerr of the Bwl' PrcJocL.
Prc.ess lveb
't
tB( O E.!u.ntan
Pit
"ns
I',, -
,ft,,hrq
tslY
/ , .'\f\
4 htts3mtion
.
.
Lab lmplementation
Coorplele lhe lab crcises lhd iollow to inplemcnt W?/, Or./et
PaBa
2.t)
TI BCo
Notes
M -B\r t: I |BCO
usinaswo.b'V
5..1
l4te8r4r,on
Notes
T I BC O
Elu.uti.n
P ro 3nn6
lab
f:
ltlglenent Pro.ess
Web
Order
Lab F
Overyiew
ln this last pieoe of e ,npxx projcc! you implcmcnt web order Processing. This inoludes impo(ng ihe prcdefned OaeryOnde6 process deFrnition and calling it from Ptocesswebodar which you will huild. To conclude you wlldeploy yoursolution usinS TIBCO Adminstralor
Obiectives
. .
U6
Onlet,
page 257
Prerequisites
. r
EDUSVR inslrcror scrvcr and ucrxx studcnt clicnl platform TTBCO Software installed and configurcd on youl userxx machine:
a a a a . a a
ADB 5.2.2
BWP Home Pa-.e
t
btp
r .
Directions
Complet the exercises that
lbllow
II
B\\'l: 1lBCO
lhttit(*\lot(t \tJ I
ltltelrun
overview
Prrc(rrlt?b0l.fuf willrcccive etheran ordcr or qucry vi a \!eb pgc. (dcN have (heir linc itcns panied using Jtlr codc and lhen invokc Pm.".$Oders?rri.?. Weh qucrics will lhc cll lhe O{c^Ozlc,r pfocess (irporrcd). !\hich wil relfevo ordcrs iionr rhe databa\e and prcscnr rhcn
back t{r lhe hrowscr.
i-mnli]MJ
Steps
l.
. . t . . r r
\et*r
Pnje
tzip) then browse ind sclccr C:\B\\:EDU\Impof\Querlo.ders.zip ^rchivc Chcck thc box "lidir Advanccd Srlinls and click OK In thc lrtp1 - Opions rab, select l)orol includc qlobrl lariablts \viLh inpo!t Ctjck Apply
Srlcct tbrmar
In thc ProJscl lree sclcct the pfocess icon Queryorders and
\eril)
ts inr)rtl
'..+
tt
\+t b
OrL
2.
l lP
r r
Name:
webotderH'r1P
In your projcct. cfcilc a ncw cmpl) proccss dcfnition for ffocessng Wcb orders.
/I1)ccssDclnilions/OrdcrProccss/ProcessWebOrd
l. l,i..r.c
r,.,.ll. / 0, 1,,Ih
r, . ..d(
f l'P
J.d.r (ri(.
. r r r
Sylc: String
a 6hiplocaion
5.
I .
Name:
log oder
tng Ordr Purcba6
a a a r
Label:
XPalh:
SReceiws-lteb-Oder/groc.u6SartelouFr/RequcEURI
a
'/purchaE'
For thc fnput, build
naag6
6.
Confgurc { Writ ao
lrg
r .
Nams
log
Qury
a a a
XlarJl lboolean):
SB.c.iv.-web-Ordsr/Eroc.EsgtaralctuDu/Rque6tuaI
'/qu.ryorders'
coEct ( "Rclval Web
For thc Input, build ansrage that logs the receipt ofaquery:
Page 248
Ldh
7.
Conlgure
pLrrchase
odcr.
Jara Codc aclivit,r to do thc prJsnrg. When yo conlgorc this acrivity, the rcquircd 8els"t and n?rrte nelhods are genefaed fol you by BW. Youf code is exccuLcd n n?f,lef), whcrc il is callod L ruDrimc hy thc ngine.
c- tl-cn:r . ^rJr-,.$.u..
C onl! rat
a a it . a
nn tab: Namc:Parse POST Palaneter6 Inpt Parimolcr: postData whjch is a reqilr-ed slrrg
Outpul Prtunelef:
ilens
Copy rhe codc tioor C:\BWEDLNala\P:rsePOSTDatjavi i4woke ( ) ncthod (bcncarl "DO NOT NTODIFY r/')
Sclccr rle opton Shorv: fll Class Lo iuro-genef ared getset mcrhods
pasrc to thc
r C o.c rhc, n.r onl^g JrJ. lr.l Ldil Cl\\ r Ch.,rg.rhci1\rlrd...r\, JrF?a/,\',r^rh.,., :dseEpoEEDala() r Add the code @suppf,esswarnings ( nunchecktlI') i
suF!reslt:!ningi ( rn.he.ked
)
l,a/rr;si \.inc IDK lRl .1!'.Ji. 1n^ - .,.r,tiRJ illRl l5 irc1 'u\.1 by TIBCO Busincssworks. You nrsL add rhc sraicmcnt @suppresswarnirg6 ( "unchecked" ) to spprcss thc wuning gcncralcd by thc compler.
lr^mrhe ncnu,el<t Ld;!' Ph L h Orsr and bro$,sc to i! (c.9., C:\P.ogranr Filcs\TcxtPad 4\TextPad.exel.
r.,\
iI
h1k
!.1rr1
r .
rs,
mtp:
LlInpr t/postDala:
I.l r
ht'|,, t P,, .
8.
Now Lhat l_ou have parsed thc ofter compulc lhc lne items using
llapper acli!ity.
/,rp!7
tl,.
ll
. Ien (fequfed stdrg) . Ouantily (fequircd iteger of |ii/e inl) . uri!Price (fcquircd dccimal of size double)
Transirion rctvitics: Parsc POST Parameters
1o
Gronp
]1e
C,rt)uc
t.i,. /rcd
l} a a a a a a a a r a a
currntRecord
(oannol have spacet
()ttL Namer
LinrtehData
i$il.fbfrhclnpurroContute
Icrn:
j avacodeciwityoulput/ itms
Quantty:
!ib:okeEiz-allo{-enpy($ParsePosTPardetrs/ .' , I$i L ") I4l a UnitPrce: lib: okenize-aIIow-eRpty ($ParsePosTPardeEerE/ j avacodec! iv youpu/ i ens t$il , ", ") t2l
j avacodec iviyouEpuE/ i Eem6
e:,$r'stx
51httPsttti"n
9.
Now that c rcb ordcr has been parscd and ils line ilcms compuled, Pncess)tler Scrrice a,rl submil the order lbr prccessing.
inlokt
lhe
Add
a a it r .
Nanrci
Transition acli!itics: Crcate l-ine Items 8r!uP fbr the l,V)rt ro the S()AP invoca(n)n activit).
a a a
CurtomcrlD: SReceiwe
neb-Orde!/PiocEESattroutPut/
'l:r0:
Paiameers/accout
()|dcrDrle:
pardeters/sbiPLocatior
a I . r
Lincltemi
SLineIlenData/Accuuladourput/root
/-it(?nr
using lhe Mapping Wizard:
ln lhe 'AteMap' dialog, a*ept lhe dclult Set for each elemenl Click Finish to conp'ete rhc napping
1 l
CO Ed u.at ion
P n' !!a'n
Web
Oftler
10. Verily your completeL lnvoke Prccessorder Serric? activity input mapping.
Not: The XSL terlplare fof ihis napping can bc found at C:\BWEDL Mappings\ P rccesswebo rder - Inroke P tceslo rd? | Se n i. e.x|.
! 5l Integtlton
ll.
Configure a Read File actiliry Lo.etd the order resull llc so al il can be sent to the Web rcqueslor's browscr as the ordef confirnation reply.
r i r
Namc: Read
Resul FiIe
C!?ry(rdcru
Lor
. r r
Oueryordr6
ito
Prrcerrll'ebolaf
ll.
Coniigrc
A,a/r\ni
eirr(' dr or.lcr rrqu. J ^r:r qu. r) ,.r hllurJ(r\. )ou nc.J ^\'r up3(\l.Feacriv,r)|rarder<mine.uhi \ r)pc uf c:\fd and rctli. , $;rh rhc dtnfcnfiJte rcsr lr. rcqLe\r $ a\
'<.
. . r r
Narre:
Transton acliviles:
a a a
Rcad Reslt
liilc
Lo
Qucryorders
$ReciwwL,ordr/Processsarte.outpu!/RqustuRl "/purchase'
rsciicontent:
concal
(', <IITML><BoDY><PRE>
",
Othcrwsc:
.\ciConrcnr:
concat('<IITML><BoDY fonl face='Aria1, Eetwetica. sans-6erifn>'. "<h1>411 orders</h1>", '<able bordr=n1'I celtspacing=0 cellpaddins=r2r Itordrcolor="*ddddff ' bgcoloi='+a0b8c8'>',
'r )
1t\\'1: TIBCO
Bsin.t\vtk\
rt 5.4
Int.ixit,t
l ltsCO
Edr.ntion l'ngn1s
Steps
VdlldJr(
'
Shn
Lhc
l)llowing
_flBCO
componenLs.
r r r
3.
uscrXX - CrcditCheckService cngire usng TIBCO Admirisr|aro. SalesOrde.SubscriptionXX adaprcr scrvicc using rhc Dcsigncr ,l./dpiel 7.r/./ TIBCO EN{S Server usng TIBCO Adninisrrarof
lilitl
Scr up rhc HTML o(cr pagc 1rr subniuing wcb ordc.s nnd !ucfics to P,tcestwebOtuler.
llrlrucl lhe conLerls ol C:\BwgDu\Wetrofde^Wcbord$Pagcs.zip lo lhe TIBCO Admjnifr.r(r wcb scr er dreclory C:\tibco\admini!trrr(n\5..r\tnc.Ll\wcb.ptdROOT
Access the BW Web Odef page usng Inlerer nxporef at lhe iitkrwing URI-:
hlp
rt 5.1
|ttt.lxnir
:1.
r .
ai.l Ptoccssweborder
ler?/:
a a r r r a .
/Prcce$sDclirtions/OrdcrProccss/ProcessWebOrder
/Pf occssDctnitions/Odef Pf ocess/ProcessBatchOrder
To rcsL a wcb ofdef thar is REDY (allproducl\ ordcrcd arc Atdildrle): In rhe weh order p.g cnLcr
Choose
lL
333 33 33 33333 33 3
I tirc rnd I light and click Plnce Order To tcsr a web o er thal i! NOT READY (.Ln] ordcrcrl pfoduct on Ba.t Oflr/): a In rhe web odef trge enrer a lalid rccount nrch.s 33333 33 33333 33 33 . Choose I tire and,l50lighrs a d click Plrce Order
To test
a
Q!9r!!ll-ol!!e\:
A quefy jfom rhc Wcb pagc nvokcs QacrOl?,it which tlche! all ordcrs in tht SAL-IS,ORDER tablc rnd fofmac r rcsponse back lo the brNvsel Note: Oa.,f nll O/./.fr resrs rhe adnprer service becruse t s puing lhc dala liom lhc SALES,ORIER rable lo whioh the adapter servi.e hrs \vfiLLD conrplctcd ordc.s.
r r .
Bclre p.oceeding wilh deplotrnenL n rhe ncxt cxcrcsc. vcrity that Pfr.ersBatchOrder wofks oonecty using rhc .imsTrisger.bat 1lc Stop test mode for
rll
conponcDrs. inclding Lhc adaprcr (do not iusr close thc sindow)
To updatc the invenlory with new quanlily, login to SQL'PIus and issuc this command:
BCt )
Ld-tn,tt P@gt,In\
Iab
t:
In?letunt Pro.es!
web
Oftl.r
Notes
M I{r, | :
t. I BC O Bus
it
Unit
Deploying BW Engine
Topics
. . . I . . . . . . . .
4ent,
pagc 26'l
Bdla
ittg an.l
R?ri/i!,(..
page 269
M B\\t:TIBCO B\r?$\rorki
5I
tnLellatit
.
.
Knowledge
. .
Skills
Objectives
The goa ofthis unt is to prcparj you for the fnal phase ofrhe BWP inte!rution imflenrenraron. Prcress Web Order.Ta hat end dltcr completing this unil you will bc ablc to:
. r r
Explain how to cxrend Bw prooesses using oLhcr acli!ilcs lmplement the Prd.crr lve, Ord.rproccss definition
l'
"lt
rn
BW 5.4 Engine
The TIBCO anginc (Bw 5.4) is bui11 for high pcrlirrancc xnd cxccurio. capablc ol handling a continuous strcan ofscr|iccs and
pro.( .,.,:.h
w.rl dJ/.n.of
wh finirc cftcal resoufces (i.e.. nemory. CPUS. thfeads, connccrons, ctc.). Kcy lcalurcs ofrhe BW Enginc ncludc:
r ScrlrbiliLy
Tnc
Lhc
I Pc.formancc Conlrothe numbef ofthreads and JVM seltings r lJr.r ful<rJnJe JnJ R( u\crr (hr'kl"intrrg'r. 't . tna
dubase, configure cnginc and domain
lilovcf
\l
lttt
hit'
ltrrrtt
JVN,4
. .
. . .
settings
Heap Size
fhread Count
.
,
BW process tuninq
l\/laxJobs
Aclvation lml
MaxJobs F ow L mit
BW engine properties
. '
.
. .
TIBCO Admnistfatof
.
.
TIBCO Reposilory
Engine Deployment
When you configurc and dcploy conporents, thc pfoject'! conlgufaLon is sent fiom the BW repo,ji(try lo Lhc B cngrnc(s) and/of adaprer(s) insralle(l on Lhe targct machinc(s) in the donain.
M "B\y I :
llJCO
Brtip t \\vo*r
. .
. .
g, Send ema l
'.
Handle inlLnc
ConfS!re srspend/ resune aclivites lo ale.l admin siralor and relry log.
lypicaly on resorce tmouts
Sel
d!i.g
deployment.onJlguralin
for:
ITP
lvo
Openview
r .
Handlc lhc nloniro ng wiLhin rhe prooess itsef Enablc BW's sulFnd / rcsune capabillly lbf setiing up actvity relries (NoLe: Be sure to use the Checkponf acii\'iry p.ior to inplcmcnling suspend/ rcsume to save the state ofthe p.ocest
TIBCO Adminstrato. providcs a wcb bscd ullir) lr nanrgins and moniL(fing dcpoyed domain apllications. Using lhis tool you can
start and slop deployed corponenls (process engnes, rdaptef rervices). You can also monor standafd alers as well as any additional ales you establish drng deployment confguraton.
. .
Required for any machine in the domain TIBCO Hawk Agent (domain_name) Microagents to collect monitoring inlormalion Rulebases to lake aclion Slandard alsits and logs viewed in Adminislralor Ul
Uses:
. .
ln addtion |o scrving as lhc communicalions plafm among Ilusincsrworks conlponcnls. cach Hawk agent also collccts moniroring infonntion lbr irs domain host md forwards lhis intbfnration $ the Admini:itrtor Server.
5-1
t'
egmion
.
I . . .
Web-basod inlerface
Domain users
. . .
Primary/secondary configuration
lII}CO,{d inisation
Using the Admini\tr(or, lou can only nanagc projccts thal are parr of thar :dministratioo domain. The user spcciticd on in5lallofthc Admin Scracr has full aurhori/.tion lo both deiign- and run limc uscr inlcrfaccs. If adding or rcmovirg projccts manually, you nccd lo
rcstart fte admin server.
Pqe
268
T ICO luetion
Pnettt
LBite
Domain
Engine
It B\ll:
TIBCO Busine$\tor].s
\ j.1 httttttion
' . . . .
Common SSL usage for authentication for adapters and processes Can use domain user for authentrcatron
Server can use trusted cerlificate to authenlicale client . frusted cedficates files n PEl,"'l iorrnat stored rn prolect folder . Privale keys stofed separate y for ndependenl safe-keeplng
Security
Donlain use are also gistefed with the TTBCO Adminisl|aror,
l lt)(:O ladr.dinn
Pn|tun:
Approacnes
-On
dma
n..ross lhe nt
;A difrenl
. . .
Scripts for clep oyment conl quration Local reposilory lor applcallon dala Database slorage for domain daia
rt
Lab lmolementation
Complcle rhc lab Lhr follows ro lalidate, deplo)r and lcsl your BWP 0 rde t P rccess ing t\)ltria.
Paee 2'2
Noles
TIBCO Sa\'dre
It
Notes
lab
Lab G
Overview
ln this luslpiccc oi
the rF?tXX pm.icct you deploy your solurio[ usiog TIBCO Administfltror and monilor it using TIBCO Hawk Agcnr.
Objectives
. . .
Prerequisites
EDUSVR nscror scrvcr and userxx s(udenrclicnL plartbrn
IIBCO Sotiware insullcd and conligurcd on your userxx mtchinc: a lluntinc Agcnt (TR^) 5.5.0 t Administraro. 5.4.0 (uscrxx domain creatcd)
a a a . r r a
O
hp:
llb filcs
Directions
Complctc the exercise rhar lblhws.
TIBCO
lh[Mre In..
ill-ll\ll:
lnegdti,t
Solution
Overview
wo.ks.IlIou runinlorroublereicfrothc'Troublcshooring'sccrionsattlccndofpalofthccxcfcise.
Now thrt ]ou hrlc conplcrcd tcsting t s iinrc ro dcploy thc projcct and vcfif,v thllr t
Steps
l.
t r
Validare JoLl| brvpxx pfoject ifdeploynenl and debug any crrors In the pfoject lrce, seecl the /Detloymenrs/brvpxx enLertrisc .rchivc rcsorcc and conligure t as lllowsl
Processorde.serwice
Proccss Dcfioition:
Nrmc:
Receiweordrs
Proccss Dcfinhions:
. a
/ProcessDetnitions/Ordef Pf ocess/ProccssIatchO.der
.,?roccssDclnitors/Of defProcess/l'rocessWebOrdcr
Add rnclconligure an Adaptef Arch\,e: Nanrc:
salsord.subsrwice
AdaPtcri
. r r r
Save you |
,,|?.{X projccl tsuild thc updcd C:\t'pXX.ar tile (rveNfiLe exisrng) Save your rrl,pxx proleol and exil Designer
t-ab C:
Dtrl.!
2.
r . .
l)ttXX
ttl thc Con\ura!on Bril./.r panel click Lhc lrwrXI h],perlnk Click Upload Ncw E-{R File, rrowsc to md sclecr the updlted c:tirpxx.ear,lhen click OK and OK.rsain
4rlrisr | :r.l- tr'.e* JLh:\J JrJ JLLprcr dr.hr\c crr hedepo\edr"5<t,r: n r< | r:rl-i e. i1i .lunrJ n F ! ..ur nL-nc.c' c.,ch . oer e J(plJ)(J lJ.-ll)
. r
irlerl ..
1:e a+.-.
n1-
--- *.---r"-,5
1! nE-rhr6
",
IlJou don
t sce
r sc|\icccontaincf
Click Ncx pplicatidr. md rctLrn to bullet 3 rbolc lo uf'load thc Er\R again A1 uti\ely you can Inanually click exch .par and .aar link lbllorved bl Add lo additionaL M.chincs' and sclccl your userxx nachine as thc cont:incr lbr dePovment
a . a a
Lre
bwpxx pplicaon
5l
ltntCrdian
3.
. r
ln hc Canfigurdtan Brlldar pmcl tor rhc blgxI rpplicalion. click DephJ .nd thcn OK Orrce dcplolcd. vew tle Deploled Conlg.liion dcrals turd verify lh.rl the Deploynrenr
Status ndicarcs 'Syochfonized and Suocess lor alI con poncnts as showr belo$:
r lf (he deploymcnt strtus is not \cccssi|, click Redeploy r IfrhlL docs nor wofk, tfy upoading thc EAR flc agan and the rcdcpoy I lfthal does nor work. use Designer lo validrlc thc proicct and rcbuild lhc EAR
rcupload the
filc. thcr
IAR
Lo
t','t'rB
tab G: t)e\
,1.
r l Admnisrntof.
e.Lch
go to AppLi.alon
>
ol
Lhc
^lanag.rrcn lbllowng rr".XX components arc Rerrirg (i not. stx|t thcn nrdlly):
- Crcditcheckservice - I'rocessorderservicc
1nd
vefily lhat
a . a . r .
- Rereiveorders
userXX-SalcsOrderSubscriptionXX
la ler'ce
conuoncnL
coresponding
Afchive>.orrc C:\tibco\tra\doranscr\X\ap plication\b\rpXX\<Pmccss of ^daptef If rhc rdaplcr seNce compone.r wi nor sn|1 using thc conlnanc lilc: a U!ing a text cclilof. opcn iiic C:\ribco\rr\doran\uscfxx\application\bwtXX\
t
5.
SalcsOrdersubscriptid.t.r -ocatc Lhc tibco.env.CUSTOI-PATH entfy ard lerjty thal jr jncudes the l)llowing , c\: /o! dc 1e /P!duc L/ 10.2 , O /cIienE I/BIN
r r I
a a a
lr
Lhe
each pfocessed
odel
Subrrit
Pqe.
Conlrm rcccipt ofrhe oder resut in the brcwscr Note: Thi! irdirectl)
LesLs Lhc adaptcr scrvice since this is he oonponenL aL wrLcs complered ofdeN to (he OfderDB.
a a
?rd.ir8 ab perirnr a Search Since thc co po cnts arc now deployed, you will be ablc to ricw lhe delais ol rny furtine e|rols that rnay halc occ nd usin-lr thc 4r4.tu8 utlily
For each component, selecl and n the
5l
lnkgrit)n
Notes