Completing the ClassStudent Transformation
In this task the data type of one parameter needs to be transformed using the cast function and the parameters must be connected to out.
To complete the ClassStudent transform
1. Open you transform.
2. From the palette, add the cast operation to the editor.
3. Connect Student to the out container.
This creates the hierarchy that you need in the out container.
4. Connect the following loop and out parameters:
loop | out |
school:StudentName | school:StudentName |
school:StudentEmail | school:StudentEmail |
Class | school:Class |
school:CourseName | school:CourseName |
school:CourseDescription | school:CourseDescription |
school:Department | school:Department |
school:Teacher | school:Teacher |
5. Connect school:CreaditNumber to the source parameter in cast.
6. Connect result to school:CreditNumber in out.
7. Double-click cast.
8. In the Type field, select Integer > xs:integer.
9. Click OK.
10. Save your transform.