Access Keys:
Skip to content (Access Key - 0)

Step 2: Add the getIdentifier Method


Now that the data types have been added, use Introduce to add a new method using these data types to the service.

  1. Select the Services tab.
  2. Select "StockPortfolioManager (Service Context)", and then click Add Method on the right.
  3. Enter "getIdentifier" for the Method Name.
  4. Enter "Returns an identifier for the portfolio" in the Method Description field.
  5. Click the Output tab.
  6. Double-click "String" from the list on the left under "Data Types".

7. Click Done.
8. Save the service.

You should now see the "getIdentifer" method added on the left under "StockPortfolioManager (Service Context)."

Last edited by
Sarah Honacki (476 days ago)
Adaptavist Theme Builder Powered by Atlassian Confluence