Tuesday, December 31, 2013

#298 BAM and BPM part 4

Working with the same example - I now create a new BAM dashboard rendering of the Inventory data object to range gauge.
Create a new report in Active Studio -





























































Set the ranges as follows -












and










The result:















We will implement BAM calling BPM -
I create a simple BPM process called FraudAnalysis.

The input/output xsd is as follows -


















Deploy and pick up the WSDL from EM.









In BAM Architect, add a new Data Object FraudulentOrder with the values from the xsd above.




















Back in BAM - ActiveStudio

Add an action list to the page based on the order data object












Create an action to do an insert into the FraudulentOrder DataObject































Now in Architect, I create the Alert/Rule to call the web service when the FraudulentOrder DataObject changes.






















Test













Check in EM to validate that a new instance has been launched.























Launch another Fraud check from BAM - This time select multiple rows -













Check in EM

















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