Skip to content

JavaScript Properties

The following JavaScript properties are supported for scripting conditions and actions in WLM rules. For more details, see Rule Conditions; each property is linked to a description on that page.

The read-only column indicates whether the JavaScript property is settable. Yes means that it is not settable; it can only be read from (that is, used in a filter to make decisions).

NameTypeRead-only
w.SQLTextStringYes
w.resourcePoolStringNo
w.priorityStringNo
w.commandStringYes
w.userStringYes
w.rolesStringYes
w.applicationStringNo
w.databaseStringYes
w.namespaceStringYes
w.superUserBooleanYes
w.explainAnalyzeBooleanYes
w.referencedTablesList<String>Yes
w.singleWorkerBooleanYes
w.transactionIdNumberYes
w.maximumWaitLimitNumberNo
w.maximumRowLimitNumberNo
w.maximumExecTimeLimitNumberNo
w.memoryEstimateNumberNo
w.memoryEstimateConfidenceStringYes
w.memoryRequiredNumberYes
w.allowSQBBooleanNo
w.abort(String)MethodNo
w.durationNumberYes
w.executionDurationNumberYes
w.submitTimeDateYes
w.createTimeDateYes
w.enqueueTimeDateYes
w.prepareTimeDateYes
w.executionTimeDateYes
w.completionTimeDateYes
w.stats.bytesReadNumberYes
w.stats.readIOsNumberYes
w.stats.readTimeNumberYes
w.stats.bytesWrittenNumberYes
w.stats.writeIOsNumberYes
w.stats.writeTimeNumberYes
w.stats.maxMemoryNumberYes
w.stats.currentMemoryNumberYes
w.stats.totalMemoryNumberYes
w.stats.rowsReturnedNumberYes
w.stats.rowsInsertedNumberYes
w.stats.rowsDeletedNumberYes
w.stats.bytesReadSpillNumberYes
w.stats.bytesWrittenSpillNumberYes
w.stats.bytesNetworkNumberYes

Parent topic:Creating Rules