InterviewSolution
| 1. |
What Is Use Of Assign Activity In Bpel? |
|
Answer» You use the assign activity to copy data from one XML VARIABLE to another, or to CALCULATE the value of an expression and store it in a variable. A copy element within the activity specifies the source and target of the assignment (what to copy from and to), which must be of compatible types. The formal syntax as shown in the Business PROCESS Execution LANGUAGE for Web Services Specification is as follows: standard-elements This syntax is described in detail in that specification. The from-spec and to-spec typically specify a variable or variable part, as in: EXAMPLE of assigning a numeric value to a variable in XPath expressions. You can assign numeric values in XPath expressions. The following example shows how to assign an XPath expression with the integer value 100. You use the assign activity to copy data from one XML variable to another, or to calculate the value of an expression and store it in a variable. A copy element within the activity specifies the source and target of the assignment (what to copy from and to), which must be of compatible types. The formal syntax as shown in the Business Process Execution Language for Web Services Specification is as follows: standard-elements This syntax is described in detail in that specification. The from-spec and to-spec typically specify a variable or variable part, as in: Example of assigning a numeric value to a variable in XPath expressions. You can assign numeric values in XPath expressions. The following example shows how to assign an XPath expression with the integer value 100. |
|