Attachment in DocumentReview Demo Example is not shown properly in Solaris.

I deployed the DocumentReview Demo Example on Solaris O/S.
On the Initiate tab of DocumentReview BPEL Process, I specified the following :-
documentTitle :- Alshaya XLS File
documentName :- alshaya.xls
URI :- file:/home/soa/attachments/alshaya.xls
assignees :- jcooper.
alshaya.xls file is in /home/soa/attachments folder on Solaris O/S.
But when I login into the WorkList Application using "jcooper", the attachment (alshaya.xls) file doesn't opens up properly.
It opens up in some wierd format in IE 6.0 or IE 7.0.
Please do suggest a proper solution for the same, so that the attachment opens up properly.
The proplem is with all the extensions (.doc, .xls, .pdf).
Gopal D. Kalsekar
M.H. Alshaya Co. WLL.
Off. Tel. :- 00965-224-3598
Email :- [email protected]

The following worked for me in 10.1.3.1, basically the mimeType of the
attached file needed to be specified in Solaris O/S, Please see the below code :-
I was calling the BPEL Process from my JSP Page, so had to do the following from JSP :-
"<Attachment_1Name><![CDATA[" + actualFileName + "]]></Attachment_1Name> " +
"<Attachment_1CT><![CDATA[" + multi.getContentType(parameterName) + "]]></Attachment_1CT> " +
"<Attachment_1Present>true</Attachment_1Present> " +
"<Attachment_1><![CDATA[" + "file:/home/soa/attachments/" + actualFileName + "]]></Attachment_1> ";
Changes in .bpel file :-
<copy>
<from>
<task xmlns="http://xmlns.oracle.com/bpel/workflow/task">
     <taskDefinitionURI/>
     <priority/>
     <title/>
     <payload/>
     <creator/>
     <ownerUser/>
     <identityContext/>
     <attachment>
     <name/>
     <URI/>
     <mimeType/>
     <content/>
     </attachment>     
     <userComment>
     <comment/>
     </userComment>
     <processInfo>
     <domainId/>
     <instanceId/>
     <processId/>
     <processName/>
     <processType/>
     <processVersion/>
     </processInfo>
     <systemAttributes/>
     <systemMessageAttributes/>
     <callback/>
</task>
</from>
<to variable="initiateTaskInput" part="payload"
query="/taskservice:initiateTask/task:task"/>
</copy>
<switch name="Switch_Attachment_1">
<case condition="bpws:getVariableData('inputVariable','payload','/ns1:SwipeCardRequest/ns1:Attachment_1Present')= 'true'">
     <bpelx:annotation>
     <bpelx:pattern>Attachment 1 Present</bpelx:pattern>
     </bpelx:annotation>
     <assign name="Assign_Attachment_1">
     <copy>
          <from expression="substring-after(bpws:getVariableData('inputVariable','payload','/ns1:SwipeCardRequest/ns1:Attachment_1Name'),'___')"/>
          <to variable="initiateTaskInput" part="payload"
          query="/taskservice:initiateTask/task:task/task:attachment[2]/task:name"/>
     </copy>
     <copy>
          <from expression="bpws:getVariableData('inputVariable','payload','/ns1:SwipeCardRequest/ns1:Attachment_1CT')"/>
          <to variable="initiateTaskInput" part="payload"
          query="/taskservice:initiateTask/task:task/task:attachment[2]/task:mimeType"/>
     </copy>
     <copy>
          <from expression="ora:readFile(bpws:getVariableData('inputVariable','payload','/ns1:SwipeCardRequest/ns1:Attachment_1'))"/>
          <to variable="initiateTaskInput" part="payload"
          query="/taskservice:initiateTask/task:task/task:attachment[2]/task:content"/>
     </copy>
     </assign>
</case>
<otherwise/>
</switch>
Thanks,
Gopal D. Kalsekar
M.H. Alshaya Co. WLL.
Off. Tel. :- (965) 224 3598
Email :- [email protected]

Similar Messages

  • Icon image is not shown properly in LInux

    Hi,
    I am creating a JDialog as follows:
    JDialog jd = new JDialog(frame, true);
    in the frame, I have set the icon using
    frame.setIconImage(image),
    but the image set to this is not shown properly in Linux, but it is shown clearly in windows,
    can anybody show some light here.
    thanx,
    Raj

    I would put my money on the fact that since your application is timing out, it is dropping any state that your View Objects otherwise had before the application timeout.
    So upon reauthorizing and reaccessing the application (and going directly to the detail page) the View Object is reinstantiated and only knows to go to its default data set which is 111.
    If my assumption is correct, I don't think you could really implement this without a lot of trouble.

  • Select() function is not working properly in solaris 10.

    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.
    Thanks a lot.
    Regards,
    Srikanth.

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • Dynamic resizing in JDialog using setSize not working properly on solaris

    can anyone help..
    Dynamic resizing in JDialog using setSize is not working properly on solaris, its work fine on windows.
    i have set Jdialog size to setSize(768,364),
    when i dynamically resizing it to setSize(768,575); it doesn't get change but when i move dialog using mouse it gets refreshed.
    this problem is only happening on solaris not on windows.

    Hi,
    It's only an approach but try a call of validate() or repaint() after re-setting the size of your dialog.
    Cheers, Mathias

  • Console apps are not shown properly

    Hi! 
    I'm a new Arch convert, and so far I have (only!) one problem, but It's about to drive me crazy. console apps such as - mc, mp3blaster, elinks, are not shown corectly. (just in case you haven't understood me - I'm talking here when X not working) For example, in MC the two panels are mixing one onto the other. I hope someone is understanding what the hell I'm talking about...
    My first thought was it has something to do with the consolefont. So I swithced back to default8x16.
    setfont /usr/share/kbd/consolefont/default8x16.gz
    it was my font on my old distro, gentoo, and there I didn't have any problems. It did not help.
    I would love to try and google this, but due to my somewhat crappy English, I don't think it's possible. I simply don't know how to put this.
    So, I hope someone in here will be able to help.

    they work fine in a terminal window. But I do a lot of work without X runing, so it really bugs me.
    I don't think there is any way for me to post a screen shot. I don't have a digital camera.
    I think I heard once that you can do something with /dev/fb and convert it to jpeg. Is it true? if so, will someone please tell me how, so I can share my problems with the world. 
    ================
    UPDATE: I just found out about fbgrab.
    Here is how it looks when I start working. It's not so bad actually.
    [URL=http://img11.imageshack.us/my.php?image=pic6ff.png][/URL]
    But when I start to move around, things gets messy.
    [URL=http://img14.imageshack.us/my.php?image=pic25dk.png][/URL]
    It's not an fbsplash issue as well.
    [URL=http://img4.imageshack.us/my.php?image=pic37iu.png][/URL]
    Elinks menus.
    [URL=http://img4.imageshack.us/my.php?image=pic41uc.png][/URL]
    Any ideas?

  • Parameters are not shown properly

    Hello, 
    I'm having an issue with the report's parameters when they are displayed in Internet Explorer.
    The report was done with reporting services, but it's published in Sharepoint. When I open the report using the Sharepoint URL, the report's parameters are shown vertically, instead of horizontally. And the last parameter is being cut off, hidden under Internet
    Explorer's status bar.
    If I open the same report in Firefox, the parameter is displayed properly since scroll bars appear in all the parameters area, allowing me to scroll down and see the parameter's content.
    Is there any way to fix the parameter's length so that it's displayed properly in Internet Explorer. I noticed that there is a resize box at the end of the parameter, but I can't find a way to have control over it.
    Any help will be appreciated.
    Thanks!

    Hi monicanquiroga,
    By default, the parameters are shown vertically in the Parameters pane which is located on the right of the report page in SharePoint Library. If there are many parameters in the report, there would be a scroll bar to enable you scroll down the last parameter.
    In your scenario, it seems that the Parameter pane is not shown property in the IE browser. To fix this issue, here are two suggestions for your reference:
    Please try to run IE in compatibility mode and run it as Administrator to check the issue again.
    Considering the aspects of the setting or third party add-ons of Internet Explorer (IE). For more details, please see:
    1. Click Tools -> Internet options.
    2. Switch to the Security tab, click Local intranet, and then select Default level.
    3. Switch to the Advanced tab, and click Restore advanced settings.
    4. Temporarily disable third party add-ons. For detailed steps, please see the link: 
    http://windows.microsoft.com/en-IN/internet-explorer/manage-add-ons#ie=ie-10
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Menutab not shown properly when second menu-item is selected.

    When my menutabs are shown everything seems fine, but when you click the 2nd menu-tab the first menu-tab isn't shown properly anymore.
    If I have a look at the code-source I can see that the first gif that's needed for the tabbed-view isn't present anymore if the 2nd menu-tab is clicked.
    Could somebody explain the different skins that are used by the menuTab component so I know if maybe I've forget to define a specific in my custom skin?
    Maybe somebody already used custom skins with your custom images for the tabbed view of menuTabs?
    Regards,
    Nathalie

    >
    Yes, you are right. In this sample program,
    paintcomponent() is not really necessary, but it is in
    the real program I am doing. So I can not get rid of
    the paintComponent() method. In this paintComponent()
    method I have added (add) and painted (paint) several
    JComponent objects and this is the only one which
    fails. I can not find the reason why.
    Regards.
    the reason is that on each call to paint , you add new components to the panel.
    the scenario goes like this:
    1. frame is made visible -> paintComponent() gets called - > fillPanel() gets called ,
    so on the panel are the following 4 components:
    one JButton
    one JTextField
    one JCheckBox
    one ComboBox
    2. click on the combobox, -> the popup list of the combo is displayed -> paintComponent() is called -> fillPanel() is called
    so you have 8 components on the panel;
    The popup list remain visible, is not actualy contained in the PanelNullLayout component due to the swing mecanics
    3. you select an option in the list, the list becomes invisible, paint() gets called -> fillPanel getsCalled(),
    so, again four componets are added. you have 12 components in the panel.
    The components are painted in the order they have been added to therir container. The first combo box, that you first clicked, has selected index 1, but the last two have selected index 0. As these two are added after the first one, they are painted "above" first one, so you see the last comboBox added.
    Add this code to the paintComponet method if you did not understand
    // public void paintComponent(Graphics g) {
    // super.paintComponent(g);
    // fillPanell();
    int count = getComponentCount();
    System.out.println("Total components :" +count);
    for ( int i = 0; i < count; i++ ) {
    Component c = getComponent(i);
    if ( c instanceof javax.swing.JComboBox ) {
    System.out.println("Selected index in combo " i+" :"+( (JComboBox) c ).getSelectedIndex() );

  • Images in button not shown properly

    I have imported a quicktime file which was exported from FCP. The final cut portion is strictly jpeg files, no movies. I have made chapter markers in FCP. So in DVD Studio Pro, I created a button and chapter index, then selected a template. When I go to the menu(s) with chapters, the chapters are all correct. However, the photos in the button are not resized properly. Most of the heads are cut off. I have the button set with motion but turned it off and still photos not correct. How can I make DVD Studio Pro resize the photos properly? I right click the chapter button (it is not a drop zone), the option for align objects and distribute objects is not available. I am unable to click on it, thinking that is what I need to change. Any suggestions in how to get the photos to show completely in the button and not be cut off? I am very knew at this, only my second project, so please explain in detail.
    Thanks!

    Check your frame rate
    are you declaring frame rate through XML or in external file  ?
    check your code again
    or
    may be you forget to upload some related files

  • Origianlly Flex Application not shown properly in google chrome browser

    When I launch my flex application in Google Crome it does not fit properly. It falls short of the full height . On clicking 'restore down' button at top right corner followed by 'maximize' , then the application fully fits within the browser window.
    Any input why it happens ??

    We run our app in Mozilla. I need to check it out in IE.
    I noticed in our app (one of my developers uses Safari on a Macintosh), that the tree control looks much different in Safari, and has huge gaps and blank spots in the text labels of the leaf nodes.
    We logged it as a bug in our app, but it appears it's a bug in the FLEX framework??

  • Time not shown properly in Day/Week view

    The time intervals in Day/Week view are replaced by "[Day-of-Week] AM/PM" and time in event info panel is replaced by the date. Does anyone know of a way to fix this so that it shows the time properly?

    I have a similar problem, but the solution above does not work for me: in the time, the minutes are displayed as if it was a decimal number. For example, 18:00 is displayed as 18:0, with just one 0.
    This is particularly bad if the time is say 18:01 because then it is displayed as 18:1, which clearly leads to confusion, as it could be 18:10.
    I have checked the time settings under international, but it makes no difference. Further, the problem is in all the views, i.e. day, week or month.
    Any help would be most appreciated.

  • Router.attach(String, Class ? extends ServerResource ) not working properly

    I am having getting router.attach() to work properly
    Server server = new Server(Protocol.HTTP, 8182, new TestServerApplication());
    server.start()
    Here's the code that's in the client
    ClientResource clientResource = new ClientResource(
    "http://localhost:8182/contacts/123");
    The following code does NOT work
    router.attach("/contacts/123", ContactServerResource.class);
    Exception in thread "main" Not Found (404) - Not Found
    The following code does NOT work
    router.attach("/contacts/123", ContactServerResource.class, Router.MODE_BEST_MATCH);
    Exception in thread "main" Not Found (404) - Not Found
    * using attachDefault results in the call being handled properly
    // success!
    router.attachDefault(ContactServerResource.class);
    I also tried something different rather than using a Server.
    Component component = new Component();
    // Add a new HTTP server listening on port 8182.
    component.getServers().add(Protocol.HTTP, 8182);
    // Attach the sample application.
    component.getDefaultHost().attach("/contacts/123",
    new TestServerApplication());
    component.start();
    In this case router.attach("/contacts/123", ContactServerResource.class) is still called and it still fails to work. You have to attachDefault() to get it to work
    I can't think of anything else to try. Anybody have any ideas? thank you
    java

    Try running your query directly into the database and make sure it actually returns a row. This may get you started with the debugging process. Are you doing any stacktraces or System.out.println(theException); in your catch blocks? This may also help if there is an excpetion. You may need to consult your server logs (unless you have some sort of console running) in order to see the results of any prints.

  • Data not shown properly

    Data entered and loaded, but it doesn't appear in the grid or data forms. In the cell history and data audit the data is shown as entered and loaded. Do you know this phenomenon.

    I would suggest you do a Data Extract, and see if any data is extracted. What this will also show you, is the POV.
    It is not uncommon that the POV is at Entity Currency Total or similar, and as you may not have run a consolidation yet, the view feels empty. Also, set up a grid, and check the status. You should see CN flag which would indicate data has 'changed', and requires a consolidation.

  • Attachment of type XLS/CSV is not working properly while sending mail

    Hi,
    I am trying to send mail through the function module SO_NEW_DOCUMENT_ATT_SEND_API1. I am passing data to send a mail with a XLS/CSV file as attachment. I am sending data as ASCII (/Text) mode.
    It is working fine in our development system but not in Quality system. In Quality system I am getting the mail with attachment the formatting within the file is messed up. But if I pass TXT instead of CSV it is working fine.
    My question is though CSV/XLS/TXT extensions are ASCII formatted still why it's not working for XLS/CSV. Again it's working in Development then why it's not working in Quality.
    I have tried the same code in different systems... 4.6C and 4.7 environments also. But it is working only in the development server of 4.7 versions (EBP). It's not working in an environment which is a refresh of the system where it is working fine.
    Please let me know anyone who faced similar kind of problem and got any answer.
    Thanks,
    Achirangshu

    Check your conversion rules in both systems to see if they match. On 4.6c Transaction SCOT on your pull down menus Choose Settings-> Conversion rules.
    Message was edited by: Vyerah Yende

  • Cost Not shown properly

    Dear Friends,
    I am issuing material through 281/Q from WBSE to Activity,
    but cost is shown against WBSE not activity (S_ALR_87013532)
    Previously Cost was booked correctly on activity (and also rolled up cost against WBSE).
    may be some setting is changed.
    Can you help to sort out?
    SSanjay

    Hi Sanjay,
    Pls check if you are using a non-valuated project. Because the cost will be booked at the WBS element and not at the activity level when you are issuing the material (project specific material ie indiv/coll indicator '1' ) to the project using 281Q when you are using non-valuated project.
    When you said previously you were getting the cost at the activity level,  one of the following should have happened.
    1 . Either the project should have been the valuated project and you have issued the material (project specific or plant stock material) using 281Q.
    2. Or the project is non-valuated project and you have issued a plant stock material using 281 instead of 281Q.
    Pls check and revert for any further clarification.
    Regards
    K Ramaiah

  • Network machines not shown properly in JFileChooser

    Hi i am using JFileChooser for selecting user files.
    The problem is when i open Network neighbourhood (windows os) in the chooser
    It is showing all the NN machines as folders ,
    with same name. i cannot distinguish which folder is from which machine.
    It shows all the folders as 'Microsoft Network' 'Microsoft Network'...
    Any idea how to display actual systemname for NN machines.

    I have a similar problem, but the solution above does not work for me: in the time, the minutes are displayed as if it was a decimal number. For example, 18:00 is displayed as 18:0, with just one 0.
    This is particularly bad if the time is say 18:01 because then it is displayed as 18:1, which clearly leads to confusion, as it could be 18:10.
    I have checked the time settings under international, but it makes no difference. Further, the problem is in all the views, i.e. day, week or month.
    Any help would be most appreciated.

Maybe you are looking for