< Previous | Next >

Create new interfaces

Your business process needs an interface of its own that takes a string for the caller's gender as input and returns the final concatenated result string.

Your human task also needs its own interface. It will take a string as input and will be displayed in the user interface form of the claimed task, which will prompt the user for their first name and last name and return it as output from the human task after it is completed.

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

  1. Create the interface for the business process by completing the following steps:
    1. In the Projects section of the Business Integration view, expand HelloWorldLibrary. then right-click on the Interfaces category and select New > Interface. The New Interface wizard opens.
    2. In the Name field, type HelloWorldProcess and then click Finish. The interface editor opens.
    3. In the Operations section, click the Add Request Response Operation icon to add a request response operation, then rename the default name operation1 to startHelloWorldProcess.
    4. Change the default input name from input1 to gender and change the default output name from output1 to result. The interface should now resemble the following figure:
      Picture of the HelloWorldProcess interface
    5. Press Ctrl+S to save the interface and then close the interface editor.
  2. Create the interface for the business process by completing the following steps:
    1. In the Projects section of the Business Integration view, expand HelloWorldLibrary, then right-click on the Interfaces category and select New > Interface. The New Interface wizard opens.
    2. In the Name field, type HelloWorldTask and then click Finish. The interface editor opens.
    3. In the Operations section, click the Add Request Response Operation icon to add a request response operation, then rename the default operation name operation1 to getName.
    4. Right-click anywhere in the Outputs row and select Add Output. A new output is added that is named output2.
    5. Change the default input name from input1 to gender.
    6. Change the default output name output1 to firstName and then change the default output name output2 to lastName. The interface editor should now resemble the following figure:
      Picture of the HelloWorldTask interface
    7. Press Ctrl+S to save the interface and then close the interface editor.
< Previous | Next >