Mar 14, 2015

Setting up Watches and Notifications in Weblogic Server

If you are only using the Weblogic Administration console for monitoring your Weblogic platform, you can still set up alerts to inform you about the state of your system. This post will cover just such a setup that will send email notifications to the administrators, although SNMP traps, JMX, and JMS are also supported.
To set up your email alerts you will need to cover these main steps:
  1. In our specific case of email notifications, you need to set up a JavaMailSession object, that will actually be used by the Notifications to send the alerts through the specified email server;
  2. Set up a diagnostic module and define any metrics that you would like to collect;
  3. Define the Watches you are interested in – this is the situation that you want to trigger your alert. It can be a certain message in the log files, or a certain value of a collected metric, or a certain event occurring in the system.
  4. Define the Notifications you would like to receive and associate the Watch to a Notification;
In the below example, we will set up alerts on the state of the Weblogic Managed Server, so the admin will get a notification when a server is not in the RUNNING state.

1.       Set up the Mail Session object.

Note that the JavaMailSession itself does not offer email server capabilities, but it only provides the JavaMail API so that applications can send and receive email from an already existing server.
a)      Click “Lock & Edit” to acquire a configuration lock
b)      Expand Services -> Mail Sessions and click “New” to create a new Java Mail Session object
c)       Provide Name, JNDI Name and JavaMail Properties as follow:
Name – WLSAlertsMailSession
JNDI Name – WLSAlertsMailSession
(You may enter whatever value here, but it’s best to keep the same value for the two names)
JavaMail Properties:
mail.debug=”true” – not mandatory, but recommended should you want to troubleshoot why your alerts are not getting through
mail.smtp.port=25
mail.smtp.from=”soa_admin@example.com”
mail.smtp.host=email.server.example.com
d)      Click next to target the mail session to a server (either managed or AdminServer) and click finish. You need to do this so that the MailSession is exposed on the servers JNDI tree.
e)      Activate the changes by clicking “Activate Changes”.



2.  Set up a Diagnostic Module and define a metric of interest as a Collected Metric.

a)      Expand Diagnostics -> Diagnostics Modules and click “New” to create a new diagnostics module. Provide a name and description.
Name – DiagModuleWLDF
Description – This is a WLDF module for testing email notifications
b)      Select the newly created module and select “Targets” tab. Select the appropriate server for target as before
c)       Click “Save” and “Activate”
d)      Click “Lock & Edit” to acquire a new configuration lock
e)      Click on the “Collected Metrics” tab and click “New”
f)       Select “ServerRuntime” and click “Next”
g)      Select “ServerRuntimeMBean” from the dropdown
h)      From the list of collected attributes select “State” and move it in the “Chosen” category; Click “Next”
i)        From the instances list select the servers you would like to be informed about by selecting an instances and moving it to the “Chosen” category
j)        Click “Finish”
k)      Click “Save” and “Activate”
Notice that this metric is collected at a configurable interval, by default 300000ms

3.       Set up a new Watch rule

a)      Click “Lock & Edit” to acquire a configuration lock
b)      Navigate to the diagnostic module created above (DiagModuleWLDF) and select the “Watches and Notifications” tab and “Watches” sub-tab (if not already selected)
c)       Click “New” to create a new Watch. Provide the name and select the type as “Collected Metrics”. Also make sure the watch is enabled.
Name – ServerStateWatch
d)      Click “Next”
e)      Click “Add Expressions”
f)       Ensure that “ServerRuntime” is selected and click “Next”
g)      From the dropdown, select “ServerRuntimeMBean” again. The click “Next”
h)      Select the instance for the appropriate server from the list for “Instance” and click “Next”
i)        For “Message Attribute” select “State”, “!=” for “Operator” and type “RUNNING” (all capital letters) for “Value”. Click “Finish” the Watch
j)        Activate the changes
This Watch will now be triggered every time the server state is other than RUNNING. Please note that this is dependent on the Collected Metric’s sampling period as well.

 4.       Setting up the Notification and associating it with a certain Watch

a)      Click “Lock & Edit” to acquire a configuration lock
b)      Navigate to the diagnostic module created above and select the “Watches and Notifications” tab and “Notification” sub-tab
c)       Click “New” to create a new Notification
d)      Select “SMTP (E-Mail) for Type and click “Next”
e)      Provide a name – ServerStateNotification. The notification must be enabled, of course. Click “Next”.
f)       Configure the following properties for the “Config Notification – SMTP Properties” page
g)      Mail Session Name – WLSAlertsMailSession
h)      E-Mail Recipients – admin@example.com
i)        Click “Finish”.
j)        Activate the changes
To associate the watch and the notification:
a)      Click “Lock & Edit” to acquire a configuration lock
b)      Navigate to the diagnostic module created above (DiagModuleWLDF) and select the “Watches and Notifications” tab and “Watches” sub-tab (if not already selected)
c)       Select the watch you created earlier – ServerStateWatch
d)      Select the “Notifications” tab and move the “ServerStateNotification” from Available to Chosen
e)      Click “Save”
f)       Select the “Alarms” tab and select “Use an automatic reset alarm”. Set the “Automatic reset period” so that you don’t get spammed with alerts email  and click “Save”.
g)      Click “Activate Changes
And that’s it. Next time one of your servers is in a state other than RUNNING (and is picked up by the collected metric based on the sampled period), you will receive an email in the form of:

Jan 6, 2015

SOA 12c JCA transport migration error of OSB project

When an OSB 11g project using the JCA transport is imported to JDeveloper 12c, you might see the following error.
oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: Please specify a Service. Choices are:
This is one of the known issues in the project migration. You need to manually edit certain files to resolve this error. Here are the steps to resolve this issue.
1. Edit the WSDL associated with Business Service
Open the project in JDeveloper 12c and go to the Business Service. You will find the name of the WSDL under the General Configuration. In the following example, you can see the name of the wsdl is WritePubEasyProductUploadFile.wsdl
JCA01
2. Change the namespace
Change the targetNameSpace, wpefile and the import namespace to http://xmlns.oracle.com/pcbpel/adapter
JCA02
Open the Abstract WSDL. You can find the name of the Abstract WSDL in the location attribute of the WSDL import tag. In the above screenshot you can see that the Abstract WSDL is WritePubEasyProductUploadFile_Abstract.wsdl. Open this abstract WSDL and edit the targetNamespace and the wpefile attributes in the WSDL definition tag tohttp://xmlns.oracle.com/pcbpel/adapter. Remove the xmlns:jca=http://xmlns.oracle.com/pcbpel/wsdl/jca/ line.
JCA03
3. Edit the Business Service
Open the Business service in notepad. In this example, WritePubEasyProductUploadFile.bix and change the namespace tohttp://xmlns.oracle.com/pcbpel/adapter
JCA04
4. Refresh the Application
Refresh the application or close and reopen the project. If it does not work, click on the Business Service and refresh it. Now, the error associated with the JCA will be resolved.
JCA05

Aug 22, 2014

A Dozen Things to Know about SOA 12c

Oracle Corporation recently made its long-anticipated SOA (Service Oriented Architecture) 12c release. Oracle SOA 12c promises to.


While SOA 12c is loaded with features here are a dozen things you need to know now:

1.    12c Provides a Unified Platform for Both Cloud and On-Premise Applications 

The majority of the companies today  run their applications on some combination of on-premise, cloud or mobile and these organizations are seeking for a robust Integration platform solution from a single strategic point. Oracle unveiled just that with the introduction of Oracle SOA12c (12.1.3)  to meet this challenges with unified application integration solution to improve productivity and TCO.

2.    Developer Productivity Enhancements are a Plenty

If there is one thing that developers will LOVE about SOA 12.1.3 is that it provides no shortage of development productivity enhancements. Here are six dozen
  • Major enhancements for developer productivity is providing one Single JDeveloper IDE for developing both OSB and BPEL/Mediator. Oracle has renamed Oracle Services Bus as Service Bus. Single Download for JDeveloper which includes (jdev, web logic server, JavaDB, EM FMW Control).
  • Code Templates is another key feature of 12c, majority of the companies does global SOA implementations and biggest challenge with governance, standards and reusability and this is great enhancement in 12c where SOA COE team create a template for a integration pattern it can be web service to JMS or JMS to File and ask developers to build composites based on the Enterprise code templates.
  • SOA 12c supports  Transformations XQuery and XSLT for BPEL – in earlier versions this was not supported.
  • Integration Debugger is another new feature added to debug in design time to avoid major code issues it can be local or remote debugging.
  • MDS is supported for Service Bus, but only limitation is you can retrieve artifacts from MDS for Service bus but you cannot publish to MDS.
  • Fault Policy Editor GUI to edit the fault policies defined, earlier versions were using XML files.
As everyone understands, time = money when it comes to integrating disparate systems and these enhancements go a long way to making your developers more productive.

3.    Twin Options for Mobile Integration

Oracle provides two different options for mobile integration. First you can use Oracle Servcie Busby exposing REST/JSON services. Or you can use  Oracle Mobile Application Framework (Oracle MAF) which is a hybrid-mobile framework that enables developers to rapidly develop single-source applications and deploy to both the Apple iOS and Google Android platforms. Oracle MAF provides a complete MVC development framework -that leverage Java, HTML5 and JavaScript -with declarative user interface definition, device services integration and built-in security. Oracle MAF maximizes code reuse and results in faster development of compelling mobile applications.


4.    Cloud Integration – Triple SaaS Challenge Met
SAAS (Software as Service) Integration presents 3 key challenges session management, Security, CRUD operations. With an eye toward meeting those needs,  Oracle released Salesforce Cloud Adapter to which is available in both SOA12c or 11g to integrate Oracle E-Business Suite with salesforce.com

5.    Oracle Enterprise Manager

Oracle Enterprise Manager Fusion middleware control (EM FMW Control) provides a comprehensive management solution for Oracle WebLogic Server, Oracle Fusion Middleware, and non-Oracle middleware technology. Oracle FMW Control Unified User Interface helps   performance monitoring, robust diagnostics, configuration management and lifecycle management across middleware software

-    One unified platform to see all the SOA composites end to end, it has multiple domains in the same console like (SOA Infra , Service Bus)
-    Optimize work managers
-    Error Hospital
-    Security management from EM console
-    Modularity by SOA_foundation profile Profiles arranged in decreasing order footprint to reduce the overall footprint of the SOA infrastructure. Reduce overall class loading and overall startup time of the server 
  • SOA CLASSIC ~ SOA Foundation with B2B + BPM Modules
  • SOA FOUNDATION WITH HEALTHCARE ~ SOA Foundation with B2B + Healthcare UI
  • SOA FOUNDATION WITH B2B ~ SOA Foundation Enterprise + B2B
  • SOA FOUNDATION ENTERPRISE ~ SOA Foundation + Full Adapter Set
  • SOA FOUNDATION ~ Orchestration + Mediator + Rules + Partial Adapter set
  • ORCHESTRATION ~ BPEL-Only + HWF + Partial Adapter set
  • BPEL-ONLY  ~ BPEL Components + SOA Common Infrastructure + Partial Adapter set

6.    MFT – Managed File Transfer

A new functionality for Secure File exchange and management with internal and external partners is key part of SOA12c release, although MFT does require additional licensing  and does require  WebLogic server. A key benefit is it supports PGP Encryption and compression functionality. SOA specialists will be pleased to know that they’ll be able to easily integrate MFT with Oracle B2B/ODI/IDM.

7.    ESS – Enterprise Scheduler Service

Oracle Enterprise Scheduler (ESS) provides the ability to run different job types, including: Java, PL/SQL, and binary scripts, distributed across the nodes in an Oracle WebLogic Server cluster. Oracle Enterprise Scheduler runs these jobs securely, with high availability and scalability, with load balancing and provides monitoring and management through Fusion Middleware Control. It supports for job dependencies like sequential and parallel execution of jobs and serialized execution of incompatible jobs. ESS also requires additonial separate license.

8.    Oracle Event Processing (OEP)

Thanks to big data, spatial implementations are growing and enterprises are looking for more in-memory grid and connectivity tools with Big Data tools. OEP provides an open architecture for sourcing, processing, and publishing complex events through the enterprise.
   
9.    Oracle Coherence Adapter

It allows seamless integration with local/remote coherence cache and also allows to support of different operations like (put, get, remove, list, list keys, and remove all)

10.    Oracle LDAP Adapter

New technology adapter added to the stack. Supports Bidi with LDAPv3 and it is quick and easy to integrate with SOA Suite 12c. It also support Microsoft Active directory 2008.

11.    Oracle MSMQ

Integration with Microsoft Message Queueing (MSMQ) is a message infrastructure and a development platform for creating distributed, loosely-coupled messaging applications for the Microsoft Windows operating system

12.    Enhanced UMS Adapter

Oracle SOA 12c offers full sport for  for Email, SMS, IM.

Dec 28, 2013

Create RESTful Service from Java Class

With JDeveloper 12c finally it is possible to create RESTful Services from a Java Class. The implementation is based on Jersey following the Java EE 6 specification JAX-RS. For testing JDeveloper includes a comprehensive Tooling. In general RESTful services are really popular for mobile applications, e.g. ADF Mobile.


Get started
Create a simple Java Class for your business domain object plus a Service Facade that you want to expose as a RESTful Service.
package enpit.sample.adf12c.pojorest.model;

import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Person {
    
    private Long id;
    private String firstname;
    private String lastname;
    private Date hiredate;    
    private Long addressId;
    
    public Person() {
        super();
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getFirstname() {
        return firstname;
    }

    public void setLastname(String lastname) {
        this.lastname = lastname;
    }

    public String getLastname() {
        return lastname;
    }

    public void setHiredate(Date hiredate) {
        this.hiredate = hiredate;
    }

    public Date getHiredate() {
        return hiredate;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }

    public Long getAddressId() {
        return addressId;
    }
}

Make sure to annotate the class with the @XmlRootElement otherwise the REST Service will not work for this domain object.
Next create a simple service facade with some test data, e.g.
package enpit.sample.adf12c.pojorest.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class PersonService 
{     
private List persons;    
 private Person person;    
 public PersonService()
 {        
 super();        
 this.persons = new ArrayList();       
  for (long i = 0; i < 10; i++) 
{           
  Person p = new Person();  
           p.setId(i);            
 p.setFirstname("Firstname " + i);            
 p.setLastname("Last " + i);            
 p.setHiredate(new Date());            
 this.persons.add(p);       
  }         
this.person = this.persons.get(0);    
 }
    public List getPersons()
{      
   return this.persons; 
    }
    public void addPerson(Person person) 
{     
    System.out.println("add person " + person);   
      if(person != null)
{       
      getPersons().add(person);  
       }
     }  
  public Person getPerson()
{      
   return person; 
    }
 }
So far there is nothing special. 
Create RESTful Service with the help of JDeveloper 12c
Now comes the interesting part. Select the PersonService.java in the application navigator and
choose "Create RESTful Service…"
You will get a wizard to specify the RESTful Service interface. Set the desired root path. Choose the desired media types and the Methods you want to expose as REST Service
After finishing the wizard the following happens
package enpit.sample.adf12c.pojorest.model;
import java.util.ArrayList; 
import java.util.Date;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.FormParam; 
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path("rest")
@Produces(value = { "application/json""application/xml" })
@Consumes(value = { "application/json""application/xml" }) 
public class PersonService
 {  
   private List persons;  
   private Person person;   
  public PersonService()
 {      
   super();      
   this.persons = new ArrayList()
{         
for (long i = 0; i < 10; i++)
 {       
      Person p = new Person();    
         p.setId(i);      
       p.setFirstname("Firstname " + i);    
         p.setLastname("Last " + i);     
        p.setHiredate(new Date());    
         this.persons.add(p);   
      }      
   this.person = this.persons.get(0);   
  }
    @GET   
  @Path("/persons")   
  public List getPersons()
{     
    return this.persons;     }
    @POST  
   @Path("/person")     
    public void addPerson(@FormParam("person"Person person)
 {
        System.out.println("add person " + person);    
     if(person != null)
{             getPersons().add(person);         }     } 
     @GET     
@Path("/person")  
   public Person getPerson(){  
       return person;     }
}
- web.xml is created. The Jersey Servlet is configured properly.

 

                                                                                                                                                              
Testing the RESTful Service in JDeveloper 12c
Jdeveloper is quite powerful. It lets you test the RESTful service right in the IDE.
Right-Click on the PersonService.java class and choose Run.
In background WebLogic Server 12c starts and the RESTFul Service gets deployed.
The WADL is kind of WSDL for RESTful Services. Clicking on the "Target Application WADL" URL brings you to the overview of the provided service operations.
You can test each Service Operation right from the IDE. Pressing the "Test" Button brings you to the HTTP Analyzer Screen.
Here you can choose the Method, change HTTP Headers (e.g. what kind of media type you want to accept).
Press "Send Request" to actually test the Service Operation. Make sure to change the view to "HTTP Content" not "WADL Structure" otherwise you want see the pretty formatted output on the right hand side.
Change the Accept-Header to application/json and send the request again. The output automatically will be in JSON format.
The HTTP Analyzer is even so good to parse the POST Parameter to create a good looking form for data entry

Dec 27, 2013

E-Business Suite Plug-in 12.1.0.2 for Enterprise Manager 12c

E-Business Suite Plug-in 12.1.0.2 for Enterprise Manager 12c Now Available

Oracle E-Business Suite Plug-in 12.1.0.2.0 is now available for use with Oracle Enterprise Manager 12c.  Oracle E-Business Suite Plug-in 12.1.0.2 is part of Oracle Enterprise Manager 12 Application Management Suite for Oracle E-Business Suite. This latest plug-in extends EM 12c Cloud Control with E-Business Suite specific system management capabilities and features enhanced change management support.

The Oracle Enterprise Manager 12c Application Management Suite for Oracle E-Business Suite includes:
  • Functionality that was available in the previously-standalone Application Management Pack for Oracle E-Business Suite and Application Change Management Pack for Oracle E-Business Suite
  • Oracle Real User Experience Insight
  • Oracle Configuration & Compliance capabilities 
Licensing information 
A license for Oracle Enterprise Manager 12c Cloud Control is required to use this product. There is an additional licensing cost for the Application Management Suite for Oracle E-Business Suite.  A license for the Application Management Suite includes licenses for the E-Business Suite Plug-in, Oracle Real User Experience Insight, and Oracle Configuration & Compliance products.
This is a Development blog, and we don't have the background to discuss licensing in more detail.  We'd recommend contacting your Oracle account manager for more information about licenses. Updates to product bundling

Features that were previously available in the standalone management packs are now packaged in the Oracle E-Business Suite Plug-in, which is certified with Oracle Enterprise Manager 12c Cloud Control: 
  • Functionality previously available for Application Management Pack (AMP) is now classified as “System Management for Oracle E-Business Suite” within the plug-in.
  • Functionality previously available for Application Change Management Pack (ACMP) is now classified as “Change Management for Oracle E-Business Suite” within the plug-in.
The Application Configuration Console and the Configuration Change Console are now native components of Oracle Enterprise Manager 12c.
EBS Plug-in 12 screenshot
New enhancements in this release
General
  • Support for managing E-Business Suite R12.2 technology stack including monitoring of Web Logic Server services.
  • New ADF pages that allow personalization of System Management home page and E-Business Suite landing page.
  • New landing page displays all available E-Business Suite targets, Compliance summary, least compliant targets, and related Incidents summary.
  • All tabs and links have been moved to drop down menus for easy navigation.
Compliance Framework
  • Integrated with Enterprise Manager Compliance Framework and includes shipped Security Compliance Standards for Oracle E-Business Suite.
Customization Manager
  • Oracle E-Business Suite Release 12.2 Readiness Report: Customization Manager now includes an option to generate the Oracle E-Business Suite Release 12.2 customization readiness report for online patching directly from the UI. Customers who are currently on Oracle E-Business Suite Releases 11i, 12, or 12.1 can run this report to validate if their customizations are ready for Oracle E-Business Suite Releases 12.2 online patching. Customers who are currently on Oracle E-Business Suite Releases 11i, 12.0, or 12.1 can run this report to validate if their customizations are ready for Oracle E-Business Suite Release 12.2 online patching.
  • Auto-correction of invalid custom applications
  • Support for source code branches and tags
  • Option to hide unused custom applications
  • "Create like" feature for file source mapping and Oracle E-Business Suite Mapping
  • Detailed status messages for packages
  • Option to download a consolidated log for package creation
  • New file type to support force upload of seed data LDT files
Patch Manager
  • Simplified Oracle E-Business Suite R12.2 online patching deployment procedures.
  • New Patch Manager Dashboard allows patch management for all releases of Oracle E-Business Suite instances. Patch Manager dashboard provides a consolidated and personalizable view of all patching activities for all Oracle E-Business Suite instances.
  • Customers now can view all the AD worker log files without the need for command line operations.
Setup Manager Installation & Upgrades
  • Customers currently running on Enterprise Manager 12c, can use Self Update to download and install AMP 12.1.0.2.0.
  • All others can download it here:
  • Oracle Software Delivery Cloud
Prerequisites
  • Enterprise Manager Cloud Control 12c
  • One or more of the following Oracle E-Business Suite Releases
    • Release 12.2.2
    • Release 12.1 with R12.ATG_PF.B.delta.3
    • Release 12.0.4 with R12.ATG_PF.A.delta.6
    • Release 11.5.10 CU2 with 11i.ATG_PF.H.RUP6 or higher

Dec 12, 2013

JSP Pre-Compilation in WebLogic Application Server:


Performance is paramount for any production system. A few seconds saved at the bottle neck is few seconds gained in the over all performance of the system. Compilation of JSP at runtime in a production environment can infuse an overhead. Hence it is a best practice to pre compile those JSP in such scenarios.
Precompilation offers below advantages:
Enhances the performance by ensuring pre compilation of all the JSPs before deployment of the application.
The Syntax errors in the sciptlet codes and custom tag elements could be detected at the compile time itself rather when the end user is accessing the application.
In WebLogic Server this can be achieved by weblogic.appc tool.
Weblogic.appc:
It’s an utility that generates and compiles the classes needed to deploy EJBs and JSP to WebLogic Application Server. It provides other features like deployment descriptor validations for standards compliance at both individual module level and the application level.
Syntax:
java weblogic.appc [options] <ear, jar, or war file or directory>

Using weblogic.appc as ant task:
You can incorporate appc in build.xml using an ant task wlappc..
For Ex:
<taskdef name="wlappc" classname="weblogic.ant.taskdefs.j2ee.Appc" classpathref="dev.classpath"/>
<target name="jspc-webapps">
<!-- Pre-compile webapp JSP pages to src/web/WEB-INF/classes -->
<wlappc source="${srcweb}" classpathref="dev.classpath" verbose="true">
</wlappc>
</target>
This would ensure that the appc would scan through the web application at the source location and precompile the JSPs.
Further references:
http://docs.oracle.com/cd/E11035_01/wls100/ejb/appc_ejbc.html

Dec 10, 2013

BPM Human Task to show the Location Map in ADF page




Step 1: Create BPM Application; add an asynchronous BPM process, with User interactive activity.

Figure 1: Asynchronous BPM Process

Step 2: Create a Business Object (AddressBO) base on address.xsd [I am standard US address format - street, city, state and zip]

Figure 2: adress.xsd

Step 3: Create a Data Object (addressDO) base on AddressBO (Business Object)
Step4: Create the human task called it ShowLocationHT, with adressDO in its payload.

Step 5: Now create a generic project under BPM Application. [File > New > All Technologies > Project > Generic Project]

Step 6: Right Click on the Generic Project, Select “New” as show below

Step7: Select “ADF Task Flow base on Human Task (JSF)“.
Tip: search with “human task” to quickly find the item.

Step 8: Select the correct .task file from the BPM Project folder.

Step9: Click on “OK” (go with default settings), Let Jdeveloper to create the required component for you.
Step10: Open default activity within the task flow (one with green background).

Step 11: Enter file Name and click on “OK” button. It will create an empty jspx file.


























Step 12: Under data control navigator, you should be able to see a data control with _.
Expand the data control as show below.

Step 13: Drag and drop “Task” into the empty page. Select Human Task> Complete Task with Payload as shown below.
Click on “OK” twice; wait for JDeveloper to create all the components of Human task.

Step 14: JDeveloper will create all required component for the Human task along with its payload.

Step 15: Before adding map component to the human task, Go to the Project Properties of the ADF task flow project and select Project Properties as shown below.
[ADF task flow Project >Project properties]


Step 16: Select “JSP Tag Libraries” tab,
Click on “Add” to add “ADF Data Visualization 1.1” libraries.

Step 17: From the data control navigator drag and drop Address object into jspx page where you want to show the map.
Select getTaskDetails()>Return>Task>Payload > Address >
Geographic Map > Map and Point Theme. As shown below.

Step 18: In Create Geographic Map wizard, click on the green plus to add Map Configuration.

Step 19: Add MapViewer and Geocoder URL by clicking green plus icon against each field.

Step 20: Add MapViewer URL, click on Test Connection to test the connectivity.
MapViewer URL: http://elocation.oracle.com/mapviewer


Step 21: Add Geocoder URL, click on Test Connection to test the connectivity.
[Geocoder URL: http://elocation.oracle.com/geocoder/gcserver%5D


Step 22: Select MapViewer URL and Geocoder URL and click OK.

Step 23: If you configuration is correct you should be able to see the world map. Like the one you see below.

Step 24: Select US (street,city,state,zip) from the drop down menu.

Step 25: Map street, city, state, zip values as shown below.

Step 25: Once DVT map component is added, open property inspector to change its property.
Under Appearance tab
  • Set map Theme_Id for AutoZoomThemeId.
  • Set StartingX and StartingY values.
  • Set MapZoon to 14 (street level zooming).


Under Other tab
  • Set AutoZoomStrategy to CENTERALZOOMLEVEL.
  • Provide Summary value [any string value will do].

Step 26: deploy the BPM process.
Step 27: Make sure you DON’T select the ADF project along with your BPM project while deploying BPM project.
[DON'T check any of the following checkboxes.]

Step 28: Wait for BPM process to deploy

Step 29: Right Click on Application, Select Deploy > [ADF project name]

Step 30: Select “Deploy to Application Server” as shown below.

Step 31: Select right Application Server.

Step 32: Select soa_server1, from the list of Standalone Server and Clusters.

Step 32: Click “finish“.

Step 33: Click “Deploy“.

Step 34: for open process in em console, click on “Test” button.


Step 35: Provide a valid US address then Click on “Test Webservice“.

Step 36: Login into BPM workspace, click on the work item to view the address on DVT geographic map embedded on a human task.