IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

SimpleFileExportBean usage in caf?

  • 1.  SimpleFileExportBean usage in caf?

    Posted Mon February 09, 2015 03:08 AM

    Hi,

    I’m trying to export Table content in CAF to a custom format. That’s why I don’t want to use the CSV-format from the “Export Table Button”-functionality.

    I found SimpleFileExportBean which seems to be exactly what I need, so I put following code in my action which I bound to an Async command button:

    
    SimpleFileExportBean sfeb = new SimpleFileExportBean("hallo.txt", "text/plain", "abc".getBytes().length, true, "abc".getBytes());
    streamFileDataToResponse(sfeb);

    However several tests failed with a CAF error message:
    [POP.012.0001.wm_cafshared/hidden] Es ist ein Serverfehler aufgetreten. Möglicherweise ist der Status dieser Seite nicht mit dem Server synchron.

    Is it the wrong approach? Hope somebody can give advice

    Regards,
    Deniz


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: SimpleFileExportBean usage in caf?

    Posted Mon February 09, 2015 06:59 AM

    Seems that changing Async Command Button to Command Button solved the issue :smiley:


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS