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
  • 1.  Uploading File Using CAF

    Posted Sat October 26, 2013 03:03 AM

    Hi all,
    I am trying to upload the file using CAF. I imported file input and dragged the fileitem to binding view then assigned file input value to fileitem then created flowservice to accept the file and,assigned the refresh action to the upload button action. But now how to bind the fileitem value to the flowservice input?

    [url]http://techcommunity.softwareag.com/pwiki?p_p_auth=FWFY5eT6&p_p_id=36&p_p_lifecycle=0&p_r_p_185834411_nodeId=11809&p_r_p_185834411_title=How+to+UploadDownload+a+File+from+MWS+To+IS[/url]

    I tried already followed above link but i am getting error while binding the input. getService().getParameters().setInput(getFielItem().get()); but in the setInput method i am getting error, tried lot to remove that error but no use. can any one help me.


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


  • 2.  RE: Uploading File Using CAF

    Posted Tue October 29, 2013 03:58 AM

    When you say you assigned the refresh action to the button upload action, did you actually do the Java code that the sample you linked to says you should? Are you calling an action which does a little bit of Java, one of the lines of which refreshes the web service?


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


  • 3.  RE: Uploading File Using CAF

    Posted Tue October 29, 2013 07:06 AM

    thanks for the reply.

    I have created action name called Upload() then added the below thing.

    public String upload() {
    
    getFlowservicename().getParameters().getInput().setUploadfile(getFileItem().get());
    getFlowservicename().refresh();
    resolveDataBinding(UPLOAD_PROPERTY_BINDINGS, this, "upload.this", true, false);
    return OUTCOME_OK;
    }
    

    but binding between from FileItem to Flowservice input is not happening. so how to bind the value.
    In the above binding setUploadfile() method showing error like not defined type object.


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


  • 4.  RE: Uploading File Using CAF

    Posted Tue October 29, 2013 09:38 AM

    Maybe just post a screenshot of your Designer, showing as much detail as possible? Just in case there’s something quick to spot?


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


  • 5.  RE: Uploading File Using CAF

    Posted Tue November 05, 2013 02:41 PM

    Hey,

    this is a sample solution, maybe it will help you.

    Best regards

    Ismael
    ISM_FRMK.zip (8.14 KB)
    fileUpload_sample.zip (26.3 KB)


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