< Previous | Next >

Create new interfaces

Your process needs its own interface that takes as input a string for the caller's gender, and will return the final concatenated result string.

Your human task also needs its own interface. It will take a string as input, and like all inputs to To-do human tasks it will be displayed in the user interface form of the claimed task, which will prompt the user for their first name and last name which will be returned as output from the human task once it is completed.

To create the two new interfaces in the existing HelloWorldLibrary library project:

  1. In the Business Integration view, expand HelloWorldLibrary and right-click on the Interfaces category. Select New > Interface. The New Interface window opens.
  2. For name enter HelloWorldProcess and then click Finish. The interface editor opens.
  3. Use the first button in the editor's local toolbar to add a request response operation, and rename it to startHelloWorldProcess.
  4. Change the input name to gender, and the output name to result. The interface should look like this:
    Picture of HelloWorldProcess interface
  5. Press Ctrl-S to save the interface, and close the interface editor.
  6. Follow the same steps to produce the interface you will need for the human task, with the following information:
    • Interface name: HelloWorldTask
    • Operation name: getName
    • Input name: gender
    • Output name: firstName
    • Second output name: lastName (select first output name, then right-click and select Add Output)
    Picture of HelloWorldTask interface





Feedback



(C) Copyright IBM Corporation 2007, 2008. All Rights Reserved.

< Previous | Next >