Redwood Documentation

Product Documentation

 

›Locks and Events

RunMyJobsAutomation Concepts

Automation Concepts

  • Central Scheduling Concepts
  • Automating Processes Across the System Landscape
  • Processes, Chains, and History
  • Queues and Process Servers
  • Workload
  • SAP Systems
  • Events and Event Definitions
  • Scheduling
  • Applications
  • Editing Objects in XML

Locks and Events

  • Prevent Simultaneous Execution of Processes
  • Creating Locks
  • Creating Event-Driven Schedules with Events

Documents

  • Documenting Code, Procedures, and Messages with Documents

Applications

  • Organizing Processes in Applications
  • Creating Applications

End User Overviews

  • End User Interfaces
  • Process Monitors Overview
  • Process Monitors Overview Columns
  • User Message Monitor
  • Designing User Message Forms
  • User Message Monitor Columns
  • Interacting with User Messages
  • Feeds

Managing Output Formats

  • Managing Output Formats

Regular Activities

  • Regular Activities for Redwood Server

Promoting Objects

  • Migrating Objects with the Promotion Module
  • Exporting Redwood Server Objects
  • Export Rule Sets
  • Creating Export Rule Sets
  • Importing Objects
  • Importing Redwood Server Objects with Imports
  • Using Import Rule Sets to Customize Imports
  • Importing Objects with Import Rule Sets
  • Creating Remote Systems
  • Promotion Reaction Processes
  • Integrating Redwood Server Promotion into SAP CTS+
  • Pusher Process Definitions for SAP CTS+ Integration

Backup and Recovery

  • Backup and Recovery of Redwood Server
  • Database Backup
  • Restore Data from Backup

Reference

  • Managing Output Formats
← Creating LocksDocumenting Code, Procedures, and Messages with Documents →

Creating Event-Driven Schedules with Events

Events allow the creation of complex dependencies, as they can be raised and cleared by completed processes or manually. If you have platform agents, you can also create file events which allow files to raise events. A process waiting on events will not start until all events it is waiting for have been raised. This guarantees that a process will not start unless all conditions are met for it to start.

Event definitions define event objects. When an event definition is raised, a new event object is created and associated with the event definition.

Raising an event definition object multiple times will create a queue of event objects of which the first event will be raised and all queued event objects will be pending.

Clearing a raised event definition will clear its currently raised event object and, if there are pending event objects queued for the event definition, raise the next event object and put the event definition back into the raised state. If there are no more pending event objects to be raised, the event definition returns to the cleared state.

Events can be raised and cleared manually, by completed processes, an SAP System repository object, and the ProcessServerService (for file events). Processes can wait for one or more event objects to be raised before they start. The Raised by and Cleared by fields will clearly reference which object or user raised or cleared the event.

Event Definitions are part of the Definitions section in the navigation bar. There are no standard event definitions provided with Redwood Server. Raiser and Clearer Comments can be made compulsory, forcing users who manually raise or clear an event to provide a reason for their actions. For processes and chain definitions, the raiser/clearer comments can be defined on the process / chain definition. The event has Raiser and Clearer Object fields that hold the object or user that raised or cleared the event.

User Interface

Tabs & Fields

The following table illustrates the fields of each tab of Event Definition editor dialogs.

TabFieldDescription
Event DefinitionPartitionPartitions allow you to group objects security-wise.
Event DefinitionNameNames must start with a letter and contain only letters of the ASCII alphabet (no umlaut, for example), underscores (_), and digits.
Event DefinitionApplicationApplications allow you to group objects functionally.
Event DefinitionDescriptionDescriptions accept free text, any printable UTF-8 character combination; ensure the client systems have both browsers and fonts required to display the characters.
Event DefinitionRequires Comment On Raise By UserUsers who raise events from this definition must fill out a raiser comment, if this is set.
Event DefinitionDefault Raise CommentThe predefined text for the raiser comment can contain any combination of printable UTF-8 characters, limited to 255 characters. Accepts Apache Ant-style substitution parameters, see Raiser Comments below.
Event DefinitionRequires Comment On Clear By UserUsers who clear events from this definition must fill out a clearer comment, if this is set.
Event DefinitionDefault Clear CommentThe predefined text for the clearer comment can contain any combination of printable UTF-8 characters, limited to 255 characters. Accepts Apache Ant-style substitution parameters, see Clearer Comments.
DocumentationDocumentationDocumentation fields accept free text, any printable UTF-8 character combination. You use the Documentation field to document the object for co-workers and as a future reference; this field is also used on some objects to place specific markers that alter the behavior of the object.
File Event DefinitionsNameNames must start with a letter and contain only letters of the ASCII alphabet (no umlaut, for example), underscores (_), and numbers.
File Event DefinitionsDescriptionDescriptions accept free text, any printable UTF-8 character combination and is limited to 1000 characters; ensure the client systems have both browsers and fonts required to display the characters.
File Event DefinitionsCommentComment fields accept free text, any printable UTF-8 character combination and is limited to 255 characters. You use the Comment field to document the object for co-workers and as a future reference.
File Event DefinitionsEnabledIs the file event enabled or not?.
File Event DefinitionsRaise on file(s) > Process ServerThe process server running on the remote system where the file is reachable.
File Event DefinitionsRaise on file(s) > DirectoryDirectory containing the file.
File Event DefinitionsRaise on file(s) > PatternFilename or filename-pattern (GLOB) of the file to look for. Accepts GLOB wildcards: ? - Match one unknown character; on Windows, zero or one unknown character except dot (.), which is not matched * - Match zero or more unknown characters.
File Event DefinitionsMove DirectoryDirectory to which the file is moved once the event was raised.
File Event DefinitionsOverwrite FileIf a file of the same name exists in the Move Directory should it be overwritten?.
File Event DefinitionsPoll IntervalThe number of seconds between each check.
File Event DefinitionMinimal SizeThe minimal file size in bytes; the event will not be raised until the minimal size has been reached.
File Event DefinitionMinimal AgeThe minimal age in seconds since last modification; the event will not be raised until the minimal age has been reached.
File Event DefinitionsCheck if file is in useAn additional check is performed to ensure there are no open file handles to the file.
File Event DefinitionsRaise CommentA raise comment that is used when a file raises the event and can contain any combination of printable UTF-8 characters, limited to 255 characters. Accepts Apache Ant-style substitution parameters, see Raiser Comments below.
Security*This is where you can specify who can access/change/remove the event definition.

Context-Menu

Event definitions support the following context-menu actions:

ActionDescription
RaiseRaise the event definition.
ClearClear the event definition.
Clear All PendingClears all pending event definitions.
Export > ExportExport the event definition into a CAR file.
Export > Export with related objectsExport the event definition into a CAR file including referenced objects.
Promote > Promote to systemPromote the object to a remote system.
Promote > Edit further then promoteEdit the export rule set prior to promoting.
PromotePromote the event definition to another Redwood Server instance.
EditEdit the event definition.
Edit SecurityEdit the security of the event definition.
DeleteDelete the event definition.
DuplicateDuplicate the event definition.
Expand AllExpand all event definitions in the current filter.
Show permalinksShow links that can be used from third party applications to link to the object.
Add to navigation barAdd the current object to the navigation bar.
New event definitionCreate a new event definition.
Filter > New FilterCreate a new event definition filter.
Filter > Edit FilterEdit current event definition filter.
Filter > DeleteDelete current event definition filter.
Filter > Duplicate FilterCreate a copy of the filter.
Filter > Export FilterExport the filter into a CAR file.
Filter > Add to navigation barAdd the filter to a navigation bar.
Filter > Create filter from searchCreate a filter from the current IntelliSearch query.

Substitution Parameters

Substitution parameters are place holders that are replaced when an event is raised or cleared.

Raiser Comments

The following substitution parameters are available for raiser comments in processes and chain definitions:

  • ${jobid} - The ID of the raiser process.
  • ${jobdescription} - the raiser process name, as displayed by the chain definitions monitor at the time of raising the event.
  • ${jobstatus} - The status of the process at the time it raised the event.

The default raiser comment is the following:

Event raised by process:${jobid} (${jobdescription}) going to status ${jobstatus}.

File Event Raiser Comments

Events can also be raised by files on servers with a platform agent or on AS/400 systems.

The following substitution parameters are available for raiser comments of file events:

All DateTime variables use the format yyyyMMddHHmmss; you can specify a Java DateTimeFormatter pattern using the ${FileDateTime:HHmmss} syntax.

  • ${CurrentDateTime} - agent date & time when the file was detected.
  • ${CurrentTimeStamp} - agent timestamp at which the file was detected, in a numeric format containing the milliseconds since 1970, usually referred to as epoch or UNIX time.
  • ${FileDateTime} - File modification date & time.
  • ${FileTimeStamp} - File modification time in epoch.
  • ${ServerDateTime} - Central server date & time when the event was raised.
  • ${ServerTimeStamp} - Central server time in epoch when the event was raised.
  • ${processServer - name of the process server.
  • ${server} - Platform agent name.
  • ${filename} - path of the detected file (before any move).
  • ${finalPath} - new path of the detected file (after any move).
note

${DateTime} and ${TimeStamp} have been deprecated and should not be used anymore, the equivalents are ${CurrentDateTime} and ${CurrentTimeStamp}, respectively.

The default file event raiser comment is the following:

File event raised by "${filename}" on "${server}"

The following topics cover file events in more details:

  • Triggering Events with Files
  • Files on AS/400 Trigger Events

File Event Move Directory

All DateTime variables use the format yyyyMMddHHmmss; you can specify a Java DateTimeFormatter using the ${FileDateTime:HHmmss} syntax.

  • ${BaseDirectory} - path to the directory containing the detected file.
  • ${BaseName} - base filename of the detected file.
  • ${Name} - filename of the detected file.
  • ${Dot} - dot (``.) such as found in filenames before the extension.
  • ${Extension} - extension of the detected file.
  • ${CurrentDateTime} - agent date & time when the file was detected.
  • ${CurrentTimeStamp} - agent timestamp at which the file was detected, in a numeric format containing the milliseconds since 1970, usually referred to as epoch or UNIX time.
  • ${DateTime} - deprecated in favor of CurrentDateTime.
  • ${TimeStamp} - deprecated in favor of CurrentTimeStamp.
  • ${FileDateTime} - File modification date & time.
  • ${FileTimeStamp} - File modification time in epoch.
  • ${fileName} - filename (full path of file) of the detected file.
  • ${UniqueId} - the unique ID of the file event.
note

${DateTime} and ${TimeStamp} have been deprecated and should not be used anymore, the equivalents are ${CurrentDateTime} and ${CurrentTimeStamp}, respectively.

Clearer Comments

The following substitution parameters are available for clearer comments in processes and chain definitions:

  • ${jobid} - The ID of the clearer job.
  • ${jobdescription} - the raiser process name, as displayed by the processes monitor at the time of clearing the event.

Finding Event Definitions

You can search for event definitions using filters and the Search Event Definitions box on the Event Definitions tab. This box is known as the IntelliSearch box and located under your username on the top right-hand side of the user interface. Filters allow you to specify a list of objects with static criteria. IntelliSearch allows you to specify complex queries in a simple way using prefixes. Prefixes are used to specify which property you are searching in and have short as well as long syntaxes. For example, if you want to display all event definitions with the term import in the comment, you would use the search criteria as follows:

c:import

You can search more than one property, as follows:

c:import n:Bi
note

No spaces should be entered before or after the colon (: ).

See the Advanced Object Search for more information.

The following table illustrates the available prefixes for event definitions:

PrefixesDescription
n, namesearches the name property.
c, comm, commentsearches the documentation property.
d, desc, descriptionsearches the description property.
a, applicationsearches the application property.
cb, changedbefore(internal) search for event definition that changed before a certain ISO-8601 period

Deleting Event Definitions

You can only delete event definitions when no other objects relate to them. For example, if there are still processes or processes that reference the event (both as wait or raise event), the event definition cannot be deleted until all references have been deleted. You can see all references to the event definition in Related Objects in the lower detail pane and on the show page. Furthermore, you cannot delete events which are raised, clear them before you delete them.

note

Raise events are not displayed in the Related Objects table as these events are displayed as Raised in the event definition table.

The table in related objects contains three columns:

  • Type - the type of object, like process raise event for for a raise event in a process, with a link to it.
  • Related Object - the name of the object with a link to it.
  • Used As - objects can sometimes be used as different object types.

For example, event definitions that are used in chain definitions, will have the call-reference in Related Objects. The type will be Process Definition Raise Event or Chain Definition Raise Event, for example and the Related Object will be the name of the chain definition followed by a colon and the name of the event.

Security

PrivilegeDescription
EventDefinition.CreateCreate event objects
EventDefinition.ViewAccess events and event objects
EventDefinition.RaiseRaise events
EventDefinition.ClearClear events
EventDefinition.Clear Pending EventsClear pending events
EventDefinition.Delete Archived EventsDelete archived events
EventDefinition.EditEdit event objects
EventDefinition.DeleteDelete event objects

You can grant privileges on two levels, Access and Admin; a privilege granted on Admin level allows the grantee to grant the privilege to other users. These privileges can be granted per partition or system-wide.

The Security tab allows you to specify which users can access, edit and delete the event object.

  • Granting and Revoking System Privileges
  • Granting or Revoking Object Privileges

Procedure

  1. Choose "Definitions > Event Definitions".
  2. Choose Refresh to see all existing event definitions.
  3. Choose New Event Definition to create an event definition.
  4. Fill in the details, refer to the section below.
  5. Choose Save and Close to save the event definition.

Example

  1. Choose "Definitions > Event Definitions" in the Navigation bar.
  2. Choose New Event Definition and fill in these values:

Event Definition Tab

Name: DataWareHouseLoaded
Description: Data Warehouse loaded
Documentation: The data warehouse has been loaded. Reports that require data from the data warehouse should wait for this event to be raised.

See Also

  • Documenting Objects using the Documentation Tab

EventDefinition

← Creating LocksDocumenting Code, Procedures, and Messages with Documents →
  • User Interface
    • Tabs & Fields
    • Context-Menu
  • Substitution Parameters
    • Raiser Comments
    • File Event Raiser Comments
    • File Event Move Directory
    • Clearer Comments
  • Finding Event Definitions
  • Deleting Event Definitions
    • Security
  • Procedure
  • Example
    • Event Definition Tab
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |