To add an xsi:type attribute to a target element, what needs to be mapped to the target element?
A.
A rename element on the canvas
B.
A recast element on the canvas
C.
An expression on the canvas
D.
A literal element on the canvas
Explanation:
Note:
* The xsi:type attribute is added beneath the original element, as shown in the figure below. An S
icon is displayed to indicate the node was substituted. You can map from any structural elements
in the substituted type.
* The xsi:type attribute is used to identify derived complex types (as well as complex types that
have been derived from).
* If you have elements in your XML file whose type is a complex type, xsi:type support in the XML
editor lets you choose between the complex type and any other complex types derived from it.
B
Answer : D
B: Recast icon: Drag this icon to recast a target node. This adds a bpelx:rename extension rule with a typeCastTo attribute. This results in an xsi:type attribute in the XML output. You can also drag this icon to the center canvas to invoke a dialog, specify the rule, save and close the dialog, and then drag the icon to the target node.
B.
http://docs.oracle.com/cd/E28271_01/dev.1111/e10224/bp_appx_ref.htm
D
This is kinda hard, looking at the link below and the above explanation:
– Expression icon: Drag this icon to a target node to invoke the Expression Builder dialog for assigning an XPath expression to that node.
– Literal (BPEL 2.0 specification) icon or XML Fragment (BPEL 1.1 specification) icon: Drag this icon to a target node to invoke a dialog for assigning a literal (if the BPEL project supports the BPEL 2.0 specification) or XML fragment (if the BPEL project supports the BPEL 1.1 specification) to that target node.
– Remove icon: Drag this icon to a target node to create a bpelx:remove extension rule.
– Rename icon: Drag this icon to rename a target node. This adds a bpelx:rename extension rule with an elementTo attribute.
– Recast icon: Drag this icon to recast a target node. This adds a bpelx:rename extension rule with a typeCastTo attribute. This results in an xsi:type attribute in the XML output.
It really becomes a little hard to be sure. I guess as literal elements are only for BPEL 2.0 specifications, the answer ends up becoming less correct. What do you think?
The right answer is D
The xsi:type attribute is added beneath the original element, as shown in the figure below. An Sicon is displayed to indicate the node was substituted. You can map from any structural elementsin the substituted type.
B