Page History
...
The EncryptJob class accepts the following arguments:
Name | Description | Default |
---|---|---|
| The job in the current workflow whose log is to be analysed When the job occurs more than one time in the workflow, the parameter "label" must be specified | |
label | The label of the job whose log is to be analysed When the job occurs more than one time in the workflow, the parameter "label" must be specified to unique identify the job whose log is to be analysed. | |
pattern | The regular expression to be used to examine the log The regular expression is applied to the log. Exampe 1: get lines with errors pattern = ".*error.*"
| | |
separator | To separate the matched values Executing the regular expression on the log can result in several matches. The matches are returned in the variable js7CheckLogMatches or js7CheckLogMatchedGroups and separated from each other with ‘separator’. | |
timeout | Maximum duration to get task history When the CheckLog job is executed, the database for the history may not yet be completed. Repeated calls are therefore made with a delay of of 3s each, but only for the maximum time specified for timeout. | 15 |
multiline | Handling the log as one or multiple lines Enables multiline mode. In multiline mode the expressions ^ and $ matchjust after or just before, respectively, a line terminator or the end of the input sequence. | |
case_insensitive | Handling of upper/lowercase Enables case-insensitive matching. By default, case-insensitive matching assumes that only characters in the US-ASCII charset are being matched. Unicode-aware case-insensitive matching can be enabled by specifying the UNICODE_CASE flag in conjunction with this flag. Case-insensitive matching can also be enabled via the embedded flag expression (?i). Specifying this flag may impose a slight performance penalty. | false |
unix_lines | Handling of line mode This flag enables Unix lines mode. In the Unix lines mode, only '\n' is used as a line terminator and ‘\r’ is treated as a literal character. | false |
Return Values
The returncode of the job is 0 when the pattern matches. Otherwise it is 1.
...