Explore the link Business Object-Workflow-Rule Resolution with simple example
In real time , Business object events are tagged to Workflows ,so that when certain business condition occurs events get fired by standard SAP system and which let the the workflow to trigger.
When ever the workflow starts , it has many steps and each step either contains a background task or dialog task , if the task is background then it will be executed by system automatically , But for dialog ones we do have to specify Agent Assignment.
There are various ways agent assignment happens, It can happen by Expression or Organizational Object assignment or using rules.
So this is how Business object Event -> Workflow->Agent assignment using rule get set up to enable a business process in SAP system.
In this blog I will explain a sample scenario illustrating the above concepts.
Whenever Basic pay of the employee gets created , an work item sent to the employee to accept the change .
Step-1 Go to SWETYPV and identify the Business object(BASICPAY) event CREATED row and identify the Standard workflow tagged to it.
Step-2 Navigate to the workflow and make sure in the Basic data start events section the event to workflow binding has been done.
Step-3 Navigate to the step to send one decision work item to user informing the creation of basic pay.
Open up to explore agent assignment for the underlying decision task.
Step-4 Open up the Rule and understand the category, you could see rule has been created using a function module.
This rule will accept personnel number and will identify the username to send this work item.
Step-1 in PA30 update current user say ‘ABAPDEMO1’ as the user for one employee.
Step-2 Create Basic Pay for this employee
Step-3 You will get the work Item in your inbox.