Top
Systemwalker Runbook Automation Reference Guide
Systemwalker

3.14.2 Sort strings

Description

This operation component reorders delimiter-separated strings in the name order.

Options

Basic Options

(1) string

These are strings which are separated by a delimiter.

An argument error will occur if strings are omitted.

A maximum of 100 strings can be separated by a delimiter and specified. If this number is exceeded, an argument error occurs.

Strings that run over multiple lines (separate by line feed characters) can be specified.

Strings that do not end in a line feed character and single strings that end in a line feed character are treated as a single line.

(2) delimiter

This is the delimiter used to separate the strings.

The following can be specified as delimiters: Symbols, spaces, tabs, and line feeds. However, double quotes cannot be specified. Spaces are specified as "\s", tabs are specified as "\t", and line feeds are specified as "\n" or "\r\n".'

If the delimiter was omitted, a comma (",") will be used by default.

Only one delimiter can be specified. An argument error will occur if multiple delimiters are specified.

Also, if the string specified for the "string" option has multiple lines, only the line feed character can be specified as the delimiter. An argument error occurs if a value other than the line feed character is specified.

Advanced Options

(1) reverse

Specify ascending order/descending order.

To sort in descending order, specify "on".

To sort in ascending order, specify "off".

The default value is "off". This option is not case sensitive.

Return Values

Icon

Name

Return value

Description

Success

0

The delimiter-separated strings have been reordered successfully.

Failure

197

There is an error with the content of an option.

-

-

201

Execution of the operation component timed out.

202

The operation component has not been executed. There is a problem with the settings for executing the operation component.

203

The operation component has not been executed normally. There is a problem with the Management Server environment.

205

The operation component has not been executed. There is a problem with the input information specification of the operation component.

206

The operation component has not been executed normally. There is a problem with the output information specification of the operation component.

207

The operation component has not been executed. The operation component may not have been registered on the Management Server.

208

The Automated Operation Process has been canceled because the Automated Operation Process was recovered while the operation component was executing.

Output information

Variable

Description

message

This variable will be set to the following message if the strings are reordered successfully.

The operation component was successful.

If an attempt to reorder the strings fails, the content of the error will be set as a string.

string

This variable is set to the reordered string.

<Example>
If "server1,_server2,3server,server4" is specified for the "string" option:

"_server2,3server,server1,server4"

returnCode

This variable is set to the return value.

Notes