Show TOC

Generating Tasks and UI Components with UI Task Generation TemplateLocate this document in the navigation structure


In process modeling, you use tasks to assign them to the human activities in your process. The task is executed by a human. The interaction between a human and the process is enabled through a user interface (UI) component. The UI component assigned to a task allows the user to access and execute that task.

With the UI Task Generation template, you can generate tasks and UI components for the tasks, spending less time and effort. Tasks and UI components are generated using the process context which includes the data objects in the process and their data types. Task input and output fields correspond to the selected process context attributes. For more information about process context, see Process Context .

When you apply the UI Task Generation template, the following steps, which you normally perform manually when you model human activities and tasks, are performed automatically:

  1. Creating a task.

  2. Developing and assigning a UI component to a task.

    The UI component is generated automatically using either the Web Dynpro for Java (WDJ) or Visual Composer (VC) technology.

  3. Assigning the task to a human activity.

After you generate a task and UI component, you can edit the task in the usual way and specify task owners, user texts, time constraints, and so on. You can also change the task attributes for the particular human activity to which the task is assigned.

  • You have opened the Process Development perspective in the SAP NetWeaver Developer Studio and have expanded your project in the Project Explorer view.

  • You have modeled a process containing human activities which do not have tasks assigned to them or have a default task.

  • You have created the necessary data objects with data types assigned, which form the process context.

  1. Expand Process Modeling , then expand Processes .

  2. In the context menu of your process, choose Apply Template... .

  3. Select UI Task Generation under Available Templates and choose the Next pushbutton.

    The wizard suggests you create a number of tasks corresponding to the number of human activities which do not have a task assigned, or have a default task. Suggested tasks have names that correspond to the names of these human activities.

  4. Determine the tasks to be generated. To do that, proceed as follows:

    1. Select a task from the Tasks to Create list.

      In the Related Human Activities dropdown menu, the wizard selects the respective human activity to which the task is assigned after it is generated.


      You can also generate new tasks without assigning them to human activities. To do that, select <None> from the Related Human Activities dropdown menu.

    2. (Optional) Choose the Add pushbutton to add a new task to the list.

    3. (Optional) Click a task name to rename a task.

    4. From the Process Context Attributes for Selected Task field, select the process context attributes on the basis of which the necessary UI component is generated. Choose the Next pushbutton.


      Not all data types of the process context are supported. For more information, see Supported Data Types and Restrictions for Java Based UI Components in BPM .

  5. Select the UI technology to be used for generating the UI component from the UI Technology dropdown menu.

  6. Specify the development component (DC) in which the UI components are to be generated.

    You can select an existing DC from the Development Component dropdown menu or choose the New... pushbutton and create a new DC. For more information, see Creating a Project .


    The UI technology you select is used for generating the UI components for all the tasks you determined in the previous steps. For example, if you select WDJ technology, all generated UI components are of type WDJ.

  7. Choose the Finish pushbutton.

    All the tasks and UI components for the tasks that you determined are created and assigned to the relevant human activities.

  8. (Optional) Expand Tasks in Project Explorer view to view the generated task in the task editor.

  9. (Optional) Open the Web Dynpro or Visual Composer perspective respectively to view the generated UI component. To do that, choose Start of the navigation path Window Next navigation step Open Perspective Next navigation step Other End of the navigation path and select the respective perspective.


If you choose to generate a Visual Composer UI for the task, and you later modify the Visual Composer model without deploying it in Visual Composer, you must choose Validate in the Visual Composer Deploy task panel to be able to view the generated Visual Composer UI in Business Process Management.