Pages

Helpful Links

Friday, November 4, 2011

Oracle BPM: How to add external Resources (Databses) in Presentations

Hello Everyone!!!!!!!!

One of the most important task of using BPM is getting data from different sources, databases and different type of webservices into your project. This is like a tutorial to importing databases into your bpm project. For this example I will be using the simple WorkFlow below:

Work Flow
In this workflow the initiator select the item to issue and Head of Department Approves it and issuer checks it. As the inventory is another system we only need to get the list of available products for approval and issuance through BPM.


First go to project Navigator and select your project. Then right click on external resources and select "new external resource". A new window opens up. Give the name of your external resource and Type as "SQL Database". Select the type of external resource you are using not necessarily SQL; it can be a SAP service, a webservice or Java service depending on your needs, just browse through the list find the appropriate. If you have select the SQL database then a new field opens up called "Supported Types". In this LOV we select the DB we are using or its driver.

Add External Resource
Add Host name or ip address of DB server. Port by default is 1521 or your customized, user or schema name, its pass and schema name. You can also check the Advanced settings. Then go to tablespaces tabs and give the name of tablespace; As shown below:


Now import the external database to your module by Catalog --> Your module, then right click your module select catalog component and select SQL or the external resource you added. Then a new window appears that shows all the SQL resources you added select it then press next. Now it will show you all the Tables present in your schema select the tables you want to import and press next.It now appears as the picture on the Left.
When this external resource is added it will appear under external resource. Now go to  Catalog --> Your module --> Your BPM Object --> Double click the attribute you want to get an LOV. Go to valid Values and select Dynamic method. Click new under "method or values....."
Dynamic LOV Attribute

Name your new method and then write the query like the one below:    Do remember to select Server Side Method to "Yes".

Query to get LOV

After the successful query Your results in the form will look like this:

Presentation

If you have any query or question leave a comment and i will get back asap.

Saturday, October 29, 2011

Oracle BPM: Disaster Recovery (Using Enterprise Standalone Recovery)

The last post was about the recovery of BPM if the Enterprise server crashes and it has to be reinstalled on the same machine. The following steps can be followed to install and connect new Enterprise server with the existing database. 
  1.      In the Admin Centre of the Enterprise go to configuration (do not start it). In the Configuration option press add button. 
  2.    A new window opens up. Check the Use existing Directory Service radio button. Uncheck the Create Process Engine checkbox.
  3.  Press next. Select Use a database managed by Oracle BPM 
  4.  Press next. Enter the directory Configuration name, its description, Directory provider, BPM Admin user and pass. 
  5.  Press next. Enter the host database (IP address or its name).Port by default is 1521 for Directory provider: Oracle BPM Driver version 10, 11. Enter user, pass and SID for the username you gave to your schemas. 
  6.  This username and pass should be the BPM directory database (DIR). 
  7.  Press next. Save template. Finish 
  8.  Close the window. 
  9.  Press Start BPM WEB Application from the admin center. 
  10.  When it is started. Launch Process Administrator. Check engines, projects, OU, BAM, External Resources, Variable, and External Processes all are working fine.

Starting/Stopping Engine nodes

Process Execution Engine nodes can be started/stopped using Process Administrator.
  1. Login to Process Administrator
  2. Click Engines. The list of available Process Execution Engines appears.
  3. Select the Basic Configuration tab
  4. Click Engine Nodes.
  5. In the Engine Actions column select one of the following:
    • Click play button to start the Engine node.
    • Click stop button to stop a running Engine node.
Based on the action you selected, the Process Execution Engine node is started or stopped. If there are problems, click log icon to view the start up log.
Additionally, you can view the engine log file located at: <ORABPM_HOME>/log/<engineName> on that host's node.



Oracle BPM: Disaster Recovery (Using DATABASE)

Last Post was about back ups, now i will show you how to perform disaster recovery using it.

Recovery using Database:


Follow the following steps if you want to change the database or if the database crashes and you want to start the BPM in a different database.

1.       Make new schemas of the same names as in the previous database. From your exported database of BPM users use them to recover it in a new location

d
2.       Import the schema users into the new (empty) schema that has been taken as backup, using the following script
<Your Location>D:\oracle\product\10.2.0\db_1\BIN\imp userid=system/<password> file=D:\Backup\<Restore_File_Name.dmp> SHOW=n IGNORE=n CONSTRAINTS=y FROMUSER=(ENGINE,BAM,DM,DIR,ARCHIVE,EXTDB) TOUSER=( ENGINE,BAM,DIR,DM,ARCHIVE,EXTDB) log=D:\Backup\ Restore_File_Name.log

 
Follow the steps below:
 1.       Make sure to check the log that all the tables of all the schemas have been imported and no errors have been found. 
2.       Install the BPM Enterprise server on the machine, if it doesn’t already exist. 
3.       In the Admin Centre of the Enterprise go to configuration (do not start it). In the Configuration option press add button. 
4.       A new window opens up. Check the Use existing Directory Service radio button. Uncheck the Create Process Engine checkbox. 

5.       Press next. Select Use a database managed by Oracle BPM 

6.       Press next. Enter the directory Configuration name, its description, Directory provider, BPM Admin user and pass. 

7.       Press next. Enter the host database (IP address or its name).Port by default is 1521 for Directory provider: Oracle BPM Driver version 10,11. Enter user, pass and SID for the username you gave to your schemas. 

8.       This username and pass should be the BPM directory database (DIR). 
9.       Press next. Save template. Finish 
10.   Close the window. 
11.   Press Start BPM WEB Application from the admin center. 
12.   When it is started. Launch Process Administrator. Check engines, projects, OU, BAM, External Resources, Variable, and External Processes all are working fine. 
13.   Launch Workspace in the Admin center. If it does not open then go to Process Administrator -> Engines-> Select your Engine -> networking tab -> Workspace URL. Change this workspace URL to the current machine or the URL that is required.
14.  Change the logs locations as required


Oracle BPM Backups: Databases and Files

I found that the most important topic for the BPM developers, Architects and DBAs is Disaster Recovery specially in production environments. Many of the BPM projects are tracking and live systems which are updated round the clock. So it becomes a headache if the system crashes or is unavailable to the users. This post will show how to avoid the problem and then use the data from the database and move it to a new location is the application server crashes booth in the case of weblogic server or standalone.

Before starting disaster recovery we should have the backup of the following databases and


Few of the ways are given in the link below by oracle administration guide:


Take the back up of the following files whenever you make configuration changes or periodically.

Oracle BPM Files for backup

File Type Description Location
Configuration Files $INST_DIR/enterprise/conf
Non-versionable JAR Files Java libraries that are not part of a project file.
  • INSTALL_DIR/webapps/webconsole/WEB-INF/lib
  • INSTALL_DIR/ext
  • INSTALL_DIR/webapps/portal/WEB-INF/lib
Properties Files ../directory.properties
Web Applications Customized application files, including CSS files, custom JSPs, and image files.
WorkSpace Custom JSP used by WorkSpace $INST_DIR/webapps/portal/WEB-INF/portal.properties
WorkSpace Administrator Workspace Administrator properties file $INST_DIR/webapps/portaladmin/WEB-INF/portaladmin.properties
Archive Viewer Property and configuration files for the Archive Viewer application.
  • $INST_DIR/webapps/archivingviewer/WEB-INF/archiving.properties
  • $INST_DIR/webapps/archivingviewer/WEB-INF/configDrivers.xml

Monday, March 14, 2011

BPMBlog: BPM_ Why to use it?

BPMBlog: BPM_ Why to use it?: "A little knowledge is dangerous. A simple sentence but a lot of meaning for those who have tried projects with little knowledge. Try making ..."

BPM_ Why to use it?

A little knowledge is dangerous. A simple sentence but a lot of meaning for those who have tried projects with little knowledge. Try making a sandwich, its simple right, but why do these fancy named sandwiches from the malls taste better. Driving a car is simple but why do learners get scared and hit fences(Yes, I surely did).

I am starting this blog for Business Process Management beginners who can get the knowledge about when,how,why to use BPM. What will be its benefits and problems and what can they do to fix them.

I dont want to make the blog all dull and boring with all the facts and statistics but what can I do its BPM. All businesses are boring, and most of people don't know what processes are.I have been using Oracle BPM for quite some time now and have come to the conclusion that BPM is the best way to do boring work.

The world is changing everyday, so are businesses. Softwares are being used everywhere and in anyway you can imagine. What makes BPM different from all the other softwares is the fact that it gives you dynamic-ism in your business processes. Dynamic changing business requires the softwares that adapt to these changes. I am giving a simple example of a business process, suppose you are dealing with customer complaints. You take customer complaint and pass it to a work-flow that contains an analyst, C.R officer and a manger. Your standard software works perfectly doing this role but(its a big BUT) what if your company decides to by-pass the C.R officer and your software with static work flow fails to do it. Now other companies take giant steps to build customized softwares and ERP systems where your workflow is customizable, here it is possible to make changes but whole functionality has to be changed and a lot of work has to be done to check whether this change effects other processes as well or not. Do you have this much time?. Now using BPM this change in workflow can be managed in minutes from your own IT department.

BPM displays the workflows as if you are using simple flowchart design or Visio. It makes work using variables on the back end and not a lot of coding is required. You can save time your business process can be up and running in weeks. You can change it easily and visibility is great. You can get a birds eye view of your process and see the bottlenecks from all the statistics it generates. BPM is not only driving your process but improving it constantly. Four major terminologies of BPM are:
  1. Business Process Mapping
  2. Business Process Modeling
  3. Business Process Management
  4. Business Performance Management
To be continued..........