Monday, April 22, 2013

Industrial SOA

Today I’d like to point you to a new article series termed as "Industrial SOA" authored by the "Masons of SOA". The series is dedicated to the exploration of contemporary SOA topics and issues and highlights some of the more recent innovations in practice that will especially be of interest to those who want to learn some techniques that go beyond the academic essentials.
Abstract: “SOA and service-orientation have laid the foundation for a variety of emergent service technology innovations, while the original building blocks of SOA and service-orientation continue to evolve by embracing fundamental service technologies, concepts and practices. These new technology innovations do not replace service-orientation; they use it as their basis. Service-orientation continues to evolve towards a factory approach, towards industrializing integrated platforms, such as BI, master data management (MDM), mobile front-ends, BPM, adaptive processes, Big Data and Cloud Computing – all of which add architectural layers upon SOA-based infrastructure. All of these technologies can interface via standardized data and functions, published as service contracts, in order to avoid redundancy – that's service-orientation.”



The 14 part series begins with a preface by Oracle veteran Juergen Kress, and then moves on to the first of thirteen articles. The articles are & will be published on OTN and the Service Technology Magazine.

Send your feedback to @twitter/dschmied #industrialSOA.

Monday, April 1, 2013

New case management functionalities in Oracle BPM Suite 11.1.1.7

Today I’d like to highlight a nice feature of the newest Oracle BPM Suite Release. I am very happy that Oracle enriched the Suite with certain Case Management functionalities that fit into the existing Service Component Architecture (SCA). In the past month I already had the chance to play a bit with the beta software. With this post I’d like to share some of my experiences. 

Why Case Management?
Business Process Management becomes more and more important. With BPM Suite processes can be modeled, implemented, simulated and executed in a multi-user environment. There are also a lot of different reports available to monitor processes during runtime. We see in our projects, that this kind of automation is especially valuable for processes which are based on routine work. Some examples are “Hiring”, “Order-to-Cash”, “Order Management”, “Travel Request Management” and so on.

However - we also notice quite a high amount of processes, which are too complex and too flexible to model them in BPMN. We call it knowledge-intensive work. Of course if you have a lot of time you might be able to model almost everything but is it a benefit to have processes which are not readable anymore? How fast is your time-to-market? How easy is it to implement process changes? How can you support the job of the knowledge worker? Some typical domains with a high amount of knowledge-intensive work are Insurances, Banks, Healthcare, Civil Services and Government Agencies.

Let me try to explain the need of case management with our RYLC example. RYLC stands for “Rent your legacy car” and it was introduced in a series of articles as an overall solution example. The main target of RYLC was to explain concepts like service categories, loose coupling, canonical data model, service security and much more (see SOA Spezial magazine for details). The graphic below shows the complete End-to-End RYLC process in BPMN notation from receiving the request, selection of the car, checkout of the vehicle, returning it, creation of the invoice and cash clearance. I highlighted the checkin-part of the process, which covers the return of the car. It is based on an asynchronous message exchange pattern - the process execution stops until the checkin is completed or canceled. In this stage several things can happen.

BPMN Example - Rent your legacy car (RYLC)
The happy path of the process would be that everything goes well and the customer returns the car at the date that has been agreed during the reservation. The extension of the rental period can trigger other actions which are necessary to satisfy the customer. In worst-case the customer might have an accident or somebody steals the car.   

A lot of effort and time is necessary to bring all the mentioned varieties into the process. Examples like an accident will result in claim notifications and extended communication with the appropriate insurances. It is difficult to model each potential option. This is where Case Management comes into the game. It helps us to combine different milestones with the appropriate task actions, business rules, stakeholders, resulting events as well as data and documents (see the image below). During the car-checkin different milestones like “In Rental”, “Accident” (optional), “Stolen” (optional), “Returned” and “Approved” might occur. Each milestone consists of mandatory and optional task actions. Their execution order is defined by business rules. The task actions can be system driven (implemented as services) or user driven. Of course similar to BPMN some data and documents are exchanged in each step. Case Management is mainly controlled by the knowledge worker, which means that they affect the “flow” of the case. Therefore the definition of stakeholders and their permissions is another important aspect. Some example stakeholders in RYLC are the insurance holder, driver, car park assistant, front desk clerk and the rental manager. Based on the milestones and the task actions different events can occur that trigger new situations. Case management can support the knowledge worker with the right information (but the knowledge worker keeps the decision & process authority). Better and faster process decisions are the benefits of it.

Key aspects in Case Management
To conclude: Case Management covers complex and unstructured knowledge-intensive scenarios where modeling is too expensive and time consuming. It is non-deterministic, which means that the case flow is dynamically determined at run-time. The case participants choose actions to meet goals. It can be used to enrich existing processes (like in the RYLC example above) or as separate and independent solutions. 

How-to define a Case in Oracle BPM Suite?
In Oracle BPM Suite 11.1.1.7 the Case component is introduced as a first class artifact with support for milestones, events, adhoc activities stakeholders and so on. Like BPMN, BPEL, Human Task, Rules, etc. a Case can be created by just dropping it on the composite level. After completing the wizard a case component, a business rule component and an interface (exposed service) is visible (as illustrated in the image below).

Composite.xml with Case component
For now a composite can have only one Case component. Double-clicking on the case directs you to the definition of the component. Here you can define the milestones, case outcomes, data & documents, stakeholders & permissions, user events and translations. The image below shows how milestones and case outcomes can be defined.

Definition of a Case
Furthermore it is necessary to define and implement the case activities. I noticed two ways of creating them. Option 1 is to open the wizard under “New > BPM Tier” and select “Custom Case Activity”. Option 2 is to promote an existing component as a case activity. For the article I decided to go for option 2 – so I promoted the Human Task “Evaluate Claim Notification”. A case activity does have its own definition – a file with a *.caseactivity extension. You can find an example with some of the parameters available for customization on the bottom of the next screenshot.

Definition of a Case Activity
Additionally the business rule created along with the case component needs to be configured. It comes with a set of predefined functions (e.g. activateActivity, withdrawActivity, reachMilestone and revokeMilestone), Facts and Bucketsets (e.g. TEventType, TMilestoneEvent, etc.). The definition of rules is necessary to handle all the different situations of the case. Typical examples are ACTIVITY_EVENTS which trigger new activities or milestones, USER_DEFINED_EVENTS which have been specified in the case definition file or MILESTONE_EVENTS which trigger the appropriate case activities (see the screenshot below). There are many different options and I hope that some documentation material is going to be published soon.

Definition of a Case Rule
During runtime you can take advantage of the monitoring capabilities from the Enterprise Manager – as you might already know from BPMN or BPEL processes. How many case-instances have been started in which time frame?  Which milestones have been reached? Did there a fault occur? Which rules and which activities have been activated? The screenshot below shows the instance information of Oracle’s "EURent" Case Management example.

Monitoring of Case instances in EM
With the new Case Management functionalities BPM Suite confirms its outstanding position. I couldn’t wait to play with the software and I am really happy to demonstrate the new product capabilities to our customers. What I didn’t mention so far is the importance of user interfaces and tight integration with content management systems like WebCenter. So there is more to come :-)

Thursday, January 10, 2013

BPM Integration Days 2013 - das große Trainingsevent für BPM und Integration

Auch in diesem Jahr bieten die BPM Integration Days vom 28.02.2013 - 01.03.2013 wieder ein spannendes Programm für alle Teilnehmer, intensive Power Workshops / Sessions mit klarem Praxisbezug und Materialien in elektronischer Form zum bequemen Download. Natürlich ist auch für das leibliche Wohl gesorgt. In einer besonderen Wohlfühlatmosphäre wartet eine All-inclusive-Verpflegung mit Erfrischungen und Snacks in den Pausen, ein leckeres Mittagsbuffet sowie ein Come Together am Donnerstagabend mit Snacks und Freibier auf Sie - eine ideale Plattform für Erfahrungsaustausch und Networking mit Praktikern und erfahrenen Experten.


OPITZ CONSULTING ist auch wieder mit einigen Vorträgen vertreten. Besonders freue ich mich darauf, Ihnen - gemeinsam mit meinen Kollegen Sven Bernhardt und Benjamin Huskic - von den maritimen BPM-Abenteuern unserer Firmenkuh Robina Ruadh zu erzählen.


Misten Sie gemeinsam mit uns in "BPM abgegrast - eine Kuh geht auf Reisen" den Stall aus. Was ist bereits ausgeschlachtet? Was käuen wir gerne wieder? BPM, BI, Mobile, Cloud und ACM gehören ins Gepäck und machen die Reise zu einem unvergesslichen Erlebnis (inkl. Livedemo).      
   

Sunday, January 6, 2013

Connect to multiple SOA / BPM Virtual Machines from different computers in your network

Today I’d like to explain how to share instances of Oracle's Pre-built Virtual Machine for SOA Suite and BPM Suite across different computers in your network. Three requirements I had to address:
  1. Call of external services like GeoNames (http://www.geonames.org/postal-codes/) from within the BPM Suite VM
  2. Connection to multiple BPM Suite VMs from Host (e.g. JDeveloper and Browser)
  3. Connection to multiple BPM Suite VMs from different developer computers in the network 
  4. Share data between VMs and developer computers via FTP
The default options already support connections between host and client. However the target here was to address multiple independent VMs from different computers in the same network. The following settings worked in my environment:
 
1) Start the Oracle VM VirtualBox Manager and open network settings of the VM.
 
2) Select Bridged Adapter in “Attached to”. Bridged Networking is used when you want your vm to be a full network citizen, i.e. to be an equal to your host machine on the network (see Networking in VirtualBox for more details).
 
3) Select the name of your network adapter. Take into account that when you change your connection method (WIFI / Cable) a different network adapter is required. Get the appropriate name from the network settings of the host.
 
4) Specify the Adapter Type.
 
5) Start the VM.
 

6) Per default the VM receives the IP via DHCP method. Open a terminal window in the client and send the following command as root user to get the current IP address information of your VM. Instead of DHCP you could also change the connection method of your VM to a static address.

ifconfig <CONNECTION-NAME>  (e.g. ifconfig eth1) 


7) Another way to get the IP information is the network icon at the bottom of the Oracle VM VirtualBox window.

 
8) Connect or ping this IP address (here: 192.168.2.131) from the host or from a different computer in your network. I suggest adding the IP address to your etc/hosts-file in order to address the VM via names instead of a static IP addresses. If successful start the SOA / BPM Server and enjoy the remote development. If not please check your firewall and router settings. Good luck!
 

Friday, November 30, 2012

Undeploy multiple SOA composites with WLST or ANT

As part of our current project the Build Management team asked for a solution to undeploy multiple composites at one time. Of course you have the “Undeploy All From This Partition” menu option in Enterprise Manager but since we have a lot of deployments every day the guys wanted to have a script solution. It is even more important for the nightly deployments on our continuous integration environment – strange, we couldn’t find anybody who wants to do the undeployment via Enterprise Manager manually every night ;-)

However with WLST or ANT the SOA Suite comes with two options to undeploy composites via script. In this article I’d like to explain you both ways.

Undeployment with WLST

You can test the steps below on Oracle's Pre-built Virtual Machine for SOA Suite and BPM Suite 11g.

1) Change to the WLST directory under MIDDLEWARE_HOME/Oracle_SOA1/common/bin.

cd /oracle/fmwhome/Oracle_SOA1/common/bin/

2) Open WLST

./wlst.sh

3)  Connect to the SOA server

wls:/offline> connect('weblogic','welcome1','t3://soabpm-vm:7001')
Connecting to t3://soabpm-vm:7001 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'dev_bpm'.
wls:/dev_bpm/serverConfig>

4) Run the delete command for the appropriate partition

wls:/dev_bpm/serverConfig> sca_deletePartition('test')
partitionName = test
Partition was successfully deleted.
wls:/dev_bpm/serverConfig>

Please take into account that the command deletes all composites as well as the partition itself. If you need the partition for future deployments just recreate it with the sca_createPartition WLST-command. Also check the Oracle Fusion Middleware WebLogic Scripting Tool Command Reference for a complete list of SOA Suite Custom WLST Commands.

Undeployment with ANT

Another option is to use ANT for the undeployment of multiple composites. The key here is to reference the file ant-sca-mgmt.xml within your custom ANT-target. The file comes with SOA Suite as well as JDeveloper. See my quick example below:

<target name="sca_deletePartition">
  <echo>Undeploy Composites</echo>      
  <ant antfile="/oracle/fmwhome/Oracle_SOA1/bin/ant-sca-mgmt.xml"
     inheritall="false" target="deletePartition">         
      <property name="host" value="soabpm-vm"/>         
      <property name="port" value="7001"/>         
      <property name="user" value="weblogic"/>         
      <property name="password" value="welcome1"/>         
      <property name="partition" value="testPartition"/>      
  </ant>   
</target>

Again this command deletes all composites of the given partition as well as the partition itself. See the Developer's Guide - Managing SOA Composite Applications with Script for more details.

Update: After reading this article Christoph Burmeister from our Build Management team created a pom-snippet for this to make the maven fans happy as well :-) Many thanks Christoph!!

Wednesday, October 10, 2012

OOW 2012: Oracle BPM / Oracle ADF Integration Best Practices

Unfortunately Oracle Open World 2012 is already the past. It was a great conference in a wonderful city. I am looking forward to meet all the interesting people and friends next year again. In this article I'd like to share the slides from my session with Andrejus Baranovskis. We really enjoyed to share our experiences from the last couple of years. The room was almost fully booked with interested BPM- and ADF-users and the feedback afterwards was very nice.

What was the target of our session? 

With this session we wanted to bring valuable practical experiences from the Oracle BPM / ADF integration field, based on our technical involvement into several Oracle Fusion projects. We shared different customer cases, where we applied Oracle BPM / ADF solutions. We focused on Oracle BPM Human Task reusability, Oracle BPM Data Control packaging and integration into ADF application - how to make it maintainable and reusable for large development teams and many human interactions.

Furthermore we introduced technical patterns for BPM / ADF applications developed in our projects. One of these patterns was the Generic Task Handler, which allows to minimize the number of BPM Human Task Definitions, especially in large BPM/ADF implementations. The pattern decouples the dependency between the Data Control related to the BPM Human Task and its consuming ADF UI application. As Andrejus described this is the key to develop more flexible ADF User Interfaces and to reduce the development time of human centric processes significantly.


Always having performance, maintenance and product or process migrations in mind - we additionally provided examples for the following Best Practices:
  • Decoupling of business data from process instance data
  • Customizing of BPM Workspace with ADF
  • Housekeeping for BPM and ADF (Purging, Monitoring)
  • Architecture based on multiple layers
  • Re-execution of processes (Fault Management, Replay, Entry Points, etc.)
  • ADF security integration
  • Useage of MDS to share metadata
If you have problems accessing the embedded slideshare presentation please let us know.

Sunday, September 16, 2012

Industrialized SOA – Thema des Business Technology Magazin 3.12

Auch wenn es ruhiger geworden ist um SOA, beerdigt ist das Konzept noch lange nicht. Ganz im Gegenteil, über die Jahre hat es einen neuen Maturity Level erreicht. Hype-Themen wie Cloud Computing oder Big Data haben SOA aus den Schlagzeilen verdrängt, aber "ersetzen die neuen Hype-Themen die Serviceorientierung nicht, sondern bauen darauf auf". 

Die Autoren dieses Magazins zählen im deutschsprachigen Raum zu den SOA-Pionieren. Für diese Ausgabe von Business Technology haben Sie ihr kollektives Wissen zusammengetragen und ein einzigartiges Bild des aktuellen Zustands von SOA geschaffen. Nach ihrer Überzeugung entwickelt sich SOA evolutionär weiter, in Richtung Fabrikansatz, in Richtung Industrialisierung, in Richtung "ganzheitliche Plattform" zu einer neuen Industrialized SOA.

Business Technology Magazin
 
Die Ausgabe 3.12 des BT Magazins bekommen Sie als iPAD-App, per Post oder am Kiosk! 

Weitere Informationen auf www.bt-magazin.de