Show TOC

Defining a Task InitiatorLocate this document in the navigation structure

Prerequisites

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

Context

You can define an initiator for each human activity in your BPM process. This initiator can be then extracted from the BPM public API and can be displayed in custom task inboxes. Thus the users can already see in their task list who initiated their tasks without opening the tasks.

Procedure

  1. Expand Process Modeling, then expand Processes.
  2. In the context menu of a process, choose Open.
  3. In the canvas, choose a human activity.
  4. In the Properties view, open the Input Mapping tab page.
  5. Choose Start of the navigation path TaskInput Next navigation step TaskAttributes Next navigation step initiator End of the navigation path.
  6. Map now the user of type principal you want to be the initiator for this task.

    If you want to assign a user as task initiator that is not of type principal, you can map the unique ID of the user as string to Start of the navigation path TaskInput Next navigation step TaskAttributes Next navigation step initiator Next navigation step principalId End of the navigation path. As user type, enter 1.

    You can only enter users as initiator. Groups or roles will trigger an exception at runtime when the initiator data is gathered.

  7. If you want the process initiator also be the initiator of the human activity, map the ProcessInitiator to the initiator of the TaskAttributes.