Introduction to Workflow-For Beginner

Download Introduction to Workflow-For Beginner

Post on 19-Jan-2016

33 views

Category:

Documents

2 download

Embed Size (px)

DESCRIPTION

Introduction to Workflow-For Beginner

TRANSCRIPT

<p>Title Title Title Title Title</p> <p>SAP Business WorkflowCourse Content | IntroductionWorkflow architectureWorkflow Definition and workflow TemplateWorkflow steps in detailsTaskBusiness Objects and MethodsContainer Structure and Container ProgrammingEventsOrganizational structure and role resolutionDifferent types of AgentWorkflow and ALESAP Business Workflow | SAP Business Workflow is a cross-application tool that makes it possible to integrate business tasks/processes between applications. </p> <p>This tool was introduced in R/3 Release 3.0A, and received a substantial facelift in the Enjoy Release, 4.6A,which warranted the new name Workflow Builder.</p> <p>PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0Need of Workflow | Hmm ! Time to put in a purchase requisition request1</p> <p>3I guess Id better send off some inter-office mail to ask the approvers to approve my requisition.2</p> <p>I wonder whoapproves buying this stuff?</p> <p>5Time drags on . . .</p> <p>Meanwhile, in Mr. Managers office . . . What shall I do next?4TIME IS MONEY!!!1. In order to perform our demolition services, we need a regular supply of dynamite.2. Our project manager has run out of dynamite. So, he creates a purchase requisition for 20 cases. Since the cost of these cases is rather high, our requisition must be approved by two different managers.4. The first approving manager must be found. She needs to know that a requisition is waiting for her approval. The manager also needs to know which specific requisition is awaiting approval.5. The manager logons to the system and locate the requisition. 6. If the manager chooses to reject the requisition, she will use manual means to inform the requisitioner (voice mail, e-mail, or in person).6a. When the requisitioner receives this notification, he will logon to the system, locate the requisition, and delete the line item and create a new one.7. If the manager chooses to approve the requisition, she will use manual means to inform the requisitioner (voice mail, e-mail, or in person).8. Then, the cycle will be repeated to find the second approver who will execute the same process.PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0Drawbacks</p> <p> | Inefficiency.</p> <p> Each lacks a way to trace where a task is.</p> <p> Who executed or is executing it.</p> <p>How much time it required.PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0 | Why SAP Workflow Workflow ensures that the right work is sent to the right person at the right time in the right sequence with the right information. Tool for the automization of business processes Not tied up to any paricular application Operates uniformly accross applications Coordinate all participating tasks Provide users with active support Intelligent routing</p> <p> | SAP Business Workflow Architecture</p> <p>Workflow Architecture | </p> <p>OrganisationalLevelProcess LevelBusiness Object LevelThe key term here is 'workflow': the right agent doing the right work at the right time.The right work: Whatever you want to execute within a workflow. This work must be implemented as a method of a business object type in the Business Object Repository.Methods can be implemented as BAPIs. You can then call them from outside the system.BAPIs have an established static interface.The tool for maintaining business object types is the BOR (Business Object Repository).At the right time: The process level describes the business process in a sequence of individual steps. Together, these steps form the workflow definition.An individual step can refer to a method in the BOR, but it can also be used to control the process, for example, to allow loop processes, to query conditions or to fill the interface (= container) with values.The tool for maintaining the process level is the Workflow Builder.The right agent: The organizational level establishes the link to the organizational plan.- Each task that can be executed within a workflow has a group of possible agents. - By making further entries, this group can be restricted to the agent in the workflow step. - At runtime, selected agents receive a work item in their Business Workplaces. - If the work item is executed, the system starts the relevant method of the business object type.PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0 | Workflow Definition</p> <p> | Workflow Definition</p> <p>Workflow definition consists of</p> <p> Basic Data Information about triggering events Initial Values Containers Bindings</p> <p>A workflow definition describes the workflow processA workflow template contains:- The basic data of the workflow: this includes information about buffering reporting data, automatic forwarding, and so on.- Information about triggering events. If the specified event enters the system, the workflow starts if the event is actively linked to the workflow.- Initial values- Information about the interface (workflow and event container)- A link to the corresponding workflow definition, that is, information about the individual workflow steps that are to be executed. The binding identifies the relevant data required to execute the workflow. It establishes the connection between the input data required to execute a task and the output data as the result of the task, which has to be transferred to the next step in the workflow.PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0Workflow Builder | The workflow definition is created in the Workflow Builder and displayed graphically in a network.Transaction: SWDD Menu Path: Tools Business Workflow Development Definition tools Workflow Builder.</p> <p>The Workflow Builder is subdivided into the following areas:- The abbreviation, version and status display of the workflow definition that is currently displayed.- Steps: A tree structure containing the workflow step sequence. Double-click a step to call the relevant step definition.- Step types: All step types available for Drag&amp;Drop into the workflow definition. - Containers: These are workflow interface variables. You can use the context menu to create, change, display, delete and rename container elements.- My workflows and tasks: You can display tasks and workflows that are relevant for your workflow and double-click them to transfer them to your workflow definition.- Document templates: Create and display existing document templates.- Workflow Wizards: Display wizards to model steps and workflows.- Workflows of this definition: Display the runtime instances that are currently available.- Overview: Displays the entire workflow definition.- Message: All messages generated in the where-used lists and workflow tests are displayed here.The following areas are disjointed in the display: insertable step types, containers, my workflows and tasks, document templates, Workflow Wizards, and workflows of this definition. You have to choose one each time.PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0Workflow Definition - Steps | </p> <p>A workflow definition is made up of individual modular steps.When you create a step in a workflow definition, you must specifiy the step type first.The following step types exist:- Steps that relate to business activities: Activity, user decision, document from template, Web activity, send mail, and form. - Steps for internal process control and process monitoring: Condition, multiple condition, loop, fork, container operation, event creator, wait for event, ad hoc, and anchor.The steps can be arranged in series or in parallel processing (fork).The processing sequence of the steps depends on the result of each preceding step.The possible results of a step are usually derived from the relevant business function and are specfied in the workflow step on the 'Outcomes' tab.The system adds another branch to the processing chain for each possible outcome.Depending on their type, all steps and events have certain symbols in the graphical display.PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0Example Workflow | Create a simple workflow</p> <p>How are Workflows Created in a System | Within workflow templates, there is a key with the following structure:- A WS task abbreviation for the workflow template- An 8-digit sequence number</p> <p>From the structure of the 8-digit number, the system knows whether the template is a standard template delivered by SAP or one created by the customer.</p> <p>Customer-defined templates start with the prefix number that was defined in Customizing for the system and client.Working with Workflow | </p> <p> | </p> <p>How workflow gets executedWorkflow Toolbox - SWUS | Transaction: SWUS.Menu Path: Tools -&gt; Business Workflow -&gt; Development -&gt; Runtime Tools-&gt; Start Workflow (Test Environment).</p> <p>In the productive system, workflows are usually triggered by events. You can start a workflow for testing Transaction SWUI displays a list of small sample workflows.(toolbox principle)You can start the workflows and test them 'live'.Call the Workflow Builder and view the technical details for the workflow.Unlike transaction SWUS, which makes system workflows available to each user it can call, transaction SWUI only shows the user workflows in which he or she is explicitly named as the agent, or those workflows created as a general task.In the basic data of a workflow, you can use the 'Agent assignment for task' icon to maintain the possible agents of a workflow.PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0 | Workflow Steps</p> <p>Workflow definition steps | Workflow definition is made up of individual steps. When creating a step in a workflow definition, the step type must be specified first. </p> <p>There are Steps which refer to business activities (activities &amp; user decision)</p> <p>Steps which are used for internal process control and monitoring (condition, multiple condition, loop, etc) </p> <p>Business Activities Steps | Activity Can be a single step task with basic business functionalityCan be a multi-step task, which reference to a workflow definition</p> <p>User DecisionThis provides an opportunity for user interaction with the system.The response to this decides the selection of the subsequent step.</p> <p>Document from templatePA document is created from a document template using variables in the text that are filled during program execution.</p> <p> Web ActivitySelected container elements are posted using http protocol in XML or SOAP message</p> <p>SubworkflowAn activity which refers to a workflow rather than a task</p> <p>Internal process control Steps | ConditionBranch on the basis of control information from the runtime dependent context of the workflow. An attribute of this object can also be accessed for condition evaluationCondition evaluation can be done byField comparison e.g constants , object attribute, system fields</p> <p>Multiple conditionIn contrast to condition, multiple condition makes it possible for the workflow definition to branch in more than two branches.</p> <p>For evaluation of the multiple condition, the value of the basis of comparison is checked at runtime against the comparison values and branched accordingly.</p> <p>PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0Internal process control (contd.) | WHILE LoopSteps are processed repeatedly until the conditions contained in the WHILE step no longer apply.</p> <p>Until LoopSteps are processed repeatedly until the condition contained in the UNTIL step is true.</p> <p>ForkUsed for parallel processing branches.Only a part of the parallel processing branches actually has to run to continue the workflow.Dynamic parallel processing is also possible</p> <p>Internal process control (contd.) | Send mailText entered in this step can be used to send a mail to the agent assigned</p> <p>Container operationsUsed to perform arithmetic operation of value assignment to workflow container elements using constants and data in the workflow container .</p> <p>Internal process control (contd.) | Event CreatorAn event is created when this step in the workflow is reached.Other workflows can be started as a reaction to the event created in this step. This event must be the triggering event of the relevant workflow tasks and/or templates.</p> <p>WAIT for eventUsed to stop the whole execution of the workflow until the event is created in the system.Used to wait for events for parallel processing</p> <p> | Task &amp; Workflow DefinitionWorkflow Task | To create workflow task use transaction PFTC</p> <p> | TasksSingle stepMultistepStandard Task(TS)Customer Task(T)Workflow Template(WS)Workflow Task(WF)Tasks are used to describe a business process You can process tasks of the following types.</p> <p>Standard task (single-step tasks, task type TS)Customer task (single-step tasks, task type T) Workflow template (multi-step tasks, task type WS) Workflow task (multi-step task, task type WF) </p> <p>- Tasks - TS abbreviation, which specifically references one object type method and displays one step in the business process.- Workflows - WS abbreviation, which represents the business process and is a sequence of individual tasks and control steps. </p> <p>To create a single-step task, you must know the object type and its method to be executed with the task. To create a multi-step task, you must be familiar with the business process you wish to map as a workflow definition, its flow and its individual steps.</p> <p>Transaction code for creating a task is PFTC.</p> <p>PricewaterhouseCoopers LLP 3.04.#PricewaterhouseCoopers LLP / Selected SAP Technical TrainingProgrammingSeptember 1999Event Definition &amp; ImplementationRelease 4.0Similarities and differences of task types | Customer Task (Type T)Standard Task (Type TS)Workflow Task (Type WF)Workflow Template (Type WS)</p> <p>Created by customer Created by SAP and customer</p> <p>With validity period...</p>

Recommended

View more >