1.

Explain Bpelx:rename And Xsd Type Casting?

Answer»

The bpelx:rename extension in an assign ACTIVITY enables a BPEL process to rename an ELEMENT through use of XSD type casting.

The syntax of bpelx:target is similar to and a subset of to-spec for the copy operation. The target must return a LIST of one more element nodes. Otherwise, a bpel:selectionFailure FAULT is generated. The element nodes specified in the from-spec are renamed the QName specified by the elementTo attribute. The xsi:type attribute is added to those element nodes to cast those elements to the QName type specified by the typeCastTo attribute.

Assume you have the following employee list:

JohnDole
JaneDole
PeterSmith
MarySmith

Promotion changes are now applied to Peter Smith in the employee list:

After executing the above casting (renaming), the data looks as follows with xsi:type info added to Peter Smith:

JohnDole
JaneDole
3000
marysmith

The employee data of Peter Smith is now invalid, because and are missing. THEREFORE, is used to add that information.

2500
petersmith
2500

The bpelx:rename extension in an assign activity enables a BPEL process to rename an element through use of XSD type casting.

The syntax of bpelx:target is similar to and a subset of to-spec for the copy operation. The target must return a list of one more element nodes. Otherwise, a bpel:selectionFailure fault is generated. The element nodes specified in the from-spec are renamed the QName specified by the elementTo attribute. The xsi:type attribute is added to those element nodes to cast those elements to the QName type specified by the typeCastTo attribute.

Assume you have the following employee list:

JohnDole
JaneDole
PeterSmith
MarySmith

Promotion changes are now applied to Peter Smith in the employee list:

After executing the above casting (renaming), the data looks as follows with xsi:type info added to Peter Smith:

JohnDole
JaneDole
3000
marysmith

The employee data of Peter Smith is now invalid, because and are missing. Therefore, is used to add that information.

2500
petersmith
2500



Discussion

No Comment Found