res-fetch
The res-fetch task downloads a specified RuleApp archive from Rule Execution Server over Hypertext Transfer Protocol (HTTP) or HTTP Over SSL (HTTPS).
res-fetch element attributes
The following table describes the res-fetch element attributes and specifies whether they are mandatory or optional.
| Element attribute | Description | Mandatory/optional |
|---|---|---|
| authorizationToken |
Supports token authentication by using OpenID Connect. If you set this attribute, it takes precedence over the credentialsfile, userid, and password attributes. |
Optional |
| credentialsfile |
A file that contains the A credentials file is a text file that sets two properties: username and password. |
Optional |
| destfile | The destination of the stored RuleApp archive file. | Mandatory |
| failonerror | If you set this attribute to false, a warning message is logged when an error occurs, but the build process is not stopped. | Optional The default value is true. |
| hostname | The host name of the server where the Rule Execution Server console is installed. | Mandatory |
| password | The password that is linked to the user name to log in to the Rule Execution Server console. If you set this attribute, do not use the credentialsfile attribute. | Optional |
| portnumber | The port number of the Rule Execution Server console. | Mandatory |
| ruleapp | The name of the RuleApp in the server. | Mandatory |
| secured | If you set this attribute to true, the task works through an HTTPS connection. | Optional |
| version | The version of the RuleApp in the server. | Optional. The default value is 1.0. |
| userid | The user name to log in to the Rule Execution Server console. If you set this attribute, do not use the credentialsfile attribute. | Optional The default value is false. |
| webapp | The prefix of the Rule Execution Server console. | Optional. The default value is res. |
Example: RuleApp download with no encryption
<res-fetch hostname="localhost"
destfile="myruleapp.jar"
portnumber="9080"
userid="res"
password="mypassword"
ruleapp="myruleapp"
version="1.0"/>Example: Encrypted RuleApp download
credentialsfile attribute:<res-fetch hostname="localhost"
destfile="myruleapp.jar"
portnumber="9080"
credentialsfile="mypasswordfile"
ruleapp="myruleapp"
version="1.0"/>username=res
password=mypassword
username={AES}6ee3l4NrmD3p8QTViSszow\=\=
password={AES}6ee3l4NrmD3p8QTViSszow\=\=With encryption, the userid and password elements
are never displayed in plain text in traces during RuleApp deployment.