Redwood Documentation

Product Documentation

 

›Chain Definitions

RunMyJobsProcess and Chain Definitions

Process Definitions

  • Creating Process Definitions
  • Setting Chain Definition and Chain Definition Properties
  • Integrating Redwood Server with Web Services
  • Redwood Definition Types
  • Maintenance Process Definitions
  • Template Process Definitions
  • Top Level Process Definition
  • Submit Form Editor
  • Default System Process Definitions

Processes and Chains

  • Advanced Chain Diagram Quick Reference
  • Chain Diagram Quick Reference
  • Chain Runtime Viewer Quick Reference
  • Advanced Chain Definition Editor Quick Reference
  • Advanced Chain Runtime Viewer Quick Reference
  • Advanced Diagram Quick Reference
  • Parameter Validation using Constraints
  • Processes Waiting on Events
  • Setting the Scheduling Behavior on the Control Tab
  • Setting the Retention Period for Processes
  • Runtime Limits
  • Setting Process Definition Options
  • Defining Parameters
  • Constraint Definitions
  • Constraint Class
  • Raising Events
  • Processes with Locks
  • Reaction Processes
  • Restart Behavior on the Process Status Tab
  • Searching Files
  • Setting the Name and Editing the Process Definition Source
  • Customizing Processes with Specific Actions
  • Using Table Parameters
  • Automatically Deleting Old Processes and Chains
  • Editing Process Definitions Safely
  • Parameter Formats

Chain Definitions

  • Using Chain Definitions
  • Creating Chain Definitions
  • Steps
  • Chain Processes
  • Creating Chain Definitions with Sequential Processes
  • Creating Chain Definitions with Parameter Handling
  • Creating Chain Definitions with Parallel Chain Processes
  • Creating Chain Definitions with Chain Processes Dependencies
  • Creating Chain Definitions for Multiple SAP Systems
  • Precondition Functions

Restart Behavior

  • Controlling Global and Partition Restart Behavior
← Parameter FormatsCreating Chain Definitions →

Using Chain Definitions

A chain executes one or more chain processes in parallel or sequentially. The chain processes are grouped into steps. All chain processes in a step are executed simultaneously (parallel processing) and the process server waits until all chain processes in a step get a final status before proceeding with the next step (sequential processing). Chain Processes executed by chains are still subject to routing using queues and resources and the limitations applied by queue limits and locks.

A Chain Definition is a JobDefinition of type JOBCHAIN, where the scheduling and runtime behavior of the chain are defined.

A step gets an error status when one of its chain processes runs into a erroneous status. A chain aborts by default when one of its steps gets an error. This can be overridden by defining a status handler.

Tab-Specific Topics

TabRelevant topic
ChainCreating chain definitions
ParametersProcess definition parameters Parameter validation Using Table Parameters
RetentionSetting the Retention Period for Processes
Process ControlSetting the Scheduling Behavior
OptionsSetting Process Definition Options
Wait EventsProcess definition wait events
Raise EventsProcess definition raise events
LocksProcess definition locks
Runtime LimitsProcess definition runtime limits
StatusProcess definition restart behavior
ActionsProcess definition actions
Published Web ServicesConnecting Web Services with Redwood Server
Process Monitor UpdatesCreating Process Monitors
File SearchesSearching Files
SecurityProcess definition object privileges

Status Handlers

Status handlers can be defined at two levels:

  • chain level, called default status handlers.
  • Step level, called step status handlers.

A status handler defined at chain level acts as default for a step. Chain status handlers are overruled by any triggered step status handler. A status handler is triggered when one or more chain processes in a step, a step in the chain, or the chain itself reach a specific status:

Status handlers are evaluated as follows:

  1. A Completed handler triggers only if all chain processes in the step have the status Completed or Ignored.
  2. Otherwise, a Canceled handler triggers when there is at least one chain process with the status Canceled.
  3. Otherwise, an Error handler triggers when there is at least one chain process with the status Error.
  4. Otherwise, a Killed handler triggers when there is at least one chain process with the status Killed.
  5. Otherwise, an Unknown handler triggers when there is at least one chain process with the status Unknown.
  6. Finally, if no other handler is triggered, an 'Otherwise' handler will trigger.

Restart Behavior is used to control when the submit frame should be interrupted and the recurrence stopped. By default, final states resume the recurrence.

Context-Menu

Chain processes have the following context-menu actions:

ActionDescription
Show Chain diagramDisplay a diagram of the chain with related objects.
SubmitSubmit the chain definition; this action is only available for top-level chain definitions.
Cancel non-final state chainsCancel chains that have not reached a final state, see the States section for more information on states.
Delete final state chainsDelete chain definitions that have reached a final state, see the States section for more information on states.
Monitor related chainsJump to the chain monitor with a temporary filter displaying chains and chain processes for the chain definition.
Reset StatisticsReset the runtime statistics for the chain.
Export > ExportExport the chain definition into a CAR file.
Export > Export with related objectsExport the chain 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 chain definition to another Redwood Server instance.
EditEdit the chain definition.
Edit Submit formEdit the submit for of the chain.
Edit SecurityEdit the security of the chain definition.
DeleteDelete the chain definition.
DuplicateDuplicate the chain definition.
Expand allAllows you to expand the entire tree of the chain definition.
NewCreate a new chain definition.
Filter > New FilterCreate a new chain definition filter.
Filter > Edit FilterEdit current chain definition filter.
Filter > DeleteDelete current chain 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.

Finding Chain Definitions

You can search for chain definitions using filters and the Search Chain Definitions box on the Chain 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 chain 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 chain 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 chains that changed before a certain ISO-8601 period

Queue Selection

In general, when you set a queue on the chain, the queue is used for all calls that do not have the Queue scheduling parameter set.

When you have calls to one or more of the following definition types in your chain, no Queue scheduling parameter is set on the call and the queue set in the Queue scheduling parameter of the chain is not valid for the call, the queue is determined as follows:

  • SAPR3, OraApps, OraOHI, and Publish - the default queue of the specified remote system.
  • JDBC and AS400 - the queue is looked up in the following order:
    • First queue that only provides the process server in question (and no others).
    • First queue that provides the process server in question.

The above queue selection mechanism requires the system constraints to be set on the definitions. The constraints are automatically created when you create the process definitions, however, it is possible to manually delete constraints - in this case you will be able to submit the chain and any process definition with an invalid queue will reach status Error.

When you have a call to a process definition that has an invalid Queue parameter specified on the call you will not be able to submit the chain.

Deleting Chain Definitions

You can only delete chain definitions when no other objects relate to them. For example, if the chain definition is still referred to in another chain definition, for example, the chain definition cannot be deleted until all relations have been deleted. You can see relations that relate to the chain definition in Related Objects in the lower detail pane and on the show page. Furthermore, chain processes of a chain will prevent you from deleting the chain, these will not be displayed in the Related Objects table.

The table in related objects contains three columns:

  • Type - the type of object, like for chains, Source for the source of the chain 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 in different roles

For example, chain definitions that are called in other chain definitions, will have the call-reference in Related Objects. The type will be Chain Process, and the Related Object will be the name of the chain definition, for example, if it is the first chain process in a step, it will be Process 1.

Chain Definition Messages

By default, several of the internal chain components create JobNotes under different circumstances to store processing and/or error messages. You can overrule this to create OperatorMessages instead by specifying the following registry entry and setting it to OperatorMessage.

/configuration/jcs/JobChainMessageLocation

JobChain

← Parameter FormatsCreating Chain Definitions →
  • Tab-Specific Topics
  • Status Handlers
  • Context-Menu
  • Finding Chain Definitions
  • Queue Selection
  • Deleting Chain Definitions
  • Chain Definition Messages
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 |