Wednesday, December 29, 2010

Oracle SOA Suite 11g Skip activites by checking conditions

There might be scenarios where a user may want to skip certain activities based on certain conditions.Eg:- A user may want to skip the assign activity in case a value is already coming for a particular variable.In 10g this was done by using switch block.But in SOA Suite 11g the activities are coming with Skip condition.Almost all activites like assign,transform,invoke,receive etc has a skip condition block where a expression can be built to check for condition for which that activity should be skipped.

Tuesday, November 30, 2010

JDeveloper 11g Audit Project Code

Oracle JDeveloper 11g provides a functionality to audit the code and generate a report for the audit.All you have to do is select the project for which you want to generate the report. I have created a project Test Move file. I select that project in the Application Navigator.



Than go to the Build option in menu and select audit project name.jpr



A report will be generated with all the warnings errors and advisory for the project.
To export the content click on the export button.
You will get various options to export the file.
 I choose the audit-text and got a file like as shown below

Similarly it can be done for adf applications and application level.

Tuesday, November 16, 2010

SOA Suite 11g Edit DVM and Business Rules at runtime using console

Oracle SOA Suite 10g had the features of modifying Domain Value Maps(DVM) at runtime using the ESB Console and Business Rules using the rules author console.But first release of 11g did not provide such features and dvms could be updated only from IDE and same with business rules.But with the release of  SOA Suite 11.1.1.3  its not possible to modify DVM and business rules using composer. The link to access composer is
http://hostname:port/soa/composer.

The way to check for composer is to go to the Weblogic console using http://hostname:port/console and see the deployments section and check for composer Enterprise application.
   Click on soa/composer and than go to Testing tab
Log in to the soa composer using the above links
Enter the username and password.

Wednesday, November 10, 2010

Validate XML with XSD in JDeveloper 11g

If you have a xml and want to validate against in xsd it can be done in Jdeveloper 11g.

Suppose you have a simple xml as below

and the corresponding xsd for it is as follow and you want to validate it
Just Right Click on the XML file in Jdeveloper you will get Validate XML option in the menu.

Click on Validate XML and you will get the results.
Please note the targetnamespace should be their and same for both xsd and xml  and also xsd location should be mentioned in xml file.Like in my case i kept the xsd and xml in same project and xsd was under folder name xsd so in xml file it is reflected as

 xsi:schemaLocation="http://xmlns.oracle.com/TestSOA_jws/Test2/BPELProcess1 xsd/BPELProcess1.xsd"







Monday, November 8, 2010

Oracle Webcenter 11g Unable to load content in a frame. Frame content will load at the top level.

When we add a jspx page to the Oracle Webcenter 11g we get the above mentioned error.



This problem can be resolved by adding the following  context-param in web.xml
    oracle.adf.view.rich.security.FRAME_BUSTING and param-value as never


    Redeploy the code and the error will be gone.





    Add a WebPage to Webcenter Spaces 11g

    To add a webpage(like jspx) to a WebCenter User Account.Log in to Webcenter 11g.

    1. Go to Personal Space.On the right side click on the page options and select create page
    2. Then select the option Web Page
    3. Click on edit button as shown by oval in red
    4. Add the web url.
       


    Thursday, October 28, 2010

    How to install subversion

    Subversion is a open source tool which can be used for maintaining versioning of components.Subversion can now be directly integrated with Oracle Jdeveloper 11g and can be used for maintaining versioning of composites as well as adf projects.The most simple and easy installation for subversion is available by collabNet.Please follow the link below for the subverion installation.

    http://www.open.collab.net/downloads/subversion