set
inctl process set
Set process (behavior tree) of a solution.
Synopsis
Set the process (behavior tree) of a currently deployed solution.
There are two main operation modes. The first one is to set the "active" process in the executive. This prepares the process for execution. This is the default behavior if no name is provided as the first argument.
inctl process set --solution my-solution --cluster my-cluster --input_file /tmp/my-process.textproto [--process_format textproto|binaryproto]
Alternatively, the process can be added to the solution. The command will do this if you specify a name for the process as the first argument. This makes the process available in the list of processes in the Flowstate frontend. The process will NOT be loaded into the executive. It can instead be executed by selecting it in the frontend and running from there.
Note: The name you provide as an argument will be set as the "name" field in the process regardless of the value that may or may not already be present. If there is already a process with the same name this will fail.
inctl process set name_to_store_with --solution my-solution --cluster my-cluster --input_file /tmp/my-process.textproto [--process_format textproto|binaryproto]
inctl process set [flags]
Options
--clear_node_ids Clear the nodes' id fields from the BT proto. (default true)
--clear_tree_id Clear the tree_id field from the BT proto. (default true)
--cluster string Name of the cluster to interact with.
-h, --help help for set
--input_file string File from which to read the process.
--org string The Intrinsic organization to use. You can set the environment variable
INTRINSIC_ORG=organization to set a default organization.
--process_format string (optional) input/output format. One of: (textproto, binaryproto) (default "textproto")
-p, --project string The Google Cloud Project (GCP) project to use. You can set the environment variable
INTRINSIC_PROJECT=project_name to set a default project name.
--server string Server address of the cluster. Format is \{ADDRESS\}:\{PORT\}, for example 'localhost:17080'
--solution inctl solutions list --org orgname@projectname --output json [--filter running_in_sim] Id of the solution to interact with. For example, use inctl solutions list --org orgname@projectname --output json [--filter running_in_sim] to see the list of solutions.
Options inherited from parent commands
-o, --output string (optional) Output format. One of: (json, ndjson)
--print-trace Print the trace identifier when exiting.
SEE ALSO
- inctl process - Interacts with processes (behavior trees)