Skip to Content

Introduction to SAP Netweaver BPM: Part 6

In earlier parts of this series of blogs, we have learned to create a BPM Process, deploy it and import it in our Web Dynpro Java Component. This part focuses on the invocation of BPM process from our Web Dynpro Java application using java code. Sample code to invoke the adaptive web service model is given below:


ModelName objModelName = new ModelName();


Request_Name objRequest = new Request_Name(objModelName);


StartOpName objStartOpName = new StartOpName(objModelName);


// Set the values for the Details Node (Cardinality is 1:1)

DetailsType objDetailsType = new DetailsType(objModelName);


// Set the value for attribute Name, String type (Check for Null)

if (wdContext.currentDetailsElement().getName() != null)





// Set the value for Age (No check as by default it will be 0 if not already set)



// Set the values for the Details Element





// Bind the object



// Execute the model



Above code is just for demonstration purpose and proper Naming/Coding standards should be followed while coding business applications. Remember we need to send the values for all the nodes which has a cardinality of 1:1 or 1:n failing which the model will throw errors and the process will not be triggered. Also verify that you do not send any null values for any string attributes, otherwise a null pointer exception will be thrown.

1 Comment
You must be Logged on to comment or reply to a post.
  • Hi there,

    Great tutorial. However I had many problems going through it. I noticed many small steps were skipped and I ended up stuck.

    Will it be possible to upload the working project, or any working project that utilises BPM and Web DynPro Java?

    Many thanks