10 01 containersbindings

17
SAP Workflow Course Section 09-01: Containers and Bindings November, 2001

description

 

Transcript of 10 01 containersbindings

Page 1: 10 01 containersbindings

SAP Workflow Course

Section 09-01: Containers and Bindings

November, 2001

Page 2: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 2

Containers

Contents:

• Containers

• Container bindings

Page 3: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 3

Containers: Objectives

At the conclusion of this section, you will be able to:

• Create a workflow container element

• Create a task container element

• Define a container binding

• Create a diagram of container bindings

Page 4: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 4

Containers: Business Scenario

• The ‘material’ business process you want to support with workflow has dialog steps

• Information passed into a task is imported at the beginning of the workflow or produced by prior steps

• You want to know how data is stored in containers and can be used in later steps

Page 5: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 5

Edit Material Master transaction (basic view)

Change documentsMaterial: My_part

Old Material:Original_part

New_part

Event Container:CreatorObject

Event Container:CreatorObject

WorkflowContainer:ZBUS1001

Initiator

Task Container:WI_Object_Id

Step

RoleContainer:Org-Object

RoleContainer:Org-Object

Container in a Workflow

EventEventEventEvent

Page 6: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 6

Containers

Table-like Table-like data structuredata structureTable-like Table-like data structuredata structure

Used for field values and object references

Do not contain application business data

OnlyOnly contain control contain control information for the information for the workflow systemworkflow system

OnlyOnly contain control contain control information for the information for the workflow systemworkflow system

Container: Definition

Page 7: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 7

Event

Task

Work item containerTask container

Role

Rolecontainer

Method

Workflowcontainer

Eventcontainer

Methodcontainer

Workflow

Using Containers

Page 8: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 8

Element Description Data type reference Value Object type Table field

Form Notification of absence FORMABSENC

Agent Agent in WFSYST-AGENT workflow

Definition Runtime

Runtime: object reference to object typein accordance with data type reference

Runtime: value has data type in accordance with data type reference

Data type reference to object typein object repository

Data type reference to field in ABAP dictionary

Container: Definition/Runtime

• Table-like data structure used for

– Field values

– Object references

Page 9: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 9

WorkflowContainer

TaskContainer

What data has to move in order to support the process?

Binding

• Design question at definition time:

– Definition of modeling and assignment rules which are implemented at runtime for

• Transferring data in one container to another container

• Assigning (initial) values to some container elements

• Runtime

– Binding definition is executed at runtime

• Meaning data is moved from one container to another

Page 10: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 10

MethodRole

Roleparametercontainer

Roleparametercontainer

Task

Work item containerTask container

Workflow

Workflowcontainer

Event

Eventparametercontainer

Eventparametercontainer

Methodparametercontainer

Possible Binding Directions

Page 11: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 11

Workflowcontainer

Referen

ce to o

bject o

f type

“no

tification

of ab

sence”

Demo Example: Binding Definition (1)Submit notification of absenceSubmit notification of absence

Notification of Notification of absence createdabsence created

Approve notificationof absence

approvedapproved rejectedrejected

Send mail

mail sentmail sent

Resubmit forapproval ?

nono

Revise notificationof absence ?

Completeworkflow

nonoDelete notificationof absence

WorkflowWorkflowcompletedcompleted

deleteddeleted

yesyes

YesYes

revisedrevised

Page 12: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 12

Referen

ce to o

bject o

f type

“no

tification

of ab

sence

Workflowcontainer

Demo Example: Binding Definition (2)Submit notification of absenceSubmit notification of absence

Notification of Notification of absence createdabsence created

Approve notificationof absence

approvedapproved rejectedrejected

Send mail

mail sentmail sent

Resubmit forapproval ?

nono

Revise notificationof absence ?

Completeworkflow

nonoDelete notificationof absence

WorkflowWorkflowcompletedcompleted

deleteddeleted

yesyes

YesYes

revisedrevised

Page 13: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 13

Workflowcontainer

Person submitting notification of absence

Referen

ce to o

bject o

f type

“no

tification

of ab

sence

Demo Example: Binding Definition (3)Submit notification of absenceSubmit notification of absence

Notification of Notification of absence createdabsence created

Approve notificationof absence

approvedapproved rejectedrejected

Send mail

mail sentmail sent

Resubmit forapproval ?

nono

Revise notificationof absence ?

Completeworkflow

nonoDelete notificationof absence

WorkflowWorkflowcompletedcompleted

deleteddeleted

yesyes

YesYes

revisedrevised

Page 14: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 14

Workflowcontainer

_WF_Initiator

MATERIAL

Changed_by

EventEventContainerContainer

_EVT_CREATOR_EVT_CREATOR_EVT_OBJECT_EVT_OBJECT

Role container

ORG_OBJECT

‘Change’ Taskcontainer

_WI_Object_Id _WI_Actual_Agent

_WI_Object_IdZ_changed_by

‘Display’ Taskcontainer

Binding and Containers

superior of...

eventevent

Change material

Display material

Material changedMaterial changed

Material displayedMaterial displayed

Page 15: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 15

Workflow Container

Task

Object - Method

ApplicationApplication

Step -ResponsibilityCont. Operation Step

Object - Attribute

ABAP functionABAP function

synch

Step - Deadline

R/3R/3

Dataflow Roads within Workflow

Event:Event:TerminatorTerminatorEvent:Event:TerminatorTerminator

Event:Event:TriggerTriggerEvent:Event:TriggerTrigger

Page 16: 10 01 containersbindings

SAP Workflow Course – Section 10-01: Containers and Bindings 16

Containers: Section Summary

• Containers are table-like data structures

• Containers contain control information for the workflow system

• Containers are used for field values and object references

• During runtime the different containers provide each other with necessary information (binding definition transfersdata from one container to another)

Page 17: 10 01 containersbindings

SAP Workflow Course

PwC ConsultingTM refers to the management consulting services businesses of the member firms of the worldwide PricewaterhouseCoopers organisation.

2001 PricewaterhouseCoopers. All rights reserved.