Skip to Content

calling web dynpro from workflow - SWFVISU

We are creating a custom java web dynpro with an "Approval" view for use with a custom workflow. We would like to launch the web dynpro from the Universal Worklist in the portal. I see that transaction SWFVISU configures a web dynpro application to launch for a specific workflow task.

My question is... What development needs to be done in the java web dynpro to make it work with the SWFVISU configuration? In other words, how do we pass parameters between the web dynpro and the workflow.

We are using ECC 5.0 and EP 6.

Thank you.

Jeff Karls

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 16, 2007 at 04:48 PM

    hi Jeff

    This is one is fairly straight forward.

    Step 1: In SWFVISU there is an option to setup a parameter (e.g wi_id, work item id alone is sufficient) that can be passed to custom WD application. To receive it in WD application use the WDProtocolAdapter to get the request parameter. Now you would have got the work item id that is the key to workflow. Set the parameter as an external id and UWL will by default pass it to the custom WD application.

    Step2: There are several wapi's like SAP_WAPI_READ_CONTAINER that facilitates to read and similarly some others that help you write in to the workflow. For all the key is wi_id that is the work item id. These are standard Bapi's i guess available from ECC 5.0. Please use them with normal webdynpro - RFC calls.

    Please remember to re register UWL everytime you change SWFVISU.

    I have done this and it works successfully. Thanks.

    Use this blog it is very comprehensive and even tells you the syntax to add the external id in SWFVISU. /people/ginger.gatling/blog/2005/12/14/create-new-uis-for-existing-workflow-tasks-with-abap-web-dynpro-and-universal-worklist

    It uses ABAP webdynpro but then getting it done using Java WebDynpro is cake walk. The difference would be the WDProtocolAdapter to read the request object. I hope this is sufficient. Thank you.

    reg

    vln

    Message was edited by:

    vln

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 30, 2008 at 09:53 AM

    Hi Jeff,

    I have a similar requirment wherein i need to get the workitem details into webdynpro java screen. Can you please tell me if i had to get 10 details from the workitem how it can be done.??

    Regards,

    Sai Sharan Kalla

    Add comment
    10|10000 characters needed characters exceeded