Lesson 1: Building the package

This lesson teaches you how to build a package profile and a package for a business process service. The package profile contains a description of the package and is used when the actual package is built.

  1. Open the Service Development perspective in WorkSpace.

  2. In the WorkSpace Navigator, expand MySybStore_Tutorials/Services/BP, right-click MySalesBPService.svc_bpmn, and select Create Sybase Services Package Profile from the context menu.

    The new package profile—MySalesBPService.svcpkgdef—is created and opens in the Sybase Services Package Profile Editor.

    To run the business process in the WorkSpace test environment, configure the e-mail endpoint and the e-mail host.

  3. In the editor, select the Endpoint Configuration tab and click New to the right of the table in the Endpoints pane.

  4. When the New Endpoint Wizard opens, select Messaging Endpoint, and click Next.

  5. In the Endpoint Name window, enter myemailendpoint for the Name and click Next.

  6. In the Messaging Type window, select Email and click Next.

  7. In the Connection Properties window, select Specify the Endpoint Properties .... option and set the Host, Password, Port, and User to the appropriate values for your e-mail; for example:

  8. Click Finish.

  9. In the Included Services section of the Endpoint Configuration page, select SalesEmailSend.

  10. In the Endpoint Bindings section (to the right of Included Services), highlight SalesProcessingEmailSendService/endpoint and click Bind Endpoint.

  11. In the Select Endpoint dialog box, select myemailendpoint and click OK.

  12. In Endpoints Bindings section, select SalesProcessingEmailSendService/myemailendpoint and click Configure Binding.

  13. When the Properties dialog box opens, select Email Binding Operation:send/Email Properties in the top right pane, and select the Operation Context tab in the bottom right pane.

  14. In the Operation Context pane, scroll down and set the From, Reply To, Subject, and To properties, as appropriate for your environment, then click OK.

    For example, if your e-mail address is rob.thomas@youcompany.com, you would enter that in the From, Reply To, and To fields, and enter My Email Test in the Subject field.

    NoteThe From, Reply To, and To values must be in the form of an e-mail address; for example, rob.thomas@sybase.com.

  15. Select File|Save from the WorkSpace main menu bar, then select File|Close.

  16. In the WorkSpace Navigator, right-click MySalesBPService.svcpkgdef and select Build Package from the context menu. This builds the actual package from the package profile you created earlier in the lesson.

    NoteIf a message prompts whether you want to overwrite an existing package file, click Yes to All.

    The Console view opens and shows the progress of the operation.

  17. When a message states that the package was successfully created, click OK.