How to add the business logic to the process?
What is process context and how to define it?
What is the relationship between UI, task, and human activity?
When do I need mapping and how do I do it?
What is the relationship between services and events/automated activity?
How to build, deploy, and run the process?
How to debug a process with the process composer?
To make an executable process out of the process you have modeled, you need to add the business logic. What does this mean? The process steps represented by events and activities are still without content. The flow objects need to feed on data.
In a process, data is being changed and transported by events and activities. This data is stored in the process context. In the modeling environment of SAP NetWeaver Business Process Management, the process context is represented by a data structure defined in an XSD file. To add the process context and import all the data types needed you import an XSD file. The XSD file defines the data types you assign to data objects. You use data objects to define input and output data, which you map to an activity in the process you model. To track the data changes you need to define the input and output mapping. The process context is the sum of all data objects including the roles information.
More information: Process Context, Creating Data Objects, Defining Data Mappings
Users execute tasks and therewith trigger a new process step. In a process, these transactions are represented by human activities. A task is assigned to each human activity. To enable a user to perform this task you need a user interface that is assigned to the task. For SAP NetWeaver BPM processes you create user interfaces with Web Dynpro.
More information: Modeling Human Activities, Working with Tasks, Preparing Web Dynpro DC to be used in BPM
In process modeling, an event is a flow object that indicates that something happens in the course of the process. An automated activity is a type of flow object in the process that illustrates an activity that the system performs. To make events work, you need to assign a service interface and an operation. You make service interface definitions available either by importing or manually creating them. And you need to define the input or output data mapping to reflect the data changes through the event or automated activity. More information: Modeling Events, Modeling Automated Activities
Before you can add the business logic to the process and make an executable process out of this process model, you need to perform the following steps:
You are working in the SAP NetWeaver Developer Studio and have opened your process model in the Process Composer perspective.
To bring all process elements together to a running composite business process as well as execute this process as an end user, follow these steps:
Click anywhere on the white space of the process diagram to edit the process properties.
On the Properties tab, choose Appearance and select all Level of Detail options.
Click in the name area of the pool that contains your process model.
On the Properties tab, choose General and ensure that the pool is active. The option Make this pool active (other pools become inactive) needs to be selected.
Choose Administrators and define administrators of the pool.
More information: Define Pool Administrators
Choose User Texts to enter parameterized texts, which are shown during runtime, for example, in the Process Visualization.
More information: Defining Pool User Texts, Managing Processes and Tasks with the Process Desk
If you have not assigned a task to the human activity, you cannot build the process and there is an error marker on the human activity flow object. You can use a Quick Fix, available in the Problems view, to automatically assign a task to the human activity.
More information: Modeling Human Activities, 3. Assign the Task to a Human Activity section.
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.
More information: Assigning a User Interface to a Task
You can define task owners on task, human activity, and lane level. Defining task owners at a task level applies only to the task. Task owners you define later at lane or human activity level override task owners at task level.
More information: Defining Task Owners
To make service interface definitions available, you need to import or create service interface definitions or WSDL files.
More information: Importing Service Interface Definitions, Creating Service Interface Definitions
Assign a service interface and an operation to the automated activity.
More information: Modeling Automated Activities, 3. Assign Service Interface Definitions to Automated Activities section
Create service references for the service interface definitions you have assigned to automated activities.
More information: Modeling Automated Activities, 4. Create Service References section
To make service interface definitions available, you need to import or create service interface definitions or WSDL files.
More information: Importing Service Interface Definitions, Creating Service Interface Definitions
You use data objects to define input and output data, which you map to an activity in the process you model.
An XSD (XML Schema Definition) file defines the structure of the data, which a data object contains. You import an XSD file if you want to set a data type that is different from the primitive ones to a data object.
More information: Creating Data Objects, Importing XSD Files, and Creating and Editing XSD Files
You define data mappings to show how data used as input and output by the activities and the events in your process is transformed. When you define input mapping, you define how the data transformation between the process context and the input context of an activity or event is done. When you define output mapping, you define how the data transformation between the output context of an activity or event and the process context is done.
More information: Defining Data Mappings
In the process modeling phase you have defined gateways of exclusive choice type. Now you need to define when which gate of the gateway will be executed.
In the process diagram, select the gate, for example, the connection from the gateway to the next flow object.
In the gate’s Properties, choose Condition.
For the default gate, select Make this gate the default (the condition is not evaluated) option.
For the other gate, define a condition. You can define rules and functions as conditions.
More information: Performing Complex Data Transformation with Functions
You build and then deploy your process to be able to start it and execute it at runtime. To build your process, you build the development component (DC) that contains your project.
More information: Building and Deploying a Process
Processes are exposed as Web service when they are deployed onto the runtime. The Web service definition (WSDL file) and an operation are assigned to the start event in the process composer. When the start event is triggered the process starts.
You have two possibilities to start a process:
Starting processes from the Process Repository that is integrated in the SAP NetWeaver Administrator
More information: Displaying and Starting Processes from Process Repository
Starting processes by Web services, for example from the Web Services Navigator or from a Web Dynpro application.
More information: Starting a Process
Go step-by-step through a running process to locate and analyze errors that occur.
More information: Debugging Processes