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.  Redirect in CAF

    Posted Thu June 17, 2010 11:38 PM

    Hello,

    how can i redirect to different views depending on the output of a web service?


    #BPM
    #webMethods-BPMS
    #webMethods


  • 2.  RE: Redirect in CAF

    Posted Tue September 20, 2011 07:40 AM

    I have the same question.could somenone help on this.Thanks a lot!


    #webMethods
    #webMethods-BPMS
    #BPM


  • 3.  RE: Redirect in CAF

    Posted Fri September 23, 2011 10:05 AM

    Redirection can done in multiple ways depending form where you want to re direct user to different views or different portlet. Btw, are you sure you want to redirect user, or just send him on different page ?

    In any case if you want to take user to different views in the same project you can use inbuilt JSF navigation. This is the easiest way. Other way would be using MWS API something like goToPage(String viewID). Other way would be using import template and you can change the views to be imported on different condition.

    In case you want to take user to different MWS page ( different portlet ), can you use extended portlet URL control along with command link from palatte and give alias of the MWS page and portlet.

    If you want to redirect user on different condition you can use Portlet URL class something like this.
    if(condition 1) {
    pageAlias = project1.home.page
    portletAlias = project.home.portlet
    }else {
    pageAlias = project1.overview.page
    portletAlias = project.overview.portlet
    }

    IPortletURL portletURL = PortletURLFactory.createRenderUrl(getFacesContext());
    portletURL.clearParameters();
    portletURL.clearState();
    portletURL.setBaseURL(pageAlias);
    portletURL.setPortlet(portletAlias);
    portletURL.redirect();
    

    check out below site . you might find some examples. [url]http://communities.softwareag.com/ecosystem/communities/public/Developer/webmethods/products/caf/[/url]

    Cheers.
    Jiten


    #BPM
    #webMethods
    #webMethods-BPMS