Copyright 2024 - BV TallVision IT
Methods, business object and event
- Methods are functions that can be executed from a workflow task
- Methods are always defined on a business object
- A business object should be regarded as the main “object” or “subject” of the workflow
- Events are created on the business object (read: the event definition)
- Events can be used to trigger a workflow or a workflow task
- There is a clear relationship between the event and a business object, as events are created for a business object
- Business objects have key fields (almost always)
- A method is called by a task which can be triggered by a triggering event
- A method can also be called from another method, using macro
SWC_METHOD_CALL
Triggering
- Events (read: the event instance) can be thrown/created in several ways like: change documents, a workflow, from an ABAP via a function module call or via a test tool
- A task can be triggered by a triggering event
- A task can be triggered as a step of a workflow
- A workflow can itself be started from another workflow (sub workflow)
- A workflow can also be started directly (even without event) (e.g. via function module
SWW_WI_CREATE_SIMPLE
)
- A triggering event on a task or workflow needs to be active, this is called linkage (linking a workflow or task to an event)
Containers
- Containers hold data that is relevant to the workflow, event or task (or rule)
- A workflow has a container. A task has a container. An event has a container
- A method has a container. A rule has a container
- A binding is a mapping from container to container (e.g. From workflow to a workflow task)
Tasks
- Tasks relate to a method. Executing a task is related to executing a method
- There are background tasks and foreground tasks or dialog work items
- Foreground tasks should be assigned to an organisational unit (an organisation plan, a job, position, role, rule or directly to a user)
- Foreground tasks will be presented to Mr. Enduser in the inbox
Reporting and inbox entries
- Reporting can be used to find the workflows that started and their status, where errors occured, the log can be used to determine what went wrong
- The longtext on a foreground task will appear in the inbox message
- Any objects (instances of business objects) in the workflow container of a foreground task, will appear as attachments in the inbox entry