Show TOC

Procedure documentationAssigning a User Interface to a Task Locate this document in the navigation structure

 

In the process, the human activity illustrates an activity that triggers a task. This task is executed by a human. The interaction between a human and the process is enabled through a user interface (UI). The UI assigned to a task allows the user to access and execute that task.

This procedure shows how to assign a Web Dynpro (WD) UI to a task. To do that, you proceed as follows:

  1. Prepare the WD development component (DC) to be used by the process composer DC that contains your project. For more information, see Preparing Web Dynpro DC to be used in BPM.

  2. Configure a dependency between the process composer DC containing your project and the WD DC containing a WD component with the necessary UI.

    You can then use the UI of the DC to which you declared dependency.

  3. Assign the UI to the task.

For more information about WD, see Developing User Interfaces with Web Dynpro for Java.

Prerequisites

  • You have configured the necessary development environment in the SAP NetWeaver Developer Studio.

  • You have created a task to which you want to assign the UI.

Procedure

1. Configure a Dependency to a Web Dynpro Development Component
  1. In the Developer Studio, choose   Window   Open Perspective   Other...   Development Infrastructure   and choose the OK pushbutton.

  2. In the Component Browser view, expand the development configuration that contains your process composer DC.

    Note Note

    You may be prompted to log on to the development infrastructure. To do that, enter your credentials in the dialog that appears and choose the Log on pushbutton.

    End of the note.
  3. Select your process composer DC and open the Dependencies tab page in the Component Properties view.

  4. Choose the Add pushbutton to add a dependency to a WD DC.

  5. Expand the software component (SC) and select the checkbox of the DC that contains the WD UI. Choose the Next pushbutton.

  6. Select the Design Time, Deploy Time and Run Time checkboxes. Choose the Finish pushbutton.

    Note Note

    You may be prompted to sync the DCs that are used. To do that, select the checkbox of the used DC containing the UI and choose the OK pushbutton.

    End of the note.
2. Assign a User Interface to a Task
  1. In the Developer Studio, choose   Window   Open Perspective   Other...   Process Composer   and choose the OK pushbutton.

  2. Expand your project in Project Explorer view.

  3. Expand Process Modeling, then expand Tasks.

  4. In the context menu of a task, choose Open.

    The task editor opens.

  5. Choose the Choose... pushbutton under User Interface on the Overview tab page.

  6. In the dialog that appears, select a WD DC from the Dev. Component field and a public part (containing the WD component) from the Public Part field and choose the Next pushbutton.

  7. Select a WD component (containing the necessary UI) from the Component field and the interface view of the component from theInterface View field. Choose the Next pushbutton.

  8. Select an event that completes the task from the Completion Event field and optionally select an error event from the Error Event field. If the error event occurs during runtime, the task is set to an error state and is not completed.

  9. Choose the Finish pushbutton.

    The WD UI is assigned to the task.