Beruflich Dokumente
Kultur Dokumente
80.Click on the 'Sensors tab to start the process oI adding a new sensor.
81.Use the plus button to create a new activity sensor.
82.Set the Name oI the sensor to 'PendingApprovalActivitySensor and set the
Evaluation Time to 'Completion.
83.Use the plus button in the Activity Variable Sensors box to add a variable.
84.Choose the outputVariable Order and click 'OK.
87.There is no sensor action assigned to this activity sensor yet. With the
'approveLargeOrder BPEL process open, navigate to the 'Sensor Actions
Iolder in the Structure panel.
88.Right-click on Sensor Actions and select Create ~ BAM Sensor Action.
Training Tutorial: Oracle BAM - BPEL Sensors
(tutorial for bpel-bamsensors and bam adapter.doc)
tutorial Ior bpel-bamsensors and bam adapter.doc
Page 23 oI 26
June, 2009 (version 11.1.1.0.0)
Document version (2)
Oracle conIidential, All rights reserved
89.The 'Create Sensor Action screen will appear.
a. Enter the name 'PendingApprovalSensorAction,
b. Choose the 'Pending Approval Sensor Action,
c. Use the magniIying glass next to Data Object to select the 'Orders data
object,
d. Select 'Upsert as the BAM Operation,
e. Select OrderID as the key,
I. ModiIy the name oI the map Iile to:
'bam\xsl\PendingApprovalSensorAction.xsl
g. Change the JNDI setting to: 'eis/bam/rmi Ior the BAM Connection
Factory JNDI.
h. Keep the Enable Batching box checked.
i. Use the plus symbol, next to Map File to create a new mapping Iile.
i. Create links Irom the Iields on the Source side under
tns:actionData ~ tns:payload ~ tns:variableData ~ tns:Data ~
sensor:Order to the corresponding Iields on the Target side in
tns:Orders1.
Training Tutorial: Oracle BAM - BPEL Sensors
(tutorial for bpel-bamsensors and bam adapter.doc)
tutorial Ior bpel-bamsensors and bam adapter.doc
Page 24 oI 26
June, 2009 (version 11.1.1.0.0)
Document version (2)
Oracle conIidential, All rights reserved
90.By Iollowing the same process that you used to create a
'PendingApprovalActivitySensor and a 'PendingApprovalSensorAction, create
a 'CallbackActivitySensor and a 'CallbackSensorAction. Add this sensor to the
'callbackClient activity at the end oI the process. This time set the Evaluation
Time to 'Activation. Make sure you add the activity variable and perIorm the
mapping. Remember you can only create a BAM Sensor Action Irom the
structure panel while the BPEL process is open.
Training Tutorial: Oracle BAM - BPEL Sensors
(tutorial for bpel-bamsensors and bam adapter.doc)
tutorial Ior bpel-bamsensors and bam adapter.doc
Page 25 oI 26
June, 2009 (version 11.1.1.0.0)
Document version (2)
Oracle conIidential, All rights reserved
91.When you are done, you can go back to the 'Sensors tab oI the activity. Double-
click on the sensor that you want to edit (or use the pencil icon) and you will see
the 'CallbackSensorAction associated with the 'CallbackActivitySensor.
DepIoying and Running the Composite
In lhis sle, you re-deIoy lhe nev comosile in }DeveIoer and lesl il again using lhe
Inlerrise Manager lesling funclion. This lime use a Iarge order.
Create VariabIe Activity Sensors
92.Open the BPEL Process by double-clicking
93.In JDeveloper, re-deploy the composite with a new version ID.
94.In Enterprise Manager 'Fusion Middleware Control, click on the composite with
the version number that you just deployed.
Training Tutorial: Oracle BAM - BPEL Sensors
(tutorial for bpel-bamsensors and bam adapter.doc)
tutorial Ior bpel-bamsensors and bam adapter.doc
Page 26 oI 26
June, 2009 (version 11.1.1.0.0)
Document version (2)
Oracle conIidential, All rights reserved
95.Click on the 'Request tab to try the test again with a large order that has an
invalid credit card. Notice that the status is updated in the BAM. Use the data Iile
c:\po\input\largeinvalidCC.xml
96.Test again with a large purchase order over $5000 with a valid credit card. Check
that the status oI that purchase order in BAM is 'Pending Approval.
97.Use the BPM Worklist application to approve the order. Notice that the status is
updated to 'approved.
98.Open the report using 'Active Viewer to see the data. It will update in real-time
as new purchase orders are received.
Summary:
At the end oI these exercises the participants understand how to:
Create a Data Object and a BAM Dashboard.
Create a BAM Adapter.
ConIigure BAM Sensors and Sensor Actions
Questions & Clarifications:
II you have any comments or need additional inIormation, please communicate through
the Oracle BAM Iorum at: http://Iorums.oracle.com/Iorums/Iorum.jspa?IorumID252