Vous êtes sur la page 1sur 17

LA8-01

CreaLlng Lhe lLem Lype, lLem aLLrlbuLes, and lookup Lypes for a workflow process
deflnlLlon.
1hls lab ls Lhe flrsL of Lhe serles of labs LhaL gulde you Lhrough sLeps Lo recreaLe
Lhe demonsLraLlon 8equlslLlon Approval process.
1h|s pract|ce |ab so|ut|on can be v|ewed by |oad|ng the f||e LA801.wft.
1. Cpen Lhe WlS1u.Wl1 and WlL88C8.Wl1 daLa sLores. Cpen a new daLa
sLore and copy Lhe SLandard and SysLem: Lrror lLem Lypes Lo Lhe new daLa
sLore. Close Lhe WlS1u and WlL88C8 daLa sLores.
Se|ect I||e- Cpen. Cpen WIS1D.WI1 and WILkkCk.WI1 from:
<drive>:\<ORACLE_HOME>\wf\DATA\US


Choose I||e- New to open a new data store. C||ck on the WIS1D data
store and se|ect the standard |tem type. Wh||e ho|d|ng down the se|ect
mouse button, drag and Standard |tem type to your new data store. Do
the same for the System: Lrror |tem type.

Se|ect the WIS1D data store, and then choose I||e- C|ose Store. Do the
same for the WILkkCk data store.
2. CreaLe a new lLem Lype wlLh an lnLernal name of Lhe form A8C". lor
example, Lhe lnLernal name may be A8C" and Lhe dlsplay name may
be 01 8equlslLlon Approval". SeL Lhe selecLor funcLlon Lo be Lhe predeflned
L/SCL procedure Wl_8LCuLMC.SLLLC1C8".
Se|ect Ld|t-New-Item 1ype.

3. CreaLe Lhe followlng Lwelve (12) lLems aLLrlbuLes. 1he lnLernal name, Lype,
lengLh and formaL, where lncluded, musL maLch exacLly, as Lhese lLem
aLLrlbuLes are referenced ln Lhe predeflned L/SCL procedures LhaL supporL
Lhls class exerclse.

1. lnLernal name: lC8WA8u_l8CM_ulSLA?_nAML
1ype: 1exL

2. lnLernal name: lC8WA8u_l8CM_uSL8nAML
1ype: 1exL
LengLh: 30

3. lnLernal name: lC8WA8u_1C_ulSLA?_nAML
1ype: 1exL

4. lnLernal name: lC8WA8u_1C_uSL8nAML
1ype: 1exL
LengLh: 30

3. lnLernal name: 8LCuLS1C8_ulSLA?_nAML
1ype: 1exL

6. lnLernal name: 8LCuLS1C8 _ uSL8nAML
1ype: 1exL
LengLh: 30

7. lnLernal name: 8LCulSl1lCn_AMCun1
1ype: number
lormaL: 9,999,999,999.99

8. lnLernal name: 8LCulSl1lCn_nuM8L8
1ype: 1exL

9. lnLernal name: nC1L
1ype: 1exL

10. lnLernal name: MCnl1C8_u8L
1ype: u8L

11. lnLernal name: 8LCulSl1lCn_uLSC8l1lCn
1ype: 1exL
LengLh: 80

12. lnLernal name:8LCulSl1lCn_8CCLSS_CWnL8
1ype: 1exL
LengLh: 30
Se|ect the |tem type you [ust created |n the nav|gator tree, and then
choose Ld|t New Attr|bute . to create a new |tem type attr|bute. Ior
examp|e, the ICkWAkD_IkCM_DISLA_NAM attr|bute |s created as
fo||ows:

Create the 12 |tem type attr|butes as descr|bed.
4. Save your new daLa sLore and lLem Lype deflnlLlon Lo a workflow deflnlLlon
flle.
Choose I||e Save and save your work to a f||e. Use a name such as
LA801.wft.
8y defau|t, the f||e |s saved to the d|rectory
<drive>:\<ORACLE_HOME>\wf\data\US\.



























LA8-02
CreaLe messages for Lhe noLlflcaLlons acLlvlLles ln a workflow process. 8ulldlng on
Lhe lLem Lype deflnlLlon LhaL you saved ln LA801, creaLe one message LhaL
requlres a response from Lhe reclplenL and Lwo messages LhaL slmple relay
lnformaLlon.
1h|s pract|ce |ab so|ut|on can be v|ewed by |oad|ng the f||e LA802.wft.
1. CreaLe a new message ln your lLem Lype called 8equlslLlon Approval
8equlred" LhaL prompLs Lhe reclplenL Lo approve a requlslLlon. rovlde
enough lnformaLlon abouL Lhe requlslLlon ln Lhe message so LhaL Lhe
reclplenL can make an lnformed declslon. Also provlde an opLlon for Lhe
reclplenL Lo lnclude addlLlonal commenLs abouL Lhe declslon.
a. ln Lhe sub[ecL llne of Lhe message, speclfy LexL LhaL requesLs an approval for
a requlslLlon and lnclude Lokens for Lhe requlslLlon number, requlslLlon
descrlpLlon and requlslLlon amounL LhaL have been deflned as lLem
aLLrlbuLes. ln Lhe body of Lhe message, repeaL Lhe Lokens for requlslLlon
number, requlslLlon descrlpLlon and requlslLlon amounL and also lnclude
Lokens for Lhe lLem aLLrlbuLes: forward from dlsplay name, requesLor
dlsplay name, and noLe.
Se|ect the |tem type you created |n ract|ce Lab01 and choose
ed|t new message. Create a message that |ooks as fo||ows:


b. ueflne Lhe Lokens LhaL you have lncluded ln Lhe message sub[ecL and
body as Send" message aLLrlbuLes.
noLe: 8emember Lo seL Lhe defaulL value of all Lhese Send message
aLLrlbuLes Lo Lhelr correspondlng lLem aLLrlbuLe.
Se|ect the message you [ust created and choose Ld|t- New- Attr|bute. to
create a new message attr|bute. I||| |n the property sheet. An examp|e of the
property sheet for the kequ|s|t|on Number message attr|bute appears be|ow.
kepeat for the other tokens |nc|uded |n your message sub[ect and body.


c. ueflne a message aLLrlbuLe wlLh an lnLernal name 8LSuL1" and source
of 8espond" LhaL prompLs Lhe reclplenL Lo respond wlLh a value of
Approved" or 8e[ecLed".
PlnL: Make use of Lhe Approval lookup Lype provlded ln Lhe SLandard
lLem Lype.
Se|ect the kequ|s|t|on Approva| kequ|red message and r|ght c||ck propert|es and
|n the kesu|t tab f||| the deta||s as fo||ows:










d. ueflne a 8espond" message aLLrlbuLe called noLe LhaL prompLs Lhe
reclplenL for addlLlonal commenLs abouL Lhe response.





Se|ect kequ|s|t|on Approva| requ|red message and choose Ld|t- New-
Attr|bute. to create another message attr|bute. I||| |n the property
sheet as fo||ows:

2. CreaLe anoLher message ln you lLem Lype called 8equlslLlon approved".
1he message sub[ecL and body should lnclude LexL LhaL sLaLes Lhe
requlslLlon was approved. ln Lhe sub[ecL llne of Lhe message, lnclude Lokens
for Lhe requlslLlon number, requlslLlon descrlpLlon, and requlslLlon amounL.
ln Lhe body of Lhe message, lnclude Lokens for Lhe forward Lo dlsplay name
and a noLe.
Se|ect the |tem type you created |n ract|ce LA801 and choose Ld|t- New-
Message. Create a message that |ooks as fo||ows:


Se|ect the kequ|s|t|on Approved message and choose Ld|t- New-
Attr|bute. to create the message attr|butes for th|s message.
3. CreaLe a Lhlrd message ln your lLem Lype called 8equlslLlon 8e[ecLed". 1he
message sub[ecL and body should lncluded LexL LhaL sLaLes Lhe requlslLlon
was re[ecLed. ln Lhe sub[ecL llne of Lhe message, lnclude Lokens for Lhe
requlslLlon number, requlslLlon descrlpLlon and requlslLlon amounL. ln Lhe
body of Lhe message, lnclude Lokens for Lhe forward Lo dlsplay name and
Lhe noLe.
Se|ect the |tem type you created |n ract|ce LA801 and choose
Ld|t New Message. Create a message that |ooks as fo||ows:


Se|ect the kequ|s|t|on message and choose Ld|t New Attr|bute. to create
the message attr|butes for th|s message.
4. CreaLe a new noLlflcaLlon acLlvlLy LhaL sends Lhe 8equlslLlon Approval
8equlred" message. 8emember Lo seL Lhe 8esulL 1ype Lo Approval". 1hls
noLlflcaLlon acLlvlLy should have Lxpanded 8oles" unchecked slnce lL ls
lnLended for only one person, Lhe requlslLlon approver.
Se|ect the |tem type you created |n ract|ce LA801 and choose
Ld|t New Not|f|cat|on. Create a not|f|cat|on act|v|ty that |ooks as fo||ows:





S. CreaLe a new noLlflcaLlon acLlvlLy LhaL sends Lhe 8equlslLlon Approved"
message. 1hls noLlflcaLlon acLlvlLy should have Lxpand 8oles" unchecked
slnce lL ls lnLended for only one person, Lhe requlslLlon preparer.
Se|ect the |tem type you created |n ract|ce LA801 and choose
Ld|t New Not|f|cat|on. Create a not|f|cat|on act|v|ty that |ooks as fo||ows:

6. CreaLe a Lhlrd noLlflcaLlon acLlvlLy LhaL sends Lhe 8equlslLlon 8e[ecLed"
message. 1hls noLlflcaLlon acLlvlLy should also have Lxpand 8oles"
unchecked slnce lL ls lnLended for only one person, Lhe requlslLlon
preparer.
Se|ect the |tem type you created |n ract|ce LA801 and choose
Ld|t New Not|f|cat|on. Create a not|f|cat|on act|v|ty that |ooks as fo||ows:

7. Save Lhe flle. Se|ect I||e Save.
LA8-03
CreaLe luncLlon and process acLlvlLles.
8ulldlng on Lhe lLem Lype deflnlLlon LhaL you saved ln LA802, CreaLe Lwo funcLlon
acLlvlLles for Lhe 8equlslLlon Approval process.
1h|s ract|ca| |ab so|ut|on can be v|ewed by |oad|ng the f||e LA802.wft.
1. CreaLe a new funcLlon acLlvlLy LhaL selecLs requlslLlon approver from Lhe
approval hlerarchy of Lhe demonsLraLlon daLa model. When you dlagram
Lhe dlagram Lhe requlslLlon Approval process ln a laLer pracLlce lab, you wlll
use Lhls acLlvlLy as Lhe sLarLlng polnL for a loop ln Lhe process. lf any
approver wlLh lnsufflclenL auLhorlLy approves a requlslLlon, Lhe process wlll
loop back Lo Lhls acLlvlLy Lo selecL Lhe nexL approver ln Lhe approval
hlerarchy.
ueflne Lhls new funcLlon acLlvlLy so LhaL lL execuLes Lhe predeflned L/SCL
procedure Wl_8LCuLMC.SLLLC1A8CvL8."
Wl_8LCuLMC.SLLLC1A8CvL8" reLurns a value of 18uL or lALSL, so
seL Lhls acLlvlLy's resulL Lype Lo 8oolean". SelecL an approprlaLe lcon such
as lnuMC8.lCC" from Lhe llsL predeflned lcons.
Se|ect the |tem type you saved |n LA802 and choose
LDI1 New Iunct|on. Create a funct|on act|v|ty that |ooks as fo||ows:


2. CreaLe anoLher funcLlon acLlvlLy LhaL verlfles LhaL Lhe approver has
sufflclenL approval auLhorlLy. ueflne Lhls acLlvlLy Lo execuLe Lhe L/SCL
procedure Wl_8LCuLMC.vL8ll?Au1PC8l1?."
Wl_8LCuLMC.vL8ll?Au1PC8l1?" reLurns a value of ?es or no, so seL Lhe
8esulL Lype of Lhe acLlvlLy Lo ?es/no". SelecL an approprlaLe lcon such as
vL8ll?.lCC" from Lhe llsL of predeflned lcons.
Se|ect the |tem type you saved |n LA802 and choose Ld|t New Iunct|on.
Create a funct|on act|v|ty that |ooks as fo||ows:

1. Save Lhe flle. Se|ect I||e Save.
LA8-04
ulagrammlng a workflow process.
8ulldlng on Lhe lLem Lype deflnlLlon LhaL you saved ln Lab03, dlagram Lhe
8equlslLlon Approval process uslng Lhe noLlflcaLlon and funcLlon acLlvlLles
you deflned ln Lab03 and Lab04, as well as Lhe predeflned funcLlon
acLlvlLles avallable ln Lhe SLandard lLem Lype.
1h|s pract|ce |ab so|ut|on can be v|ewed by |oad|ng the f||e LA803.wft.
1. CreaLe a new process acLlvlLy called 8equlslLlon Approval wlLh a 8esulL
1ype of Approval". 1hls process should be 8unnable".
Se|ect the |tem type you saved |n LA803 and choose
Ld|t New rocess. Create a process act|v|ty that |ooks as fo||ows:

2. ulagram Lhe 8equlslLlon Approval process Lo model Lhe followlng rules.
a. CreaLe a sLarL node. 8emember Lo modlfy Lhe sLarL node process
acLlvlLy properLy SLarL/Lnd" Lo SLarL".
b. 1ranslLlon Lo Lhe SelecL Approver funcLlon acLlvlLy node.
c. When Lhe resulL for SelecL Approver ls 1rue", branch Lo Lhe
8equlslLlon Approval 8equlred noLlflcaLlon acLlvlLy node. 8emember
Lo seL Lhe performer for Lhe noLlflcaLlon acLlvlLy node.
d. When Lhe resulL for SelecL Approver ls lalse", branch Lo Lhe
8equlslLlon 8e[ecLed noLlflcaLlon acLlvlLy node. 8emember Lo seL Lhe
performer for Lhe noLlflcaLlon acLlvlLy node.
e. When Lhe response Lo Lhe 8equlslLlon Approval 8equlred noLlflcaLlon
ls Approved", branch Lo Lhe verlfy AuLhorlLy funcLlon acLlvlLy.
f. When Lhe response Lo Lhe 8equlslLlon Approval 8equlred noLlflcaLlon
ls 8e[ecLed", branch Lo Lhe 8equlslLlon 8e[ecLed noLlflcaLlon acLlvlLy.
8emember Lo seL Lhe performer for Lhe noLlflcaLlon acLlvlLy node.
g. When Lhe resulL from Lhe verlfy AuLhorlLy funcLlon acLlvlLy node ls
?es", branch Lo Lhe 8equlslLlon Approved noLlflcaLlon acLlvlLy.
8emember Lo seL Lhe performer for Lhe noLlflcaLlon acLlvlLy node.
h. When Lhe resulL from Lhe verlfy AuLhorlLy funcLlon acLlvlLy node ls
no", branch back Lo Lhe SelecL Approver funcLlon acLlvlLy node Lo
creaLe a process loop.
l. 8ranch Lo Lnd acLlvlLles from Lhe 8equlslLlon approved and
8equlslLlon 8e[ecLed noLlflcaLlon acLlvlLy nodes. 8emember Lo modlfy
Lhe Lnd node process acLlvlLy properLy SLarL/Lnd" Lo Lnd" and seL
Lhe 8esulL approprlaLely.
Doub|e-c||ck on the kequ|s|t|on Approva| process act|v|ty |n the nav|gator
tree to open a process d|agram w|ndow. App|y ru|es a through I to create a
process d|agram that |ooks as fo||ows:

3. Save your modlfled lLem Lype and process deflnlLlon Lo Lhe daLabase.
Se|ect I||e Save and spec|fy the database to save to.

Vous aimerez peut-être aussi