Monday, December 30, 2013

#297 BAM and BPM Part 3

In this post, I add a rule to BAM to automatically re-order iPads, when the inventory is less than 10.

To begin with I create a web service to mimic the re-ordering.

I create the following class in JDeveloper and expose as a web service.














I deploy to my SOA AdminServer and test






















Note the wsdl -
http://localhost:7001/OrderProcessingService/OrderProcessingPort?WSDL

Now open BAM in Architect mode, add a new data objetc - LowInventory with one field - Product.

Now open BAM in Active Studio mode, open the report  -

Edit -







Double click on the Action List and click Change Report Properties










Add a new Action








































Edit the mapping - setting product in LowInventory to the value of Product from the ActionList.


























Save the report and run in Active Viewer










Check the lowInventory Data Object

It has one row -













Now we add a rule to call the web service when this happens.

































































Configure the Web Service
















re-test

I enter an order for 5 iPads.
I approve the order.

I select the order and click Re-order Product in the BAM report







I check the WLS console for the web service output.






#296 BAM and BPM Part 2

In this post I create some dashboards for the BPM process.

I begin by adding a new data object  - MyOrder - to BAM.
This will contain the following info -
Customer name, Product, Quantity and order value (unit price * quantity)

Open BAM and click on the Architect button
Create a new sub folder and then a new data object in there
































Create a new data object based on the Inventories DB table







































Now go to JDev and augment the project with a BAM adapter.



























































Add a Service Task (UpdateBAM) to the process to leverage the BAM adapter.
Data Associations as follows -























Deploy and Test















Approve the order for Hans and review the trail in EM












No back to BAM - Click the active studio link to create a new report based on our 2
data objects










Choose the 2nd template -2 tiles











Tile 1 - Action List - based on MyOrders Data object
Tile 2 - Bar Chart - based on MyInventory data object


Click on the Active Viewer button in BAM and select the report we just created




























execute the process again for a different customer




























In the next post, I will create a rule to auto-reorder iPads once there are less than 10 in stock

#295 BAM and BPM part 1

In this post I cover the use of BAM OOTB for BPM process analysis.

I have the following simple process that processes an Order -

















Here are the DB tables accessed in the process -













Here is the process -











Here is the composite -


















I deploy and test and verify that all is working.

Now I start the BAM server.
For this post, I will be leveraging the Sample Monitor Express components.
These need to be installed. Follow the README.txt at -










Now we need to do the BAM adapter setup in the WLS console -



Open the BPM project preferences -




















Change as follows -

















Login to BAM - http://localhost:9001/OracleBAM/














Start a couple of instances of the process via EM -












Click on the BAM - Active Viewer button

Click - Select Report















































Now let's add a counter to the process - to count the number of approval rejections.












































re-deploy and create some new instances.
Reject one of them








In BAM, click on Process View and select the process















We see the current value of our counter