Redwood Documentation

Product Documentation

 

›Processes and Chains

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
← Restart Behavior on the Process Status TabSetting the Name and Editing the Process Definition Source →

Searching Files

You use File Searches to parse output and log files for a specific string pattern. You can force the process to a specific status when the file matches the pattern, you can also store the matched string in an Out parameter, or a part of it.

FieldDescription
Processing OrderFile searches are performed in sequence, following the processing order, until one is matched that has the Stop property checked or the last file search has been performed.
StopSpecifies a file searcher that will prevent any file searches to be performed if matched.
NoteAdd a note with the result of the file search.
FileThe name of the file to search through.
Search PatternThe pattern that the searcher is looking for in the file, you can use GLOB (* and ?).
Begin LineLine at which to begin the search, use -1 to start from the end of the file, with the Reverse property set.
End LineLine after which to stop, if the Reverse property is set, lines are counted from the end of the file. You specify -1 (default) which is evaluated as end of file.
Return CodeThe return code to give to the process if the pattern matched.
New Process StatusThe status to give to the process if the pattern matched.
Entire LinePattern must match entire line, not just a substring of it.
Ignore CaseCase insensitive search.
ReverseStart from the end of the file.
Wild CardAllow the use of wild cards.
Output ParameterThe Out parameter to use.
Out Param ExprREL expression for the Out parameter value; the built-in variable line contains the string of the line matching the search criteria.

Execution

In previous versions, many customers were using post running actions to search for errors or warnings in log files and set the status of the process. In version 9, file searches were introduced to allow you to easily create such post running actions.

If the process definition is using the file search feature and there is also a Post Running action configured on the Actions tab, and/or a trigger has been created using the Before Process Post Running trigger option in the Scripting > Triggers module, the file search is executed first. In the case when all three options are configured, they are executed in the order listed below.

  1. File search
  2. Before Process Post Running Trigger
  3. Post Running Action

Example

You have a process that does not always return a return code above 0 when errors occur and you would still like Redwood Server to pick up a specific error message in the log.

You would like to create a note with the error as well as store the matched line in the Out parameter P_Error_Code so you can quickly see what the error was. The process in question runs a PL/SQL script and you should detect Oracle ORA-12345 errors.

  1. Navigate to "Definitions > Processes".
  2. Select Edit from the context-menu of the process definition in question.
  3. On the File Searches tab, choose Add.
  4. Fill the data of the following table into the fields, choose Save & Close.
FieldValue
Processing Order0
Stopx
Notex
Filestderr.log
Search PatternORA-*
Begin Line1
End Line-1
Return Code1
New StatusError
Entire Linex
Ignore Case

Reverse

Wild Cardx
Output Definition ParameterP_Error_Code
Out Parameter Expression=line.substring(12)

See Also

  • Actions
  • Triggers

JobChain JobDefinition ProcessDefinition FileSearch JobFileSearch

← Restart Behavior on the Process Status TabSetting the Name and Editing the Process Definition Source →
  • Execution
  • Example
  • 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 |