Login to design console and open adapter factory.
Provide required details as highlighted in below screenshot.
Create two adapter variables - "firstName and lastName"
Create new adapter task for concatenating first name and space .
Select Utility Task and continue.
Continue...
Select below details and then save it:
API Name - java.lang.String
Constructor - public java.lang.String(java.lang.String)
Method - public java.lang.String concat(java.lang.String)
Variable Mappings:
Constructor Input => First Name
Method Input => " "
Method Output => Return Variable
Select first utility task and then create new task for concatenating output of first task and last name.
Select Utility Task then continue.
Continue...
Select below details and then save it:
API Name - java.lang.String
Constructor - public java.lang.String(java.lang.String)
Method - public java.lang.String concat(java.lang.String)
Variable Mappings:
Constructor Input => Output of first task
Method Input => Last Name
Method Output => Return Variable
Build adapter.
Now we can use this adapter for generating full name.
Happy Learning!!!
No comments:
Post a Comment