In order to understand the data flow we need to understand few terms which I will be using to define dataflow.
SAP Application: It is an application component or we can say its a module like MM, SD, FI, HR etc.
Action happened: Action happened represents the completion of action. For example: creation of purchase order is an action but Purchase order created is Action Happened that is completion of action. Similarly change of Sales order is an action but Sales order changed signifies that action has happened.
Events: It signifies that action has happened and also signifies the change in status of document. For example: Purchase Order Created, so Created is an event. Purchase Requisition approved signifies the change in status of Purchase order, Approved is Event here.
Triggering Event: Event which triggers workflow is called Triggering event.
What it is?
Once Business object is decided and it is also ascertain that on which event workflow should trigger, it is configured for workflow template using transaction PFTC under Triggering Event Tab.
What happens at backend?
When we configure event for workflow this relationship gets stored in database tables.
What does Triggering means?
When we perform action .Technically following step should have been taking place and apart from that there may be many more steps which will happen.
Search whether workflow template is assigned to Event and Business Object and should be in active state. In technical terms it is basically a SELECT statement on table(s) to find out the valid entry. ( It is called Triggering of Event)
If entry IS FOUND.
Proceed with workflow ELSE.
Give Error message and Update tables and trace etc.
Endif.
Containers: Containers is same as literal meaning that is it contains variables and its values. There are different containers.
Event Container: It is attached to Event and holds all parameters in Event Environment.
Workflow Container: Attached to workflow and its scope is global in workflow. But can not be accessed by method directly.
Task Container: Tasks are attached to activities in workflow and there is a container attached to it whose scope is task environment.
Method Container: Contains method parameters of Methods.
Binding: Linking two different containers are called binding.
Agents: Person responsible to perform task. It will always be SAP user id. There are different ways of determining SAP user id. It may attach to position in Organization structure or may be attach to Job etc. Also it can be determined using roles determination through function modules.
Data Flow Diagram
I am trying to learn workflow on my own and your blog has already cleared alot of concepts. I would certainly appreciate if you delve a bit deeper in the subject and write a complete series on workflow development/configuration.
Regards
I am writing another blog on workflow which will give you different aspect of it.