Part 1-4 of this series ‘Introduction to Netweaver BPM' were published in August 2009, since then I saw many requests coming from people on how to invoke the BPM Process from Web Dynpro Java. Part 5 will be focusing on how to import the Adaptive Web service model into a Web Dynpro development component whereas part 6 will be focusing on the code to invoke the web service using java code.
We will require the WSDL URL from WS Navigator for importing the model into our development component. For steps on how to get this are listed in Part 4 of this series available here. Below are the steps to be followed in order to create the model by importing a WSDL directly from remote server:
1. Navigate to Models in your Web Dynpro Component, right click and select ‘Create Model' from the context menu
2. From the Model Type popup that opens, select the ‘Adaptive Web Service Model' and press next
3. Give a model name and package and select ‘Remote Location / File System' option from Available WSDL sources
4. Paste the URL that we got from WS Navigator
5. Press ‘Finish' to create the model
This will create a new Model with the given name, now we need to use this model in our Component. For this Navigate to Web Dynpro > Components > Component Name > Used Models. Right click on used models and select the model that we just created. Now open the Component Mapping view and create a link between Component Controller and the new model and map the Request_<Name> model node with the component controller. Now mapping part is completed, we will move on to the invocation part using Java code which is described in the next part here.