Starts a USoft Rules Service for the specified application, using the specified database connection attributes.
This is an anonymous Rules Service. To configure and start a named Rules Service, use pc:ConfigRulesService instead.
There is no return value.
The Rules Service will use a transient port number.
The Rules Service will log on to application in the database account specified by user, pwd, rdbmstype, dbconnectstr. The required owner is the database user who owns the application tables. This is typically the same database user as user.
User, pwd, owner are all required, except for logging on to SQL Server via Windows Authentication, in which case they must all be left empty.
The optional alias attribute allows you to specify a string that can be used as a handle for referring to the started Rules Service in subsequent calls. If you do not pass alias, then the started Rules Service can still be referenced by an internal name traceable by pointing at the alias attribute, or its id equivalent, of the directive's embedded XML. The alias value is allowed to be any literal string value. Thus:
is equivalent to :
The optional ticket attribute is not normally needed except for specialised use. If you omit it, a trusted token is automatically generated. This trusted token is a hashed key string associated with the specific database connection. Blend directives that access the database later in the script and that are connected to the started RulesService instance (via the alias value, which is essential) are automatically trusted on the basis of this token. You can override this behaviour by setting ticket="false" if you have a special reason to test or debug authentication at the time of that later directive. You can also overwrite the generated token value by setting a ticket value manually, for example, a numeric value, but this has no clear advantage over the automatic behaviour.
If you omit definitionsfrom, or if you leave it to the default 'Auto', the Rules Service first looks in the \APP directory of your USoft installation for a file called application.con. If such a file is found, the Rules Service will run from this file. Otherwise, it will run from repository, if repository tables are available.
If you set definitionsfrom to 'DictTable', the Rules Service will run from repository. If you set it to 'DictLocated', you must supply a flatfilelocation path, and the Rules Service will run from the application.con file (if any) found in the flatfilelocation path.
The list of attributes of pc:RunRulesService corresponds to the list of Rules Service settings that you can set in USoft Binder's Rules Service Property Sheet and in the ure.config wizard. Details are in the "Manual Rules Service configuration" topic. For each optional attribute, if you omit the attribute, the indicated default will be applied.
If you omit logdir, the log directory will be set to the rules_engine subdirectory of the USoft log directory that you chose during Setup.
If you omit logfilenameprefix, the Logfile Name Prefix will be set to the value that you pass for the application attribute.