Description
This command enables an administrator to operate following operations without using Web console.
Registration and update of Automated Operation Process Group
Registration and update of Process Definition
Retrieval and display of Process Definition
Publishing the Process Definition
Start of process
Retrieval of process instance
Collection of detailed information of process instance
Deletion of process instance
Synopsis
swrba_admin app-add -user User ID -file Bar file |
swrba_admin app-update -user User ID -file Bar file |
swrba_admin pd-add -user User ID -file Process definition file -appid Automated Operation Process Group ID |
swrba_admin pd-update -user User ID -file Process definition file -appid Automated Operation Process Group ID |
swrba_admin pd-publish -user User ID -appid Automated Operation Process Group ID -pdname Process definition name [-version Version of Process Definition] |
swrba_admin pd-list -user User ID [-state {draft|published|obsolete}] [-appid Automated Operation Process Group ID] [-pdname Process definition name,... [-namematch {forward|backward}]] |
swrba_admin pi-start -user User ID -appid Automated Operation Process Group ID -pdname Process definition name [-version Version of Process Definition] [-paramfile Parameter file] |
swrba_admin pi-list -user User ID [-startedafter yyyy-mm-dd] [-startedbefore yyyy-mm-dd] [-state {running|closed|suspended|aborted|created|error}] [-piid Process instance ID] [-pdname Process definition name,... [-namematch {forward|backward}]] [-initiator User ID that started process] [-appid Automated Operation Process Group ID] |
swrba_admin pi-get -user User ID -d Output directory [-startedafter yyyy-mm-dd] [-startedbefore yyyy-mm-dd] [-state {running|closed|suspended|aborted|created|error}] [-piid Process instance ID] [-pdname Process definition name,... [-namematch {forward|backward}]] [-initiator User ID for starting] [-appid Automated Operation Process Group ID] |
swrba_admin pi-delete -user User ID {[-startedafter yyyy-mm-dd] [-startedbefore yyyy-mm-dd] [-state {running|closed|suspended|aborted|created|error}] [-piid Process instance ID] [-pdname Process definition name,... [-namematch {forward|backward}]] [-initiator User ID for starting] [-appid Automated Operation Process Group ID]} |
It is also possible to set the password as a parameter by specifying -password. When the password is not set to the parameter, password input is required after execution of this command.
Options
The following options can't be specified at the same time.
This option registers Automated Operation Process Group.
Specify the path of the Bar file that is registered. When same name Automated Operation Process Group is exist, this command outputs error. When registration succeeds, Automated Operation Process Group becomes online automatically.
This option updates Automated Operation Process Group.
Specify the path of the Bar file that is updated. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
When the Automated Operation Process Group has been updated, the Automated Operation Process Group becomes off-line, and it becomes impossible to refer to the Process Definition besides the Automated Operation Process Group owner. When the update finished, the automatic process group becomes on-line automatically.
This option registers Process Definition.
This option registers Process Definition. When the same name Process Definition exists in the Automated Operation Process Group or the Automated Operation Process Group it doesn't exist, this command outputs an error. Moreover, when you don't specify the automatic process group ID, this command outputs an error.
Specify the Automated Operation Process Group ID that stores the Process Definition. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
This command updates Process Definition.
This command updates Process Definition. When the specified Process Definition doesn't exist, this command outputs an error. The Process Definition is registered with state of draft.
Moreover, even if the update of the Process Definition is completed, the update is not reflected in the process instance that has already started. The update becomes effective from the process started after the publication of the updated Process Definition.
Specify the Automated Operation Process Group ID that stores the Process Definition. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
This option publishes the Process Definition.
Specify the Automated Operation Process Group ID. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
Specify the process definition name. When the Process Definition doesn't exist, this command outputs an error.
Specify the version of Process Definition. When the version of Process Definition doesn't exist, this command outputs an error.
When you omit this option, this command publishes the latest version. When you specified the published version, this command outputs an error.
This option retrieves Process Definition and displays it as a list form. When you don't specify any parameter, this command retrieves all Process Definition. The parameters that can be specified are show below.
Specify state of the Process Definition. When you omit this option, this command retrieves all state. The states that can be specified are shown below.
draft : draft state
published : published state
obsolete : obsolete state
When you specify two or more options, specify it by comma (,) delimitation.
Specify the Automated Operation Process Group ID.
Specify the process definition name.
Specify the retrieval pattern of the process definition name. Select forward agreement or backward agreement. When you specify none, this command retrieves with perfect matching.
This option starts process.
Specify the Automated Operation Process Group ID. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
Specify the process definition name. When the Process Definition doesn't exist, this command outputs an error.
Specify the version of Process Definition. When the version of Process Definition doesn't exist, this command outputs an error.
When you omit this option, this command publishes the latest version. When you specified the published version, this command outputs an error.
Specify the file name in which the parameter necessary for the starting process is described. Describe the following content in the file.
UDA name =value |
The description form of the file is a general property file form of Java.
Specify the value for UDA and start the process. When the specified UDA doesn't exist, this command outputs an error. Moreover, The form of the value that can be used is only STRING type. When character-code of the specified file is not UTF-8, this command outputs an error.
You can start the published Process Definition and the Process Definition that belong to the user who executed this command.
This option retrieves the process instance and displays it by the list form. When you specified none, this command retrieves all process instances. You can specify the parameters that are shown below.
Specify the start date of the period when the process was started. Specify it in the form of the following.
yyyy-mm-dd
Specify the end date of the period when the process was started. Specify it in the form of the following.
yyyy-mm-dd
When you only specified -startedafter, this command retrieves the period from the specified date to now. When you specified this command outputs the error when the option is specified by a form other than the above and when the relation between the start date and the end date is illegal.
Specify the process instance ID.
Specify the state of Process Definition. When you don't specify none option, this command retrieves all Process Definition. The states that can be specified are shown below.
running
closed
suspended
aborted
created
error
When you specify two or more options, specify it by comma (,) delimitation.
Specify the process definition name. When you specify two or more options, specify it by comma (,) delimitation.
Moreover, you can set the detailed condition by using the following parameter.
Specify the retrieval pattern of the process definition name. Select forward agreement or backward agreement. When you specify none, this command retrieves with perfect matching.
Specify the Automated Operation Process Group ID. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
Specify the user ID that started the process. When you specify two or more options, specify it by comma (,) delimitation.
This option retrieves the process instance and collects detailed information. When you don't specify parameter, this command retrieves all process instances. The parameters that you can specify are shown below.
Specify the output directory. The structure and output contents are shown below.
- Automated Operation Process Group ID - process instance ID - process instance ID.xml : The file that has the detailed information of process instance - attachmentsfiles directory : The directory that stores the files appended to process instance
For more information about the detailed information file for process instance, refer to 2.4 Detailed Information File for Process Instance.
Specify the start date of the period when the process was started. Specify it in the form of the following.
yyyy-mm-dd
Specify the end date of the period when the process was started. Specify it in the form of the following.
yyyy-mm-dd
When you only specified -startedafter, this command retrieves the period from the specified date to now. When you specified this command outputs the error when the option is specified by a form other than the above and when the relation between the start date and the end date is illegal.
Specify the process instance ID.
Specify the state of Process Definition. When you don't specify none option, this command retrieves all Process Definition. The states that can be specified are shown below.
running
closed
suspended
aborted
created
error
When you specify two or more options, specify it by comma (,) delimitation.
Specify the process definition name. When you specify two or more options, specify it by comma (,) delimitation. Moreover, you can set the detailed condition by using the following parameter.
Specify the retrieval pattern of the process definition name. Select forward agreement or backward agreement. When you specify none, this command retrieves with perfect matching.
Specify the Automated Operation Process Group ID. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
Specify the user ID that started the process. When you specify two or more options, specify it by comma (,) delimitation.
This option deletes the process instance.
Specify the start date of the period when the process was started. Specify it in the form of the following.
yyyy-mm-dd
Specify the end date of the period when the process was started. Specify it in the form of the following.
yyyy-mm-dd
When you only specified -startedafter, this command retrieves the period from the specified date to now. When you specified this command outputs the error when the option is specified by a form other than the above and when the relation between the start date and the end date is illegal.
Specify the state of Process Definition. When you don't specify none option, this command retrieves all Process Definition. The states that can be specified are shown below.
running
closed
suspended
aborted
created
error
When you specify two or more options, specify it by comma (,) delimitation.
Specify the process instance ID.
Specify the process definition name. When you specify two or more options, specify it by comma (,) delimitation. Moreover, you can set the detailed condition by using the following parameter.
Specify the retrieval pattern of the process definition name. Select forward agreement or backward agreement. When you specify none, this command retrieves with perfect matching.
Specify the Automated Operation Process Group ID. When the specified Automated Operation Process Group doesn't exist, this command outputs an error.
Specify the user ID that started the process. When you specify two or more options, specify it by comma (,) delimitation.
Return Values
Return Value | Meaning |
---|---|
0 | Normal termination |
1 | Parameter error |
2 | Attestation error |
3 | Error on Manager server |
4 | Internal error |
5 | Authority error |
6 | I/O error |
Irregularity | Forced ending |
Command Location
[Windows]
<Systemwalker Runbook Automation installation directory>\bin |
[Linux]
/opt/FJSVswrbam/bin |
Privilege Required/Execution Environment
[Windows]
This command requires administrator privileges. When using Windows Server 2008 or later operating system, run as an administrator.
This command can be executed on a Management Server.
This command can be executed by the user who has the authority to log in to Web console.
When you operate the following operation, you need the authority to log in to the Web console and the manager authority.
Registration and update of the Automated Operation Process Group
Deletion of the process instance
Publication of the Process Definition.
Moreover, if you have above authorities, you can retrieve all Process Definition and process instance.
[Linux]
This can only be executed by a system administrator (superuser).
This command can be executed on a Management Server.
This command can be executed by the user who has the authority to log in to Web console.
When you operate the following operation, you need the authority to log in to the Web console and the manager authority.
Registration and update of the Automated Operation Process Group
Deletion of the process instance
Publication of the Process Definition.
Moreover, if you have above authorities, you can retrieve all Process Definition and process instance.
Note
About Bar file
The Bar file must be the file that was exported from Systemwalker Runbook Automation Studio or Web console and have extension .bar. When you specify the file that doesn't satisfy the condition, this command outputs an error.
About process definition file
The process definition file must be the file that was exported from Systemwalker Runbook Automation Studio or Web console and have extension .xpd. When you use the process definition file that was exported from the Web console, use the file that have XPDL2.0 format. This command doesn't support XPDL1.0 format and BPEL format.
About process definition name
You can user space for the process definition name. When you user space for the process definition name, enclose the process definition name with a double quart (").
Execution Result/Output Format
When you newly register the Process Definition:
FSP_SW/RB-A_BASE: INFO: 02001: pd-add has finished. Option: pd-add file sample0001.xpdl appid app001 Code:0 |
When you retrieve the Process Definition:
FSP_SW/RB-A_BASE: INFO: 02000: pd-list is starting. Option:pd-list ApplicationID ProcessID ProcessDifinitionName VersionStatusOwner FSP_SW/RB-A_BASE: INFO: 02001: pd-list has finished. Option:pd-list Code:0 |
When you retrieve the process instance:
FSP_SW/RB-A_BASE: INFO: 02000: pd-list is starting. Option:pd-list ProcessInstanceID ProcessInstanceNameStatusInitiator FSP_SW/RB-A_BASE: INFO: 02001: pd-list has finished. Option:pd-list Code:0 |