Decision Intelligence Client Managed Software command-line tool reference
The Decision Intelligence Client Managed Software command-line tool
can be used to perform various tasks on your decision automation.
For more information on installing the Decision Intelligence command-line tool, see Installing the Decision Intelligence Client Managed Software command-line tool.
Table of commands
The following table provides all the commands in the Decision Intelligence command-line tool.
| Commands | Description |
|---|---|
add operation |
Adds an operation to an automation |
add reference |
Adds a library reference to an automation |
batch |
Runs multiple commands that are listed in a JSON or YAML file |
help |
Provides help for a specific command |
list decisionresource |
Lists the decision resources of an automation |
list operation |
Lists the operations of an automation |
list reference |
Lists the libraries that are referenced by an automation |
make datamodel |
Creates or updates data model files |
make decisionresource |
Creates or updates one or more decision resources |
make decisionservice |
Creates or updates Maven and decision service files |
make decisiontable |
Creates a decision table by using a data source |
new datamodel |
Creates an automation that defines a data model |
new decisionmodel |
Creates an automation that defines a decision model |
new taskmodel |
Creates an automation that defines a task model |
remove operation |
Removes an operation from an automation |
remove reference |
Removes a library reference from an automation |
run operation |
Runs a decision service operation |
shell |
Interprets command lines |
Command syntax
The syntax of the command is:
ads [<global-options>] command [<options>].
The following example shows how to create an automation that defines a data model:
ads --reportKind MARKDOWN new datamodel --groupId org.acme --output DataModel
The --reportKind option and its parameters are passed to the ads
command. The --output and --groupId options along with its
values are passed to the new datamodel command.
For more details about a specific command, use the help command.
ads help new datamodelExample
The following example shows how to create a design automation, build it using the Decision Intelligence
build-maven-plugin, and to run the decision engine.
# create a data model automation with a sample class
> ads new datamodel --groupId org.acme --output DataModel
# create a task model automation with a sample ruleflow and a rule printing a parameter
> ads new taskmodel --groupId org.acme --output TaskModel
# adds a BOM entry in the task model referencing the data model
> ads add TaskModel reference DataModel
# generate the pom.xml files required to build the design automation
> ads make decisionservice --groupId org.acme
# mvn build the decision archive using ADS build-maven-plugin
> mvn clean install
# generate a sample input file for the decision operation
> ads run TaskModel operation --inputSample --output input.json
# run the decision engine
> ads run TaskModel operation --input input.json For more examples on how to use the
commands, check the samples folder in the downloaded compressed file. For more information, see
Installing the
Decision Intelligence Client Managed Software command-line tool.