During the build process it will be necessary to modify and diagnose problems with created process instances.
View instances and service classes
View instances/service classes in the Process Library Status viewer at the top of the screen. The viewer contains a list of all the workflows, instances, service classes and tasks in the system.
To locate the previously created service classes under the
kxw naming convention, first filter the list; Enter
kxw at the top of the Service column.
From here you can view the log file of the running service class instance : right-click the runnning
kx_rdb instance and select the Show partial log option. This will open a pane containing the log file.
The log pane will contain information similar to the log below. These logs are used extensively to diagnosis problems with the configuration.
Old log files can be viewed even if the service class is not running. In the History tab, right-click on an older instance (e.g. one that has finished)and select Show Partial Log.
Kx Control comes with an interactive development environment (IDE) called Kx Analyst. Kx Analyst can be used to inspect processes and service class instances, modify processes and develop programs. To open the IDE, right-click on the
kxw_rdb instance in the Process Library Status viewer and select Connect from the context menu.
Kx Analyst (IDE Lite Version) will open in a separate tab in local view.
The (Global) list contains the global functions, tables, lists, etc that are running in the process.
By default, a Scratchpad should be available in which code snippets may be evaluated.
tables into the pad and right click on the text and choose the
Display option or use the
ctrl + d keyboard shortcut. In the console window you should see the tables available to the process and the tables we defined earlier
The IDE provides a range of code-development options. See the Kx Analyst documentation for details.
Changes to the system will not generally take effect until the affected service class is restarted. There are some exceptions:
- Some configuration parameter changes are automatically pushed to running processes
- Entitlement changes are automatically pushed to running processes
Shut down instances
Service class instances can be shut down from the Process Library Status viewer or the service class context menu in the tree. In the Process Library Status viewer or the tree, right-click on the instance and select Stop > Shut Down Q Process.
- It reads the same CSV file as the start up script.
- To run script use this command:
Service class instances can be killed rather than shut down gracefully. In the Process Library Status viewer or the tree, right-click on the instance and select Stop > Kill-9. If automated restarts are set up upon failure, then the process will restart automatically. A message will appear in the status bar.