Validate Time using API.

Hi,
I want to validate the time hh:mm:ss using a API.
I tried using [common validator |http://commons.apache.org/validator/api-1.3.0/org/apache/commons/validator/routines/TimeValidator.html] apache API.
This API returns null if the passed time is invalid.
The problem I am facing here is it is returning null if the time is more than 13:00:00 i.e it is accepting the time passed as valid only if the value is between 00:00:00 and 12:59:59.
I am using the following code for time validation.
import org.apache.commons.validator.routines.TimeValidator;
TimeValidator tv = new TimeValidator();
if( tv.validate("12:59:59","hh:mm:ss") == null)
     errstatus = "1";
     msg = msg + "Invalid Time in Header\n";
Help me in validating the time for 24hrs.
There is a constructor TimeValidator(boolean strict, int timeStyle).
I guess the object should be creted with this constructor to set the time format to 24 hours.
Help me with the value that needs to be passed to the parameter timeStyle.
Thanks
SaNv...

.validate returns Date object. Rather, use TimeValidator.isValid as follows - (Also,note HH instead of hh)
import org.apache.commons.validator.routines.TimeValidator;
TimeValidator tv = new TimeValidator();
if(! tv.isValid("12:59:59","HH:mm:ss"))
errstatus = "1";
msg = msg + "Invalid Time in Header\n";
}

Similar Messages

  • Questions about Using APIs to import Bills and Routings - AND COSTS

    Hi Forum - the following is a back-and-forth with a customer about use of APIs - Inventory developer suggested I post the question here. Note the 2nd question - and thanks for any assistance.
    SR# 7332152.994 ALCOA
    Instructions given to ct:
    Q1 - Can I load the bill header and components at the same time?
    You should be able to load the bill header and components at the same time. Customer loads bill and component data inserting enough "other" data for each so that the bill sequence id will be derived. For the component record, the assembly item, org and alternate_bom_designator values will be used by BMCOIN to derive the bill_sequence_id.
    Example:
    INSERT INTO BOM_BILL_OF_MTLS_INTERFACE
    ORGANIZATION_CODE,
    ITEM_NUMBER,
    ALTERNATE_BOM_DESIGNATOR,
    PROCESS_FLAG,
    TRANSACTION_TYPE
    VALUES
    'M1',
    '&PARENT_ITEM',
    NULL,
    '1',
    'CREATE'
    INSERT INTO BOM_INVENTORY_COMPS_INTERFACE b
    ORGANIZATION_CODE,
    ASSEMBLY_ITEM_NUMBER,
    ALTERNATE_BOM_DESIGNATOR,
    COMPONENT_ITEM_NUMBER,
    OPERATION_SEQ_NUM,
    COMPONENT_QUANTITY,
    EFFECTIVITY_DATE,
    PROCESS_FLAG,
    TRANSACTION_TYPE
    VALUES
    'M1',
    '&PARENT_ITEM',
    NULL,
    '&COMPONENT_ITEM',
    1,
    1,
    trunc(SYSDATE),
    1,
    'CREATE'
    Hi Aruna, some additional information that may be useful:
    We can load/create the bill header and components at the same time using the scripts given (as above)
    Required Data for Creating a Routing : assembly_item_id,
    organization_id, routing_type, transaction_type, process_flag
    And following scripts can be used to load routing header and operations equences.
    INSERT INTO BOM_OP_ROUTINGS_INTERFACE
    (assembly_item_id,
    organization_id,
    routing_type,
    transaction_type,
    process_flag)
    VALUES (2255800,207,1,'Create',1);
    INSERT INTO BOM_OP_SEQUENCES_INTERFACE
    (assembly_item_id,
    organization_id,
    operation_seq_num,
    Department_code,
    effectivity_date,
    transaction_type,
    process_flag,
    operation_description)
    VALUES
    (2255800,207,100,'ASSEMBLY',
    to_date('24-FEB-2009'),'Create',1,
    'Paint Wagon');
    Q2: One more question, can an expense item can be added to the bill and can contribute the cost.
    As there is a confusion of what I asked, below I am rephrasing my question
    By an Expense Inventory Item, I mean an item that is just tracked for quantity only i.e.,Checking the attributes - Inventory Item, Stockable, Transactable under Inventory Tab and not checking the attribute - 'Inventory Asset Value'.
    My question here is, For these Expense Inventory Items, What is the difference between having the 'Costing enabled' attribute turned ON as opposed to having it UNCHECKED
    *Q3 I have tried to load the items and I could only load 1st level of components but could not load second level of bom at the same time.
    While inserting I have inserted plan level too.
    Please let me know if I have to do anything different to load second level.*
    Thanks
    James

    You may want to look at using the more4apps bill of materials wizard, an excel based solution for uploading assemblies and their components.

  • Trying to create Organization in OIM 11g R2 using API

    Hi All,
    I am trying to create Organization in OIM 11g R2 using API's. I able to create a organization with attributes Organization Name and Organization Customer Type but when i am trying to add Parent Organization Name it is throwing me the following error
    Caused by: oracle.iam.platform.entitymgr.UnknownAttributeException: Organization : [Parent Organization Name]
    any help in this regard will be helpful....
    Thanks

    Yes i do have the org with act_key 27
    I have done that changes...still it is throwing the same error
    Exception in thread "main" oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_1036_WLStub.createx(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy2.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManagerDelegate.create(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.security.Security.runAs(Security.java:41)
         at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
         at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
         at $Proxy3.create(Unknown Source)
         at oracle.iam.ui.custom.Class1.main(Class1.java:108)
    Caused by: oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:318)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy333.create(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManagerEJB.createx(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy331.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.createx(Unknown Source)
         at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.iam.platform.kernel.ValidationFailedException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
         at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:337)
         at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:372)
         at oracle.iam.identity.utils.Utils.checkAllowedAttributes(Utils.java:2523)
         at oracle.iam.identity.orgmgmt.impl.handlers.create.CreateOrganizationValidationHandler.validate(CreateOrganizationValidationHandler.java:102)
         at oracle.iam.platform.kernel.impl.OrchProcessData.validate(OrchProcessData.java:258)
         at oracle.iam.platform.kernel.impl.OrchProcessData.runValidationEvents(OrchProcessData.java:203)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.validate(OrchestrationEngineImpl.java:699)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:547)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:485)
         at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:403)
         at sun.reflect.GeneratedMethodAccessor1171.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy251.orchestrate(Unknown Source)
         at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:306)
         ... 46 more

  • Barcode using api

    Hi,
    I'm trying to solve problem with showing barcodes when generating html or pdf documents using api. I have function in db which generates barcodes 128b with correct start, control and stop chars, I've tested it notepad, using font AdvC128b, printed, scanned and everything is correct. The problem is obviously in word template in which I add field like <?BARCODE?> and set font for the field AdvC128b upload template to bi publisher. Using api I generate html and I do get barcode on page but it's not correct it cannot be scanned, on view source I can see that it creates page like this:
    .c0 {line-height: 27.744pt;margin-top: 0.0pt;margin-bottom: 0.0pt;margin-left: 6.35pt;margin-right: 6.049pt;}
    .c1 {font-family: 'AdvC128b';font-size: 24.0pt;color: #000000;}
    <p class="c0"><span class="c1">Ě90902qÎ </span><a name="page-total-master0" id="page-total-master0"></a><a name="page-total" id="page-total"></a></p>In pdf document I cannot see barcode I can only see Ě90902qÎ Do I need to put some fonts in my java runtime like I did put Albany fonts for special characters?
    This is quite urgent, what are my options? What needs to be done to show correct barcodes in html and pdf documents using api and word templates,
    any suggestions are more than welcome,
    thanks in advance,
    Tomislav.

    this is my config
    <?xml version="1.0" encoding="UTF-8"?>
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/"><!-- Properties -->
    <properties>
    <!-- System level properties    -->
    <property name="system-temp-dir">c:\tmp</property>
    <!-- PDF compression
    <property name="pdf-compression">true</property>     -->
    <!-- PDF Security
    <property name="pdf-security">true</property>
    <property name="pdf-open-password">user</property>
    <property name="pdf-permissions-password">owner</property>
    <property name="pdf-no-printing">true</property>
    <property name="pdf-no-changing-the-document">true</property>     -->
    </properties>
    <!-- Font setting -->
    <fonts>
    <!-- Font setting (for FO to PDF etc...) -->
    <font family="Arial" style="normal" weight="normal">
    <truetype path="/fonts/Arial.ttf"/>
    </font>
    <font family="Default" style="normal" weight="normal">
    <truetype path="/fonts/ALBANWTJ.ttf"/>
    </font>
    <font family="advc128b" style="normal" weight="normal">
    <truetype path="C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf"/>
    </font>
    <!--Font substitute setting (for PDFForm filling etc...) -->
    <font-substitute name="MSGothic">
    <truetype path="/fonts/msgothic.ttc" ttcno="0"/>
    </font-substitute>
    </fonts>
    </config>and this is my complete log, sorry for posting it whole but I think it will be more useful to you:
    [100609_074839647][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [100609_074839648][][STATEMENT] Logger.init(): LogDir=C:/tmp
    [100609_074839891][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
    [100609_074839892][][STATEMENT] XDO version   = Oracle BI Publisher 10.1.3.4.1
    [100609_074839892][][STATEMENT] java.home     = C:\Program Files\Java\jre1.6.0_06
    [100609_074839892][][STATEMENT] XDO_TOP       = null
    [100609_074839893][][STATEMENT] Config Path   = null
    [100609_074839893][][STATEMENT] Debug Cfg Path= C:\Program Files\Java\jre1.6.0_06\lib\xdodebug.cfg
    [100609_074839893][][STATEMENT] Font dir      = C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\
    [100609_074839894][][STATEMENT] Locale        = en-us
    [100609_074839894][][STATEMENT] Fallback font = truetype./fonts/ALBANWTJ.ttf
    [100609_074839894][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
    [100609_074839896][][STATEMENT] digit-substitution=null(not set)
    [100609_074839896][][STATEMENT] font.ADVC128B.normal.normal=truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf
    [100609_074839898][][STATEMENT] font.ALBANY WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074839899][][STATEMENT] font.ALBANY WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTK.ttf
    [100609_074839899][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTS.ttf
    [100609_074839899][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTT.ttf
    [100609_074839900][][STATEMENT] font.ALBANY WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANYWT.ttf
    [100609_074839900][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJB.ttf
    [100609_074839901][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJ.ttf
    [100609_074839901][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOKB.ttf
    [100609_074839901][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOK.ttf
    [100609_074839902][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSCB.ttf
    [100609_074839902][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSC.ttf
    [100609_074839903][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTCB.ttf
    [100609_074839903][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTC.ttf
    [100609_074839903][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOB.ttf
    [100609_074839904][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUO.ttf
    [100609_074839904][][STATEMENT] font.ARIAL.normal.normal=truetype./fonts/Arial.ttf
    [100609_074839904][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074839905][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
    [100609_074839905][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
    [100609_074839905][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
    [100609_074839906][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
    [100609_074839906][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
    [100609_074839906][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
    [100609_074839907][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
    [100609_074839907][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
    [100609_074839907][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
    [100609_074839908][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
    [100609_074839908][][STATEMENT] font.COURIER.normal.normal=type1.Courier
    [100609_074839908][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
    [100609_074839909][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
    [100609_074839909][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
    [100609_074839909][][STATEMENT] font.DEFAULT.normal.normal=truetype./fonts/ALBANWTJ.ttf
    [100609_074839910][][STATEMENT] font.GLFALLBACK.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074839910][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
    [100609_074839910][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
    [100609_074839910][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
    [100609_074839911][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
    [100609_074839911][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
    [100609_074839911][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
    [100609_074839912][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
    [100609_074839912][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
    [100609_074839912][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
    [100609_074839913][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
    [100609_074839913][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
    [100609_074839913][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
    [100609_074839914][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
    [100609_074839914][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
    [100609_074839914][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
    [100609_074839915][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
    [100609_074839915][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
    [100609_074839915][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
    [100609_074839916][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
    [100609_074839916][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
    [100609_074839916][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
    [100609_074839917][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074839917][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
    [100609_074839917][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
    [100609_074839918][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
    [100609_074839918][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
    [100609_074839918][][STATEMENT] pdf-changes-allowed=0
    [100609_074839919][][STATEMENT] pdf-compression=true
    [100609_074839919][][STATEMENT] pdf-enable-accessibility=true
    [100609_074839920][][STATEMENT] pdf-enable-copying=false
    [100609_074839920][][STATEMENT] pdf-encryption-level=0
    [100609_074839920][][STATEMENT] pdf-font-embedding=true
    [100609_074839920][][STATEMENT] pdf-hide-menubar=false
    [100609_074839921][][STATEMENT] pdf-hide-toolbar=false
    [100609_074839921][][STATEMENT] pdf-no-accff=false
    [100609_074839922][][STATEMENT] pdf-no-cceda=false
    [100609_074839922][][STATEMENT] pdf-no-changing-the-document=false
    [100609_074839923][][STATEMENT] pdf-no-printing=false
    [100609_074839923][][STATEMENT] pdf-open-password=
    [100609_074839923][][STATEMENT] pdf-permissions=0
    [100609_074839924][][STATEMENT] pdf-permissions-password=
    [100609_074839924][][STATEMENT] pdf-printing-allowed=0
    [100609_074839925][][STATEMENT] pdf-replace-smartquotes=true
    [100609_074839925][][STATEMENT] pdf-security=false
    [100609_074839926][][STATEMENT] ------------------------------------------------------
    [100609_074840004][oracle.apps.xdo.template.rtf.field.RTFFieldResult][STATEMENT] stylename=Normal
    [100609_074840030][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open TrueType font: /fonts/ALBANWTJ.ttf(0)
    [100609_074840031][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open Type3 font (SVG embedded): null
    [100609_074840031][][EXCEPTION] Default.normal.normal is invalid. Set it to Helvetica
    [100609_074840033][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf(0)
    [100609_074840034][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf(0)
    [100609_074840041][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] Type1 font created: Helvetica
    [100609_074840047][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840048][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840049][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840052][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840052][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840058][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840059][oracle.apps.xdo.template.rtf.RTFParagraph][STATEMENT] stylename=Normal
    [100609_074840070][oracle.apps.xdo.template.rtf.RTF2XSLParser][STATEMENT] Time spent: 185
    [100609_074840072][oracle.apps.xdo.common.font.FontFactory][STATEMENT] type1.Helvetica closed.
    [100609_074840072][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf closed.
    [100609_074840073][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf closed.
    [100609_074840097][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [100609_074840097][][STATEMENT] Logger.init(): LogDir=C:/tmp
    [100609_074840098][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor constructor is called.
    [100609_074840174][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor has been initialized without default config.
    [100609_074840174][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setData(String) is called with 'C:\Users\RIFnet\Downloads\04_Ispis_prijevoznog_lista.xml'.
    [100609_074840176][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
    [100609_074840176][][STATEMENT] Logger.init(): LogDir=C:/tmp
    [100609_074840176][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_data_11.xml' is created.
    [100609_074840178][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setTemplate(String) is called with 'C:\Users\RIFnet\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\tmp.xsl'.
    [100609_074840180][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_data_12.xsl' is created.
    [100609_074840182][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutput(String)is called with 'C:\Users\RIFnet\AppData\Local\Oracle\BIPublisher\TemplateBuilderforWord\tmp\581254851319596out.pdf'.
    [100609_074840208][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_out3.out' is created.
    [100609_074840209][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setLocale is called with 'en-us'.
    [100609_074840209][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutputFormat(byte)is called with ID=1.
    [100609_074840210][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setConfig(String) is called with 'C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdo.cfg'.
    [100609_074840212][oracle.apps.xdo.template.FOProcessor][STATEMENT] Start Memory: max=254MB, total=6MB, free=1MB
    [100609_074840212][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.generate() called.
    [100609_074840216][oracle.apps.xdo.template.FOProcessor][STATEMENT] createFO(Object, Object) is called.
    [100609_074840409][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] Oracle XML Developers Kit 10.1.0.5.0 - Production
    [100609_074840410][oracle.apps.xdo.common.xml.XSLT10gR1][STATEMENT] Scalable Feature Disabled
    [100609_074840590][oracle.apps.xdo.template.FOProcessor][STATEMENT]    Log file 'xdo_100609_074840176_fo_fo_14.fo' is created.
    [100609_074840592][][STATEMENT] XSL-T time used: 329
    [100609_074840592][oracle.apps.xdo.template.fo.FOProcessingEngine][STATEMENT] Using proxy for PDF Generator
    [100609_074840598][oracle.apps.xdo.template.FOProcessor][STATEMENT] Calling FOProcessingEngine.process()
    [100609_074840599][][STATEMENT] Using optimized xslt
    [100609_074840614][][STATEMENT] [ PDF GENERATOR ]---------------------------------------------
    [100609_074840615][][STATEMENT] XDO version   = Oracle BI Publisher 10.1.3.4.1
    [100609_074840615][][STATEMENT] java.home     = C:\Program Files\Java\jre1.6.0_06
    [100609_074840615][][STATEMENT] XDO_TOP       = null
    [100609_074840615][][STATEMENT] Config Path   = null
    [100609_074840616][][STATEMENT] Debug Cfg Path= C:\Program Files\Java\jre1.6.0_06\lib\xdodebug.cfg
    [100609_074840616][][STATEMENT] Font dir      = C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\
    [100609_074840616][][STATEMENT] Locale        = en-us
    [100609_074840616][][STATEMENT] Fallback font = truetype./fonts/ALBANWTJ.ttf
    [100609_074840617][][STATEMENT] [ PDF GENERATOR PROPERTIES ]----------------------------------
    [100609_074840618][][STATEMENT] digit-substitution=null(not set)
    [100609_074840620][][STATEMENT] font.ADVC128B.normal.normal=truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf
    [100609_074840620][][STATEMENT] font.ALBANY WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074840620][][STATEMENT] font.ALBANY WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTK.ttf
    [100609_074840621][][STATEMENT] font.ALBANY WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTS.ttf
    [100609_074840621][][STATEMENT] font.ALBANY WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTT.ttf
    [100609_074840621][][STATEMENT] font.ALBANY WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANYWT.ttf
    [100609_074840622][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJB.ttf
    [100609_074840622][][STATEMENT] font.ANDALE DUOSPACE WT J.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOJ.ttf
    [100609_074840622][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOKB.ttf
    [100609_074840623][][STATEMENT] font.ANDALE DUOSPACE WT K.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOK.ttf
    [100609_074840623][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSCB.ttf
    [100609_074840623][][STATEMENT] font.ANDALE DUOSPACE WT SC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOSC.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTCB.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT TC.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOTC.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT.normal.bold=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUOB.ttf
    [100609_074840624][][STATEMENT] font.ANDALE DUOSPACE WT.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ADUO.ttf
    [100609_074840625][][STATEMENT] font.ARIAL.normal.normal=truetype./fonts/Arial.ttf
    [100609_074840625][][STATEMENT] font.CG TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074840625][][STATEMENT] font.CG TIMES.italic.normal=type1.Times-Italic
    [100609_074840625][][STATEMENT] font.CG TIMES.normal.bold=type1.Times-Bold
    [100609_074840626][][STATEMENT] font.CG TIMES.normal.normal=type1.Times-Roman
    [100609_074840626][][STATEMENT] font.COURIER NEW.italic.bold=type1.Courier-BoldOblique
    [100609_074840626][][STATEMENT] font.COURIER NEW.italic.normal=type1.Courier-Oblique
    [100609_074840627][][STATEMENT] font.COURIER NEW.normal.bold=type1.Courier-Bold
    [100609_074840627][][STATEMENT] font.COURIER NEW.normal.normal=type1.Courier
    [100609_074840627][][STATEMENT] font.COURIER.italic.bold=type1.Courier-BoldOblique
    [100609_074840627][][STATEMENT] font.COURIER.italic.normal=type1.Courier-Oblique
    [100609_074840628][][STATEMENT] font.COURIER.normal.bold=type1.Courier-Bold
    [100609_074840628][][STATEMENT] font.COURIER.normal.normal=type1.Courier
    [100609_074840628][][STATEMENT] font.DEFAULT.italic.bold=type1.Helvetica-BoldOblique
    [100609_074840629][][STATEMENT] font.DEFAULT.italic.normal=type1.Helvetica-Oblique
    [100609_074840629][][STATEMENT] font.DEFAULT.normal.bold=type1.Helvetica-Bold
    [100609_074840629][][STATEMENT] font.DEFAULT.normal.normal=truetype./fonts/ALBANWTJ.ttf
    [100609_074840629][][STATEMENT] font.GLFALLBACK.normal.normal=truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf
    [100609_074840630][][STATEMENT] font.HELVETICA.italic.bold=type1.Helvetica-BoldOblique
    [100609_074840630][][STATEMENT] font.HELVETICA.italic.normal=type1.Helvetica-Oblique
    [100609_074840630][][STATEMENT] font.HELVETICA.normal.bold=type1.Helvetica-Bold
    [100609_074840631][][STATEMENT] font.HELVETICA.normal.normal=type1.Helvetica
    [100609_074840631][][STATEMENT] font.MONOSPACE.italic.bold=type1.Courier-BoldOblique
    [100609_074840631][][STATEMENT] font.MONOSPACE.italic.normal=type1.Courier-Oblique
    [100609_074840631][][STATEMENT] font.MONOSPACE.normal.bold=type1.Courier-Bold
    [100609_074840632][][STATEMENT] font.MONOSPACE.normal.normal=type1.Courier
    [100609_074840632][][STATEMENT] font.SANS-SERIF.italic.bold=type1.Helvetica-BoldOblique
    [100609_074840633][][STATEMENT] font.SANS-SERIF.italic.normal=type1.Helvetica-Oblique
    [100609_074840633][][STATEMENT] font.SANS-SERIF.normal.bold=type1.Helvetica-Bold
    [100609_074840633][][STATEMENT] font.SANS-SERIF.normal.normal=type1.Helvetica
    [100609_074840634][][STATEMENT] font.SERIF.italic.bold=type1.Times-BoldItalic
    [100609_074840634][][STATEMENT] font.SERIF.italic.normal=type1.Times-Italic
    [100609_074840635][][STATEMENT] font.SERIF.normal.bold=type1.Times-Bold
    [100609_074840635][][STATEMENT] font.SERIF.normal.normal=type1.Times-Roman
    [100609_074840635][][STATEMENT] font.SYMBOL.normal.normal=type1.Symbol
    [100609_074840636][][STATEMENT] font.TIMES NEW ROMAN.italic.bold=type1.Times-BoldItalic
    [100609_074840636][][STATEMENT] font.TIMES NEW ROMAN.italic.normal=type1.Times-Italic
    [100609_074840636][][STATEMENT] font.TIMES NEW ROMAN.normal.bold=type1.Times-Bold
    [100609_074840637][][STATEMENT] font.TIMES NEW ROMAN.normal.normal=type1.Times-Roman
    [100609_074840637][][STATEMENT] font.TIMES.italic.bold=type1.Times-BoldItalic
    [100609_074840637][][STATEMENT] font.TIMES.italic.normal=type1.Times-Italic
    [100609_074840638][][STATEMENT] font.TIMES.normal.bold=type1.Times-Bold
    [100609_074840638][][STATEMENT] font.TIMES.normal.normal=type1.Times-Roman
    [100609_074840639][][STATEMENT] font.ZAPFDINGBATS.normal.normal=type1.ZapfDingbats
    [100609_074840639][][STATEMENT] pdf-changes-allowed=0
    [100609_074840639][][STATEMENT] pdf-compression=true
    [100609_074840640][][STATEMENT] pdf-enable-accessibility=true
    [100609_074840640][][STATEMENT] pdf-enable-copying=false
    [100609_074840640][][STATEMENT] pdf-encryption-level=0
    [100609_074840641][][STATEMENT] pdf-font-embedding=true
    [100609_074840641][][STATEMENT] pdf-hide-menubar=false
    [100609_074840642][][STATEMENT] pdf-hide-toolbar=false
    [100609_074840642][][STATEMENT] pdf-no-accff=false
    [100609_074840642][][STATEMENT] pdf-no-cceda=false
    [100609_074840643][][STATEMENT] pdf-no-changing-the-document=false
    [100609_074840643][][STATEMENT] pdf-no-printing=false
    [100609_074840643][][STATEMENT] pdf-open-password=
    [100609_074840643][][STATEMENT] pdf-permissions=0
    [100609_074840644][][STATEMENT] pdf-permissions-password=
    [100609_074840644][][STATEMENT] pdf-printing-allowed=0
    [100609_074840645][][STATEMENT] pdf-replace-smartquotes=true
    [100609_074840645][][STATEMENT] pdf-security=false
    [100609_074840645][][STATEMENT] ------------------------------------------------------
    [100609_074840672][][STATEMENT]  Rendering page [1]
    [100609_074840679][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open TrueType font: /fonts/ALBANWTJ.ttf(0)
    [100609_074840680][oracle.apps.xdo.common.font.FontFactory$FontDef][ERROR] Failed to open Type3 font (SVG embedded): null
    [100609_074840680][][EXCEPTION] Default.normal.normal is invalid. Set it to Helvetica
    [100609_074840681][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf(0)
    [100609_074840681][oracle.apps.xdo.common.font.FontFactory$FontDef][STATEMENT] TrueType font created: C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf(0)
    [100609_074840692][][STATEMENT] Phase2 time used: 42ms
    [100609_074840692][][STATEMENT]  Continue rendering page [1]
    [100609_074840693][][STATEMENT]  Generating page [1]
    [100609_074840703][][STATEMENT] Phase2 time used: 11ms
    [100609_074840704][][STATEMENT] Total time used: 102ms for processing XSL-FO
    [100609_074840719][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts\ALBANWTJ.ttf closed.
    [100609_074840719][oracle.apps.xdo.common.font.FontFactory][STATEMENT] truetype.C:\Program Files\Java\jre1.6.0_06\lib\fonts\advc128b.ttf closed.
    [100609_074840720][][STATEMENT] FO+Gen time used: 121 msecs
    [100609_074840720][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) is called.
    [100609_074840721][oracle.apps.xdo.template.FOProcessor][STATEMENT] clearInputs(Object) done. All inputs are cleared.
    [100609_074840723][oracle.apps.xdo.template.FOProcessor][STATEMENT] End Memory: max=254MB, total=7MB, free=0MB

  • Generate or Modify Interfaces using API?

    We will be distributing pre-configuered ODI packages along with our product which maps our OLTP schema to a typical reporting target schema. Requirement is to tweak the interfaces as the customer may want a subset of target tables or only few columns from certain target tables. we would like to have this done using API rather than using designer interface... Is there a way to achieve this?

    Hi,
    I believe that you didn't understand my point...
    Yes, at development time the snp_col_pop will work but it won't work after a scenario be generated and worse, this solution only works to a Development Work Repository (DWR).
    Don't you plan to have a production with a Execution Work Repository (EWR) on it? If yes, how will you manage this once there is no such table like snp_col_pop in a EWR?
    From my point of view, unless I'm really missing something about the process, the problem still persists once you can't generate scenario that read the excel file and then make your interface dynamic.
    And worse, you're updating the DWR in execution time... that is very dangerous.
    But if works for you... good luck! :)
    Cezar Santos
    http://odiexperts.com
    Edited by: Cezar Santos - www.odiexperts.com on 12/04/2010 01:30

  • Using API mbean for HTTP Logging - WebServerLogMBean

    I have been trying to configure http logging using API MBEANS. For some reason, the values are not being passed along.
    I am using WLST to call a .py to configure the values. For the general logging, it works without issue.
    Also, along the same format, how can logging be adjusted for the admin logs.
    Version WL: 10
    ****SCRIPT*****
    import weblogic.management.configuration.LogMBean as LogMBean
    import weblogic.management.configuration.WebServerLogMBean as WebServerLogMBean
    # This section creates the Log MBean and configures it for log rotation.
    create(managedServerName, 'Log')
    cd('Log/' + managedServerName)
    cmo.setRotationType(LogMBean.TIME)
    cmo.setFileName('logs/' + managedServerName + '.log')
    cmo.setFileCount(25)
    # This section creates the WebServer Log MBean and configures it for log rotation. HTTP LOGGING
    cmo.setRotationType(WebServerLogMBean.TIME)
    cmo.setFileCount(15)
    cmo.setLogFileFormat(extend)
    cmo.setELFFields("c-ip date time cs-method cs-uri sc-status bytes time-taken")
    *****END OF SCRIPT*****
    Any help is appreciated.
    Edited by woodalla at 06/09/2008 11:25 AM

    Can you provide more info on what the problem is? What do you mean by
    the values are not being passed along?
    Andrew Woodall wrote:
    I have been trying to configure http logging using API MBEANS. For some reason, the values are not being passed along.
    I am using WLST to call a .py to configure the values. For the general logging, it works without issue.
    Also, along the same format, how can logging be adjusted for the admin logs..
    Version WL: 10
    ****SCRIPT*****
    import weblogic.management.configuration.LogMBean as LogMBean
    import weblogic.management.configuration.WebServerLogMBean as WebServerLogMBean
    # This section creates the Log MBean and configures it for log rotation.
    create(managedServerName, 'Log')
    cd('Log/' + managedServerName)
    cmo.setRotationType(LogMBean.TIME)
    cmo.setFileName('logs/' + managedServerName + '.log')
    cmo.setFileCount(25)
    # This section creates the WebServer Log MBean and configures it for log rotation. HTTP LOGGING
    cmo.setRotationType(WebServerLogMBean.TIME)
    cmo.setFileCount(15)
    cmo.setLogFileFormat(extend)
    cmo.setELFFields("c-ip date time cs-method cs-uri sc-status bytes time-taken")
    *****END OF SCRIPT*****
    Any help is appreciated.
    Edited by woodalla at 06/09/2008 11:25 AM

  • Delete future changes in person Screen using API

    Hi all,
    I am working on converting Contingent worker into an Employee using API. (Steps : terminate CWK API -> hire_into_job API)
    In that, If any future changes exists in person screen for a contingent worker then its not allowing me to terminate that person.My client requirement is to remove future changes if exists and convert as an Employee.
    I am not able to find the correct API to delete the future changes in person screen. I have checked the hr_person_api.delete_person but in API description, they mentioned it is to purge the person totally from database.
    Please help me on this.
    Thanks in Advance.
    Regards,
    Mani

    Sorry mate, cant find any.
    Bad that there isn't a public API for the same.
    Not checked the code in PERWSHRG.fmb.
    But how many people would have future changes ? Are there 10s of 100s ?
    may be you can -
    # If you just have simple changes in the future(i.e. no person_type changes which effect Periods of service etc..), you can simply delete the future changes and move the end-date of the penultimate record to end-of-time(31-Dec-4172). Just be sure this wont effect any others child tables(assignments, per_periods_of_service, per_person_type_usages_f etc..)
    Cheers,
    Vignesh

  • Datapump exp and imp using API method

    Good Day All,
    I want to know what is the best way of error handling of datapump export and Import using API. I need to implement in my current project as there lot of limitations and the only way to see the process worked is writing the code with error handling method using exceptions. I have seen some examples on the web but if there are practicle examples or good links with examples that will work sure way, I would like to know and explore. I have never used API method so I am not sure of it.
    Thanks a lot for your time.
    Maggie.

    I wrote the procedure with error handling but it does not out put any information of the statuses while kicking off the expdp process. I have put dbms_output.put_line as per oracle docs example but it doesnt display any messages, just kicks off and created dumpfiles. As a happy path its ok but I need to track if something goes wrong. I even stated set serveroutput on sqlplus. It doesnt even display if job started. Please help me where I made a mistake to display the status . Do I need to modify or add anything. Help!!
    CREATE OR REPLACE PROCEDURE SCHEMAS_EXPORT_TEST AS
    --Using Exception Handling During a Simple Schema Export
    --This Proceedure shows a simple schema export using the Data Pump API.
    --It extends to show how to use exception handling to catch the SUCCESS_WITH_INFO case,
    --and how to use the GET_STATUS procedure to retrieve additional information about errors.
    --If you want to get status up to the current point, but a handle has not yet been obtained,
    --you can use NULL for DBMS_DATAPUMP.GET_STATUS.http://docs.oracle.com/cd/B19306_01/server.102/b14215/dp_api.htm
    h1 number; -- Data Pump job handle
    l_handle number;
    ind NUMBER; -- Loop index
    spos NUMBER; -- String starting position
    slen NUMBER; -- String length for output
    percent_done NUMBER; -- Percentage of job complete
    job_state VARCHAR2(30); -- To keep track of job state
    sts ku$_Status; -- The status object returned by get_status
    le ku$_LogEntry; -- For WIP and error messages
    js ku$_JobStatus; -- The job status from get_status
    jd ku$_JobDesc; -- The job description from get_status
    BEGIN
    h1 := dbms_datapump.open (operation => 'EXPORT',job_mode => 'SCHEMA');
    dbms_datapump.add_file (handle => h1,filename => 'SCHEMA_BKP_%U.DMP',directory => 'BKP_SCHEMA_EXPIMP',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
    dbms_datapump.add_file (handle => h1,directory => 'BKP_SCHEMA_EXPIMP',filename => 'SCHEMA_BKP_EX.log',filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
    ---- A metadata filter is used to specify the schema that will be exported.
    dbms_datapump.metadata_filter (handle => h1, name => 'SCHEMA_LIST',value => q'|'XXXXXXXXXX'|');
    dbms_datapump.set_parallel( handle => h1, degree => 4);
    -- Start the job. An exception will be returned if something is not set up
    -- properly.One possible exception that will be handled differently is the
    -- success_with_info exception. success_with_info means the job started
    -- successfully, but more information is available through get_status about
    -- conditions around the start_job that the user might want to be aware of.
    begin
    dbms_datapump.start_job (handle => h1);
    dbms_output.put_line('Data Pump job started successfully');
    exception
    when others then
    if sqlcode = dbms_datapump.success_with_info_num
    then
    dbms_output.put_line('Data Pump job started with info available:');
    dbms_datapump.get_status(h1,
    dbms_datapump.ku$_status_job_error,0,
    job_state,sts);
    if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
    then
    le := sts.error;
    if le is not null
    then
    ind := le.FIRST;
    while ind is not null loop
    dbms_output.put_line(le(ind).LogText);
    ind := le.NEXT(ind);
    end loop;
    end if;
    end if;
    else
    raise;
    end if;
    end;
    -- The export job should now be running. In the following loop, we will monitor the job until it completes.
    -- In the meantime, progress information is displayed.
    percent_done := 0;
    job_state := 'UNDEFINED';
    while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop
    dbms_datapump.get_status(h1,
    dbms_datapump.ku$_status_job_error +
    dbms_datapump.ku$_status_job_status +
    dbms_datapump.ku$_status_wip,-1,job_state,sts);
    js := sts.job_status;
    -- If the percentage done changed, display the new value.
    if js.percent_done != percent_done
    then
    dbms_output.put_line('*** Job percent done = ' ||to_char(js.percent_done));
    percent_done := js.percent_done;
    end if;
    -- Display any work-in-progress (WIP) or error messages that were received for
    -- the job.
    if (bitand(sts.mask,dbms_datapump.ku$_status_wip) != 0)
    then
    le := sts.wip;
    else
    if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
    then
    le := sts.error;
    else
    le := null;
    end if;
    end if;
    if le is not null
    then
    ind := le.FIRST;
    while ind is not null loop
    dbms_output.put_line(le(ind).LogText);
    ind := le.NEXT(ind);
    end loop;
    end if;
    end loop;
    -- Indicate that the job finished and detach from it.
    dbms_output.put_line('Job has completed');
    dbms_output.put_line('Final job state = ' || job_state);
    dbms_datapump.detach (handle => h1);
    -- Any exceptions that propagated to this point will be captured. The
    -- details will be retrieved from get_status and displayed.
    Exception
    when others then
    dbms_output.put_line('Exception in Data Pump job');
    dbms_datapump.get_status(h1,dbms_datapump.ku$_status_job_error,0, job_state,sts);
    if (bitand(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
    then
    le := sts.error;
    if le is not null
    then
    ind := le.FIRST;
    while ind is not null loop
    spos := 1;
    slen := length(le(ind).LogText);
    if slen > 255
    then
    slen := 255;
    end if;
    while slen > 0 loop
    dbms_output.put_line(substr(le(ind).LogText,spos,slen));
    spos := spos + 255;
    slen := length(le(ind).LogText) + 1 - spos;
    end loop;
    ind := le.NEXT(ind);
    end loop;
    end if;
    end if;
    END SCHEMAS_EXPORT_TEST;

  • Error when using API.DataWindow.Utilities.mShellAndWait: File not found

    I am trying to run a simple command using API.DataWindow.Utilities.mShellAndWait, however I am experiencing the following error in FDM web. Strangely, I do not see the same error when the command is run from FDM Workbench:
    Error: File not found
    At Line: ###
    The command is as follows:
    Dim strCMD
    strCMD = "ECHO %DATE% %TIME% >> \\<servername>\<folder1>\<folder2>\File.Log"
    API.DataWindow.Utilities.mShellAndWait strCMD, 0
    This command works fine when run directly from the command line. I am using a UNC path so thought this would have worked. Can anyone please suggest how I can resolve this? I have also tried the following and this results in a similar error:
    Dim strCMD
    strCMD = "ECHO %DATE% %TIME% >> \\<servername>\<folder1>\<folder2>\File.Log"
    Set WshShell = CreateObject("WScript.Shell")
    Set WshShellExec = WshShell.Exec(strCMD)
    Error: The system cannot find the file specified.

    I would expect the issue is due to user access priviledges.
    When you run it through Workbench, the shell and wait is using your (logged on user's) credentials.
    When it operates through the web stie, it is using the service account credentials.
    If the service account does not have permissions, that could explain the 'file not found', though I would expect an access is denied error.
    $.02

  • Supplier creation using APIs in R12 (Urgent)

    Hi All,
    I will be working on supplier interface in Payables of R12 version.i would like to use the below APIs
    1.AP_VENDOR_PUB_PKG.create_Vendor
    2.AP_VENDOR_PUB_PKG.Create_Vendor_Site
    3.AP_VENDOR_PUB_PKG.Create_Vendor_Contact
    for above APIs what are the mandatory fields/columns to use the suppler creation, suppler site creation and contact details creation.
    so that i can ask the client to provide the mandatory fields.
    when we use APIs to create suppler what are the tables get effected in R12 version.
    I have created supplier from front-end, i have given bank related information. when i query AP_SUPPLIERS Table, i have not see the BANK ACCOUNT related information in AP_SUPPLIERS TABLE. where can i see/find the bank related information for suppliers.
    please help me to sort out this issue.
    Thanks.

    Suppliers in R12 are included within the TCA.
    Supplier Banks will now be categorized as Parties. You may validate it by checking that the bank information you have loaded into IBY_EXT_BANK_ACCOUNTS would also get loaded into HZ_PARTIES.
    Bank address information will be a part of the Party Site.
    Bank Site and Location information will have to be loaded into HZ_PATRY_SITES and HZ_LOCATIONS. For that, you will have to use the TCA APIs hz_party_site_v2pub.create_party_site and hz_location_v2pub.create_location
    Regards,

  • Avoid essbase login pop up when using API

    HI,
    I have written a vb macro to retrieve data from essbase using APIs. I have used EssVConnect. Eventhough i give the server,username and password to a variable and execute the procedure, the essbase login screen appears. I want to avoid this as this code would be used for automation. Please help me in doing so. The retrieval code which is part of the automation code is here below. Here the sheet name, application name and the database name is read from another worksheet and assigned to the variables sheetName , AppName and DBName. The Cache here is the application name and database name which are assigned is to the variables AppName and DBName is highlighted in the essbase login popup. And if i modify the variable Server1 to server the procedure stops running. it says login failed due to insufficient credentials. But i use admin user.
    Declare Function EssVConnect Lib "ESSEXCLN.XLL" (ByVal sheetName As _
    Variant, ByVal UserName As Variant, ByVal Password As Variant, ByVal Server _
    As Variant, ByVal application As Variant, ByVal database As Variant) As _
    Long
    Declare Function EssVRetrieve Lib "ESSEXCLN.XLL" (ByVal sheetName As _
    Variant, ByVal range As Variant, ByVal lockFlag As Variant) As Long
    Declare Function EssVDisconnect Lib "ESSEXCLN.XLL" (ByVal sheetName As _
    Variant) As Long
    Sub RetrieveData()
    Server1 = "localhost"
    UserName = "admin"
    Password = "password"
    Set Ssheet = Sheets(sheetName)
    Ssheet.Activate
    AppName = CStr(applicationname)
    DbName = CStr(DatabaseName)
    TimeStart = Timer
    sts = EssVConnect(sheetName, UserName, Password, Server, AppName, DbName)
    If sts = 0 Then
    x = EssVRetrieve(sheetName, Null, 1)
    If x = 0 Then
    Y = EssVDisconnect(sheetName)
    If Y <> 0 Then
    GoTo ErrHan
    End If
    Else
    GoTo ErrHan
    End If
    Else
    MsgBox ("Connection failed for the worksheet - " & sheetName)
    GoTo ErrHan
    End If
    TimeEnd = Timer
    TimeTester = TimeEnd - TimeStart
    ErrHan:
    On Error Resume Next
    End Sub
    Edited by: ragavhere on Nov 13, 2009 7:03 PM

    Hi,
    Thanks for your responses. Server variable problem is secondary. I have a excel worksheet in this format
    ApplicationName     DatabaseName     SheetName
    RetilPOC     Plan1     Sheet2
    RetilPOC     Plan2     Sheet3
    RetilPOC     Plan3     Sheet4
    The application name,database name and sheet name are read by a procedure from this worksheet row by row and passed as a parameter to the procedure "RetrieveData".My primary objective is to login to the essbase application and database which are passed as parameters from the procedure which invokes the procedure "RetrieveData" without the essbase login screen coming up. How can i do it automatically?The user shouldn't keep typing the username and password. The procedure should read the login credentials from the variables and login automatically. How do i need to modify my code to achieve this?

  • Can i change system time using java

    hi guys can i change system time using java iam doing one app in that i have to change the system time (my os is windowsXP) please tell me how to change the time

    What does this have to do with Swing?
    Well, there is no Java API that I'm aware of.
    However you can execute any Windows command by using the Runtime class. So you should be able to invoke the Time command.
    Search the Java Programming forum. There are plenty of examples on using the Runtime.exec(...) command.

  • Error while signing a document using API

    Hello. I'm using API functions to add a digital signature to a PDF document. While signing this document, I receive an error which looks like:
    com.adobe.livecycle.signatures.client.types.exceptions.PDFOperationException: ALC-DSS-303-001 Could not sign Signature Field MyField (in the operation : sign)
    Caused By: ALC-DSS-303-014 Subject name and the subject alt name missing. (in the operation : getSignerName)
    My source code is a straight copy/paste from the SDK Help. I can successfully add an unsigned signature field using API call, but I can't sign it. I can also sign my document manually from Adobe Acrobat Professional using the same certificate.
    I'm new in LiveCycle and digital signatures, so it might be some obvious reason that I just can't detect now.
    Could anyone help me, please?

    you can mail me directly to [email protected], and I'll try to help.
    no guarenty :-)
    Tal
    [email protected]

  • Creation of a Request in OIM 11G using API's

    Hi Friends,
    I am trying to create a request using OIM 11g API's.
    I am trying to do this for EBS Responsibility resource and this resource has a request dataset has EBS-IT-Resource-Instance, application name, responsibility name, start date and security group. Please note application name, responsibility name, start date and security group are in child form.
    I am trying to populate the request dataset using the below code.
    List<RequestBeneficiaryEntityAttribute> entityAttrList;
    RequestBeneficiaryEntity entity = null;
    entityAttrList = new ArrayList<RequestBeneficiaryEntityAttribute>();
    entity = new RequestBeneficiaryEntity();
    tcITResourceInstanceOperationsIntf tcITResourceIntf = Platform.getService(tcITResourceInstanceOperationsIntf.class);
    HashMap searchcriteria = new HashMap<String, String>();
    searchcriteria.put("IT Resources.Name", "EBSHF-APPS12");
    tcResultSet resultSet = tcITResourceIntf.findITResourceInstances(searchcriteria);
    long itResourceKey=resultSet.getLongValue("IT Resources.Key");
    entityAttrList.add(this.getAttrLong("eBusiness Suite Instance Name",itResourceKey));
    entityAttrList.add(this.getAttr("Application Name","3~300"));
    entityAttrList.add(this.getAttr("Responsibility Name", "3~300~52281"));
    entityAttrList.add(this.getAttr("Security Group", "3~0"));
    entity.setEntityKey(getResourceKey("Oracle eBusiness Responsibility"));
    entity.setEntityType(RequestConstants.RESOURCE);
    entity.setEntitySubType("Oracle eBusiness Responsibility");
    entity.setEntityData(entityAttrList);
    private RequestBeneficiaryEntityAttribute getAttr(String name, String value)
    RequestBeneficiaryEntityAttribute attr = null;
    attr = new RequestBeneficiaryEntityAttribute(name, value, RequestBeneficiaryEntityAttribute.TYPE.String);
    return attr;
    private RequestBeneficiaryEntityAttribute getAttrLong(String name, long value)
    RequestBeneficiaryEntityAttribute attr = null;
    attr = new RequestBeneficiaryEntityAttribute(name, value, RequestBeneficiaryEntityAttribute.TYPE.Long);
    return attr;
    My code is working fine and a request is getting created. But when I try to open the request dataset(object form) for the newly created request, I am getting null exceptions.
    If I did not populate the fields that are in the child form application name, responsibility name and security group which are highlighted above, then I am able to view the form with the correct IT-Resource-Instance name after request creation.
    So, I am thinking I am doing something wrong while populating child form data in the request dataset.
    Can you please provide me some code snippet to populate the child using 11G API'S?

    Hi Bikash,
    After referring your code, i made changes in mine. Here is my updated code.
    RequestBeneficiaryEntityAttribute parantAttr=null;
    List<RequestBeneficiaryEntityAttribute> entityAttrList;
    RequestBeneficiaryEntity entity = null;
    entity = new RequestBeneficiaryEntity();
    parantAttr=this.getAttrLong("eBusiness Suite Instance Name", itResourceKey);
    RequestBeneficiaryEntityAttribute mid1 = new RequestBeneficiaryEntityAttribute();
    List <RequestBeneficiaryEntityAttribute> childAttributesList = new ArrayList<RequestBeneficiaryEntityAttribute>();
    childAttributesList.add(this.getAttr("Application Name", "3~555"));
    childAttributesList.add(this.getAttr("Responsibility Name", "3~555~22862"));
    childAttributesList.add(this.getAttr("Security Group", "3~0"));
    mid1.setChildAttributes(childAttributesList);
    mid1.setAction(RequestBeneficiaryEntityAttribute.ACTION.Add);
    entityAttrList = new ArrayList<RequestBeneficiaryEntityAttribute>();
    entityAttrList.add(parantAttr);
    entityAttrList.add(mid1);
    But when I try to run this, it is getting failed saying "RequestServiceException: IAM-2050033:Invalid attribute name null. No corresponding reference was found in the data set ProvisionResourceOracle eBusiness Responsibility".
    Here is my request data set for your reference.
    <AttributeReference name="eBusiness Suite Instance Name" attr-ref="eBusiness Suite Instance Name" type="Long" length="50" widget="itresource-lookup" required="true" available-in-bulk="true" itresource-type="eBusiness Suite UM"/>
    <AttributeReference available-in-bulk="true" length="10" widget="text" type="String" attr-ref="UD_EBH_RSCP" name="EBS HR Foundation User Responsibilities">
    <AttributeReference name="Application Name" attr-ref="Application Name" type="String" length="256" widget="lookup-query" available-in-bulk="true" required="true">
    <lookupQuery lookup-query="select lkv_encoded as Value,lkv_decoded as Description from lkv lkv, lku lku where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.EBS.Application' and lkv_encoded like concat('$Form data.eBusiness Suite Instance Name', '~%')" display-field="Description" save-field="Value"/>
    </AttributeReference>
    <AttributeReference name="Responsibility Name" attr-ref="Responsibility Name" type="String" length="256" widget="lookup-query" available-in-bulk="true" required="true" primary="true">
    <lookupQuery lookup-query="select lkv_encoded as Value,lkv_decoded as Description from lkv lkv,lku lku where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.EBS.Responsibility' and lkv_encoded like concat('$Form data.Application Name','~%')" display-field="Description" save-field="Value"/>
    </AttributeReference>
    <AttributeReference name="Security Group" attr-ref="Security Group" type="String" length="256" widget="lookup-query" available-in-bulk="true" required="true">
    <lookupQuery lookup-query="select lkv_encoded as Value,lkv_decoded as Description from lkv lkv, lku lku where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.EBS.SecurityGroup' and lkv_encoded like concat('$Form data.eBusiness Suite Instance Name', '~%')" display-field="Description" save-field="Value"/>
    </AttributeReference>
    I am not sure why it is not referencing to the attribute. In your blog, it is saying your code is to set process form. But i am trying to create a request using API's. so, I need some code snippet to populate request dataset. Do you think, this will serve both?
    Thanks for your help.

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

Maybe you are looking for

  • How do i delete multiple playlists at one time

    I created a playlist and itunes copied it somehow like over a 1000 times and it is very difficult to delte them all i think  as i am deleting them it keeps making more how can i locate the file that is recreating them with out deleting itunes and sta

  • Getting SOAException while calling SOA web service via pl/sql procedure

    Hi All, I created a 'Helloworld' BPEL process and successfuly deployed it. I tested it in the WLS and it is working. Now I wrote a pl/sql procedure which calls this 'HelloWorld' bpel process. When ran this procedure it throw me an error GetPayload: r

  • Saving a pdf to a jpeg using photoshop elements II

    I have been using PSE II with my pc and was able to design a simple flyer, save it as a pdf and then open it in PSE II and save it as a jpeg. I recently got a macbook pro. I put PSE II on my mac and everything was working fine. Until I tried to save

  • Deploying Acrobat X in VDI environment

    Hi we're moving to a VDI environment in our organization with Windows 7 image. one of the goals is to have the minimum amount of master images for the users. therefore only components and middleware are installed on the master image and our main solu

  • Has anyone every used the CleanMyMac 2 feature and if so, would you recommend it?

    I was looking into signing up to beta test the new iOS Yosemite and I was reading that you need to clean up your Mac and back it up first before installing it and it was recommending you download something called CleanMyMac2. Not sure if it would be