Tuesday, August 09, 2011

Using JAXB for Manipulating Payload of Human Tasks in SOA Suite

In some cases you may want to manipulate the payload of a human task of an OPBM or BPEL process instance using JAXB. An example would be when you are using some other framework than ADF Faces for creating the UI, and you want to work with Java objects instead of manipulating XML programatically.

To do so with JDeveloper, you can generate the JAXB content model by right clicking the xsd and choose "Generate JAXB x.x Content Model".




Be aware that you must do this using the human-task-specific payload, and not the xsd that was used to define the variable that gets passed into that human task, otherwise to your sad surprise you will get all kind XML validation issues when trying to push the data back to the process. Fortunately on its turn the xsd of the human-task-specific payload imports the original xsd, so when the original xsd changes, the human task specific payload automatically changes with it. You still have to regenerate the JAXB content model to let it reflect the changes.

The following picture shows the OrderCreationPayload.xsd of an OrderCreation human task. It imports an Order.xsd. The JAXB content model has to be generated using the OrderCreationPayload instead of the Order.


4 comments:

www.muebles-camobel.es said...
This comment has been removed by a blog administrator.
Rahul said...

Software development (also known as application development, software design, designing software, software application development, enterprise application development, or platform development.

php developer india

Denature Sip said...

nice article

Ramuan Obat Wasir Luar
Ramuan Obat Wasir Jenis Luar
Ramuan Obat Untuk Wasir Luar
Ramuan Obat Herbal Wasir Luar
Ramuan Obat Manjur Wasir Luar

Anonymous said...

good
Cara Mengobati Kemaluan Keluar Nanah
Mengobati Kemaluan Keluar Nanah
Cara ampuh Mengobati Kemaluan Pria Keluar Nanah
Cara Alami Mengobati Kemaluan Pria Keluar Nanah
Mengobati Kemaluan Keluar Cairan Nanah
Mengobati Kelamin Keluar Cairan Nanah
Mengobati Kemaluan Pria Keluar Nanah
Mengobati Kemaluan Pria yang Keluar Cairan Nanah
Mengobati Kemaluan Sakit Keluar Nanah
Mengobati Kelamin Sakit Keluar Nanah
Mengobati Kemaluan Pria saat Sakit Keluar Nanah
Mengobati Kelamin Pria Sakit Keluar Nanah
Mengobati Kemaluan Pria Keluar Nanah
Mengobati penyakit Kemaluan Pria Ngilu Keluar Nanah
Mengobati Kelamin Pria Ngilu Keluar Nanah
Mengobati sakit Kemaluan Pria Ngilu Keluar Nanah
Terapi Pengobatan Kanker Payudara
Pengobatan Kanker Payudara Alternatif
Pengobatan Kanker Payudara
Terapi Pengobatan Penyakit Kanker Payudara Alternatif
Pengobatan Kanker Payudara Alternatif
Pengobatan Penyakit Kanker Payudara Alternatif Ampuh
Pengobatan Kanker Payudara Ampuh
Pengobatan Sakit Kanker Payudara Alternatif Ampuh
cara ampuh untuk menghilangkan kutil kelamin
cara menghilangkan kutil
menghilangkan kutil kelamin
cara ampuh menghilangkan kutil kelamin
Menghilangkan Kutil Kelamin Jengger Ayam
Cara Menghilangkan Kutil Kelamin
Cara Menghilangkan Kutil Jengger Ayam
Cara Ampuh Menghilangkan Kutil Kelamin Jengger Ayam
Cara Ampuh Menghilangkan Benjolan Kutil Kelamin
Cara Menghilangkan Benjolan Kutil
Menghilangkan Benjolan Kutil Kelamin
Cara Alami Menghilangkan Benjolan Kutil Kelamin