How to validate overtime (IT2005) with time event (IT2011)

dear gurus,
how can i validate overtime, so only overtime that occurs within time event (IT2011) which can be paid ?
example:
work schedule: 08.00 - 17.00
IT2011: 08.00 (P10 - clock in),  19.00 (P20 - clock out)
IT2005: 17.00 - 20.00
when run PT60, i want the system to calculate overtime from 17.00 - 19.00 (not 17.00 - 20.00).
how can i configure the system?
thank & regards,

Hi
There are multiple issues here ...
i.Why are you maintaining both IT2005 and IT2011 at the same time.OT calculation can be done through IT2011 solely...
ii.Anyway if you still want to write a rule yu can try as per the spec given below:
1. Generate a custom Time Type say 9999
2. Make a rule like OUTTPERTYP if P20 then SCOND=T IF otherwise SCOND=F IF.
3. If SCOND=T IF then write a rule saying that HRS=PEND
4.HRS-SWTE
5.ADDDB9999
6.ELSE SCOND=F IF VARSTP2005 (Entry exists if Y then check 9999..if 9999 is not ZERO then Kill the time types of P2005)
7.Otherwise Pass On...do nothing..

Similar Messages

  • How to validate a date with time

    Hi All,
    How can I validate date with time?
    Here is my code:
    var tempDate:Date = new Date();
    if (tempDate < '09/18/2012 7:30:00 AM'){
         doSomething
    Thanks in advanced

    I think i got it to work.
    var tempDate:Date = new Date();
    var oldDate:Date = new Date('09/18/2012 7:30:00 AM');
    if ( Number(tempDate) < Number(oldDate) ){
         doSomething
    Best,

  • How to validate xml file with XSD schema ??  in JDK1.4.2

    How to validate xml file with XSD schema ?? in JDK1.4.2
    i dont want to use new Xerec Jar ...
    Suggest option ...

    Please do not double-post. http://forum.java.sun.com/thread.jspa?threadID=5134447&tstart=0
    Then use Stax (Woodstock) or Saxon.
    - Saish

  • How to do a backup with time machine?

    Hi Communitieee,
    I dont know how to make a backup with time machine. Can anybody help me?
    And i have another question.. whats wrong with library? when i start my mac the message is popping up but i dont know what it means..
    Thanks
    KR

    Ok thanks mende1.
    Whats with time machine? I already take a look to the link but i could not find the answer of my problem. Can you please take a look of this screenshot?!
    I dont have an extern hard drive. i just want to save my pics and the other data of my mac.

  • How to validate image at the time of uploading image in BSP page

    hi
    I have created a BSp page in which i have created attachment option with browse button , so please tel me that how to validate at the time of clicking save button , attachment should me image (jpeg,gif)
    thanks

    To provide f4 help for the input field, we have to add showHelp and onValueHelp attributes to the inputField tag. Provide the values to those attributes as shown below.
    You need to check after transferring the value fo object if the object  contains .jepg then return = true else return = false and call the error page and display the error message 'choose only the .jepg image' and on the error page also give the button to return to the previous page.
    hope this will help u.

  • Java SystemTray with timer event

    I have just recently began working with the java system tray feature. In my application I have took the example from http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/systemtray/ for an example as to how this works.
    My application also has a timer event that goes off every two seconds and checks for new messages. However if I open up the system tray popup menu, then the rest of the application hangs and waits for the pop up window to close. Is there any way to make the system tray so that the rest of the application does not freeze waiting for the menu to go away or a choice to be selected? I wold like the timer event to go off every 2 seconds, even if I have the system tray popup menu open.
    Thanks for any help or suggestions.

    Hmm. It's not that the Timer is stopped, it's that the TrayIcon displays the popup on the EDT and blocks actionPerformed -- which also has to run on the EDT -- till the popup is closed. Swing Timer by default coalesces multiple timer events when there's a backlog.
    As the showing of the popup is handled by the native peer, it doesn't look like there'll be any solution with a Swing Timer. Your problem should be solvable with java.util.Timer and TimerTask.
    Try this code, then uncomment the setCoalesce(false) and try it again. Note the difference.import java.awt.AWTException;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.MenuItem;
    import java.awt.PopupMenu;
    import java.awt.SystemTray;
    import java.awt.TrayIcon;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    public class TrayIconTest {
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new TrayIconTest().makeUI();
       public void makeUI() {
          PopupMenu popup = new PopupMenu();
          popup.add(new MenuItem("One"));
          popup.add(new MenuItem("Two"));
          TrayIcon trayIcon = new TrayIcon(getImage(), null, popup);
          try {
             SystemTray.getSystemTray().add(trayIcon);
          } catch (AWTException ex) {
             ex.printStackTrace();
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(200, 200);
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
          javax.swing.Timer swingTimer = new javax.swing.Timer(1000, new ActionListener() {
             int count = 0;
             @Override
             public void actionPerformed(ActionEvent e) {
                System.out.println("Swing Count: " + count++);
          //swingTimer.setCoalesce(false);
          swingTimer.start();
          java.util.TimerTask timerTask = new java.util.TimerTask() {
             int count = 0;
             @Override
             public void run() {
                System.out.println("Util Count: " + count++);
          java.util.Timer utilTimer = new java.util.Timer();
          utilTimer.scheduleAtFixedRate(timerTask, 1200, 1000);
       private Image getImage() {
          BufferedImage image = new BufferedImage(16, 16,
                BufferedImage.TYPE_INT_ARGB);
          Graphics2D g2 = image.createGraphics();
          g2.setColor(Color.RED);
          g2.fillOval(1, 1, 14, 14);
          g2.setColor(Color.YELLOW);
          g2.fillOval(5, 5, 6, 6);
          return image;
    }db

  • How to include print date with time on SkillBuilders Schedule Plug In?

    Hi,
    Do you have an idea how to include and get the print date with time on the SkillBuilders Plug In? It shows me the date only, time not included. Have tried to put "HH24:MI", "HH24MI" or Tochar(HH24:MI)? No result??
    select p.fullname, sbip_schedule.start_date(e.event_schedule) start_date
    , sbip_schedule.end_date(e.event_schedule) end_date
    , sbip_schedule.duration_seconds(e.event_schedule) duration_seconds
    , sbip_schedule.calendar_summary(e.event_schedule) calendar_summary
    from app_events e
    Thanks!

    I forget to clarify I am looking for the answer is how to get the print of date with time, Start date with time and End Date with time.

  • Cannot Deploy JPD with Timer Event Subscription in WLI 9.2 MP1 cluster

    Has anyone had any luck deploying a JPD with a timer event subscription to a 9.2 MP1 WLI cluster? I am able to deploy Synchronous Client Request JPDs without any trouble but the ones that rely on internal WLI queues for invocation will not deploy in production. I am able to deploy the problematic JPDs to a non-clustered development environment without any issues but when I try to deploy the same artifact to a 9.2 MP1 cluster I see the following error:
    Throwable: java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
    Stack Trace:
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: tosipDomain_phase2:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
         at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:667)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1025)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:946)
         at com.bea.wli.management.adminhelper.AdminHelperBean.getDispFile(AdminHelperBean.java:348)
         at com.bea.wli.management.adminhelper.AdminHelperBean.getProcessMetadata(AdminHelperBean.java:94)
         at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl.getProcessMetadata(AdminHelperSSB_wivmoo_EOImpl.java:70)
         at com.bea.wli.management.adminhelper.AdminHelperSSB_wivmoo_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:548)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:438)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:434)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:57)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:965)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    I am suprised about this error, b/c we are running out of a vanilla WLI domain created with the Configuration Wizard and the error message has to do with an internal JMS server that we have left with the default configuration. Has anyone else had success with this?
    On a side note, I have to complain about the lack of 9.2 WLI documentation about deploying applications to production. The links on e-docs.bea.com actually redirect you to 8.5 documentation?!? I can't believe that this is the documentation we are left to use for 9.2 because there are so many changes between WLS 8 and 9.

    Hey buddies,
    I have a very similar error on WLI 9.2 MP2 on development mode with a cluster of managed servers on the same machine. I'm afraid that the automatic resource creation feature of dev mode is creating the error.
    The ...processes.UnlockService is jpd called by a JMS Broker thru a channel, and I considering it as the first suspect point.
    Any help is welcome.
    LOG CONTENT:
    <May 15, 2008 8:04:57 PM GMT-03:00> <Notice> <Stdout> <000000> <2008-05-15 20:04:57,575 [PERFO] localServer 10.10.10.10 xMDA  [iid=15899 prd=TC DATA act=INSTALL otp=I onb=00011552111 cid=12345189 mrt=]  END Designar_TCDATA OK>
    <May 15, 2008 8:04:57 PM GMT-03:00> <Error> <WLI> <000000> <Exception processing com.oi.integra.provisioning.lockManager.processes.UnlockService
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.deployWorkshopQueues(EJBGenerator.java:178)
         at com.bea.wli.knex.runtime.core.dispatcher.DispResources.deployQueues(DispResources.java:727)
         at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:671)
         Truncated. see log file for complete stacktrace
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureQueue(EJBGenerator.java:442)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.ensureWorkshopQueues(EJBGenerator.java:412)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$3.run(EJBGenerator.java:194)
         Truncated. see log file for complete stacktrace
    java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator.doesQueueExist(EJBGenerator.java:359)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$6.run(EJBGenerator.java:449)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         Truncated. see log file for complete stacktrace
    javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getProxy(MBeanHomeImpl.java:68)
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getMBean(MBeanHomeImpl.java:88)
         at weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl.getAdminMBean(MBeanHomeImpl.java:265)
         at com.bea.wli.knex.runtime.core.bean.WLSUtil.getWorkshopJMSServer(WLSUtil.java:713)
         at com.bea.wli.knex.runtime.core.bean.EJBGenerator$5.run(EJBGenerator.java:372)
         Truncated. see log file for complete stacktrace
    >
    java.security.PrivilegedActionException: java.security.PrivilegedActionException: java.security.PrivilegedActionException: javax.management.InstanceNotFoundException: granite_wli_dev:Name=cgJMSServer,Type=JMSServer
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:373)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)

  • LIssue with time events upload through RPTEUP10

    Dear experts,
    I am using the standard report RPTEUP10 for uploading time events in IT 2011. It works fine but in the log, it just indicates the number of records read, posted, placed in the error pool ...
    Can we by any chance know the PERNRs for which the upload failed? The FM HR_CC1_TIMEEVENT_INSERT directly takes table of time events as parameter.
    Will I have to put this FM inside a loop and pass a each entry for each PERNR separately, so that I could catch the failed PERNRs? or is there any standard solution to this?
    Please advice.
    Regards,
    Sumit Nene

    Hi,
    Actually we tried to upload the data manually through RPTEUP10 using txt file and also our client also want this for few locations.
    But we are unable to sort it out.
    I have gone through your document  and we adopted for automatic recording process as  my colleague confirmed it works excellent.
    But the problem is with manual uploading, the same is not showing in it 2011.
    any changes required in 2011 or 0050 before recording.
    it 0007, 1-1 is selected.
    please suggest some measure to achieve this.
    Regards,
    Sumana

  • How to Sync iPhone/iPad with Time Capsule (wirelessly)

    Hi - I am wondering if there is way to sync my iPhone or iDevices with Time Capsule wirelessly.  Please let me know if there is and how?
    Thanks in advance..

    The iOS devices....iPhones, iPads, iPods, etc.....sync to iTunes on your computer or to iCloud.
    See this Apple support document:
    http://support.apple.com/kb/ht1766
    It is not possible to sync iOS devices directly to the Time Capsule.

  • HT201250 How to view old desktops with Time Machine?

    Hi, I was wondering how you can view your old desktops from past updates with Time Machine? Such as the wallpaper that was used and how your dock icons were arranged. I don't mean a full restore just a quick view of the old desktops. Thanks in advance.

    i think it will be the com.apple.desktop.plist on the user library

  • How to solve the problem with time difference?

    Hi,
    I work in India with time difference about 12 hours faster than American time.
    I put a validation in my application as follows:
    IF :P2_FINISH_DATE > SYSDATE THEN
    return false;
    else
    return true;
    end if;
    Today (13-Mar-09) at 9:30 am according to my system, I entered 13-Mar-09 as FINISH_DATE.
    But it returned false with an error message: "Finish date cannot be greater than system date."
    I changed my system time as 13-Mar-09, 9:30 pm. Then it accepted 13-Mar-09 as FINISH_DATE.
    How can I solve this issue.
    Would appreciate your help.
    Thanks,
    Guy

    Hi Arie,
    Thanks for the code.
    Your code works perfect in SQL Commands.
    But I don't know how to use the code in my application.
    Would appreciate if you can help me know the followings:
    - How to define two application processes -- before header and after submit (before any processing) – with the proper alter session statement.
    - How to use the APEX VPD field to do the same.
    FYI, I use the following codes:
    - For file upload
    If (:p2_SUBMIT_FILE is not null) then
    insert into PM_DOCUMENT (id, name, blob_content, mime_type, PROJECT_NAME, SUBMIT_TIME, SUBMITTED_BY)
    select id, :p2_SUBMIT_FILE, blob_content, mime_type, :P2_NAME, SYSDATE , :P2_UPDATED_BY
    from apex_application_files
    where NAME = :p2_SUBMIT_FILE;
    Delete from apex_application_files where name = :p2_SUBMIT_FILE;
    end if;
    - For Data entry validation
    IF :P2_START_DATE > :P2_FINISH_DATE
    OR :P2_START_DATE > :P2_TARGET_DATE
    OR :P2_FINISH_DATE > SYSDATE THEN
    return false;
    else
    return true;
    end if;
    Thanks,
    Guy

  • How to restore all system with Time Machine ?

    How to restore all system  from Time Machine ?
    The backup disk for Time Machine is a Usb disk, and the Os is Mountain Lion 10.8.2.
    Thanks in advance !

    Restore the system  with Time Machine  and from the external backup Usb HD,  by pressing  CMD + R  at the power on.
    It worked without problem.
    Thankyou once more !

  • How to validate an XML with its XSD in jdk1.4.2_09?

    Hi all,
    Kindly Tell me how to validate an Xml against an XSD in JDK1.4.2_09....
    I was able to do it in jdk1.5 using the Validation class available in java.xml.validation package...
    But the Task for me is to do in jdk1.4.2 since my application server runs on jdk1.4.2... changin to jdk1.5 will result in failure of main application...
    sample code will be useful...
    thanks in advance.
    Regards,
    Sundararamaprasad.

    HI,
    Thanks for the suggestion.... The Thing is when i compiled and executre my code it really got execute well when i ran it in the Command Prompt after settiongup appropriate classpath and path... but when i executed the same thing in the server it did not get executed though the application server also run on top of the same JDk.....I've check it out..anyhow the link gave me a very good learning...Thanks for the valuable suggestion..... :)
    Regards,
    Sundararamaprasad.

  • How to validate PDF document with JAVA

    Hi,
    Is there any way to write JAVA app that will validate PDFs through/with LC API ? I was traying with code:
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    FormsServiceClient formsClient = new FormsServiceClient(myFactory);
    FormsResult renderedForm = renderPDF(formName, xmlData, url, formsClient);        
    RenderOptionsSpec processSpec = new RenderOptionsSpec();
    //processSpec.setValidationReporting(5);
    processSpec.setLocale("pl_PL");
    FormsResult formOut = formsClient.processFormSubmission(renderedForm.getOutputContent(),"CONTENT_TYPE=applicati on/pdf","",processSpec);
    System.out.println(formOut.getValidationErrorsList().toString());
    //Rendering method
    private static FormsResult renderPDF(String formName,String  xmlData, String url, FormsServiceClient formsClient) throws RenderFormException, DSCException, UnsupportedEncodingException {
             PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
             pdfFormRenderSpec.setCacheEnabled(new Boolean(false));
             pdfFormRenderSpec.setXMLData(true);
             pdfFormRenderSpec.setStandAlone(true);
             pdfFormRenderSpec.setLinearizedPDF(true);
             URLSpec urlSpec = new URLSpec();
             urlSpec.setContentRootURI(url);
             String credentialAlias = CREDENTIAL_ALIAS;
             String credentialPassword = CREDENTIAL_PASSWORD;
             ReaderExtensionSpec reOptions = new ReaderExtensionSpec();
             reOptions.setReCredentialAlias(credentialAlias);
             reOptions.setReCredentialPassword(credentialPassword);
             reOptions.setReExpImp(true);
             reOptions.setReFillIn(true);
             reOptions.setReDigSig(true);
             Document inputData = new Document(xmlData.getBytes("UTF-8"));
             /*return renderedForm = formsClient.renderPDFForm(formName,inputData,pdfFormRenderSpec,urlSpec,null);*/
             return formsClient.renderPDFFormWithUsageRights(formName,inputData,pdfFormRenderSpec,reOptions,u rlSpec);
    but in formOut.getValidationErrorsList() i still get:
    [8/2/10 12:03:46:728 GMT+01:00] 0000002c SystemOut     O --------------------Validation------------
    [8/2/10 12:03:46:728 GMT+01:00] 0000002c SystemOut     O <document state="active" senderVersion="3" persistent="false" senderPersistent="false" passivated="false" senderPassivated="false" deserialized="true" senderHostId="127.0.0.1/172.16.133.24/172.16.134.24" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="false" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="0" contentType="null" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGl obalBackendId/><inline></inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/a dobews_anathNode01Cell_anathNode02_server1</senderPullServantJndiName><attributes/></docum ent>
    without any errors. I was looking around (google,forum and Adobe Develop Connection) but no luck . Is it posible to make it that way ?
    Ps.
    It's my first post so (if i did something wrong ) be gentle. And ... sorry for my poor english .

    I modified code for rendering form and for validating and I start to get erros on output, but that is not complete list
    <document state="active" senderVersion="3" persistent="false" senderPersistent="false" passivated="false" senderPassivated="false"
    deserialized="true" senderHostId="127.0.0.1/172.16.133.24/172.16.134.24" callbackId="0" senderCallbackId="0" callbackRef="null"
    isLocalizable="false" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536"
    defaultMaxInlineSize="65536" inlineSize="342" contentType="text/xml" length="-1">
    <cacheId/>
    <localBackendId/>
    <globalBackendId/>
    <senderLocalBackendId/>
    <senderGlobalBackendId/>
    <inline>
        <?xml version="1.0" encoding="UTF-8"?>
        <validationErrors>
        <m d="2010-08-04T10:05:48.897+02:00" ref="...
    </inline>
    <senderPullServantJndiName>adobe/idp/DocumentPullServant/adobews_anathNode01Cell_anathNode 02_server1</senderPullServantJndiName>
    <attributes/>
    </document>
    it is cut in place where should be reference to wrong field.
    <inline>
         <?xml version="1.0" encoding="UTF-8"?>
         <validationErrors>
         <m d="2010-08-04T10:05:48.897+02:00" ref="...
    </inline>
    I attach whole class after changes:
    public class AdobeForm {
        private static final String CREDENTIAL_ALIAS  = "READER_EXC_CERT";
        private static final String IIOP = "iiop://localhost:2810";
        private static final String CREDENTIAL_PASSWORD = "pass";
        private static final String AS_USERNAME = "log";
        private static final String AS_PASSWORD = "pass";
        private static final String NO_ERRORS = "";
        public static byte[] renderForm(String formName,String  xmlData, String url){
            byte[] data = null;
            try
                //JBOSS
    /*            Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://localhost:1099");
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "EJB");
                connectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "log");
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "pass");*/
               // dla WebSphere
                Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", IIOP);
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");         
                connectionProps.setProperty("DSC_SERVER_TYPE", "WebSphere");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", AS_USERNAME);
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", AS_PASSWORD);
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                FormsResult renderedForm = renderPDF(formName, xmlData, url, formsClient, false);
                //test(renderedForm);
                Document renderedFormData = renderedForm.getOutputContent();
                InputStream inputStream = renderedFormData.getInputStream();
                // to pewnie trzeba poprawic na przepisywanie duzych danych
                int size = inputStream.available();
                data = new byte[size];
                inputStream.read(data);
                inputStream.close();
            catch (Exception e)
                e.printStackTrace();
            return data;
        public static byte[] validateForm(String formName, String xmlData, String url){
            byte[] data = null;
            try
                //JBOSS
                Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://localhost:1099");
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL", "EJB");
                connectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");*/
                // dla WebSphere
                Properties connectionProps = new Properties();
                connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", IIOP);
                connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");         
                connectionProps.setProperty("DSC_SERVER_TYPE", "WebSphere");
                connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", AS_USERNAME);
                connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", AS_PASSWORD);
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                FormsServiceClient formsClient = new FormsServiceClient(myFactory);
                FormsResult renderedForm = renderPDF(formName, xmlData, url, formsClient, true);        
                RenderOptionsSpec processSpec = new RenderOptionsSpec();
                processSpec.setValidationUI(0);
                processSpec.setValidationReporting(10);
                processSpec.setCacheEnabled(true);
                //processSpec.setXMLData(true);
                //processSpec.setDebugEnabled(true);
                /*processSpec.setLocale("pl_PL");
                processSpec.setStandAlone(true);*/
                FormsResult formOut = formsClient.processFormSubmission(renderedForm.getXMLData(),
                        "I=application/pdf&CONTENT_TYPE=application/vnd.adobe.xdp+xml",
                        "",processSpec);
    /*            Document inputData = new Document(xmlData.getBytes("UTF-8"));
                FormsResult formOut = formsClient.processFormSubmission(inputData,
                        "CONTENT_TYPE=application/pdf&CONTENT_TYPE=application/vnd.adobe.xdp+xml&CONTENT_TYPE=tex t/xml",
                        "",processSpec);*/
                test(formOut);
                // to pewnie trzeba poprawic na przepisywanie duzych danych
                InputStream inputStream = formOut.getOutputContent().getInputStream();
                int size = inputStream.available();
                data = new byte[size];
                inputStream.read(data);
                inputStream.close();
                System.out.println("Dane: "+(new String(data)));
                System.out.println("------------------------------------------");
                System.out.println("OutputXML: "+formOut.getOutputXML());
                return NO_ERRORS.getBytes();
            catch (Exception e)
                e.printStackTrace();
            return NO_ERRORS.getBytes();
        private static void test(FormsResult formOut) {
            if(formOut != null)
                System.out.println("------------------------------------------");
                System.out.println("--------------------Validation------------");
                System.out.println(formOut.getValidationErrorsList());
                System.out.println("------------------------------------------");
                System.out.println("------------------------------------------");   
            else
                System.out.println("-------------------FORMOUT NULL-----------------------");   
        @SuppressWarnings("unused")
        private static void showData(String xmlData, String formName, String url) {
            System.out.println("------------------XML------------------------");
            System.out.println("XML: "+xmlData);
            System.out.println("Form: "+formName);
            System.out.println("URL: "+url);
            System.out.println("------------------XML------------------------");
        private static FormsResult renderPDF(String formName,String  xmlData, String url, FormsServiceClient formsClient, boolean renderedForm) throws RenderFormException, DSCException, UnsupportedEncodingException {
             URLSpec urlSpec = new URLSpec();
             urlSpec.setContentRootURI(url);
             PDFFormRenderSpec pdfFormRenderSpec = new PDFFormRenderSpec();
             pdfFormRenderSpec.setCacheEnabled(true);
             pdfFormRenderSpec.setXMLData(true);
    /*       pdfFormRenderSpec.setDebugEnabled(true);
             pdfFormRenderSpec.setLocale("pl_PL");
             //without rights
             if(renderedForm)//see bellow
                 pdfFormRenderSpec.setLinearizedPDF(true); */
             System.out.println("RenderServlet formName "+formName);  
             String credentialAlias = CREDENTIAL_ALIAS;
             String credentialPassword = CREDENTIAL_PASSWORD;
             Document inputData = new Document(xmlData.getBytes("UTF-8"));
             if(renderedForm)
                 return formsClient.renderPDFForm(formName,inputData,pdfFormRenderSpec,urlSpec,null);
             else
                 ReaderExtensionSpec reOptions = new ReaderExtensionSpec();
                 reOptions.setReCredentialAlias(credentialAlias);
                 reOptions.setReCredentialPassword(credentialPassword);
                 reOptions.setReExpImp(true);
                 reOptions.setReFillIn(true);
                 reOptions.setReDigSig(true);
                 pdfFormRenderSpec.setStandAlone(true);
                 return formsClient.renderPDFFormWithUsageRights(formName,inputData,pdfFormRenderSpec,reOptions,u rlSpec);
             //[8/4/10 11:10:55:928 GMT+01:00] 0000002a CommonGibsonU W com.adobe.livecycle.formsservice.logging.FormsLogger logMessage ALC-FRM-001-048: Forms with Rights cannot be linearized.

Maybe you are looking for