Constructs a new BoundTask.
Optional
properties: IBoundTaskProperties to set
Optional
lowerThe OracleJob to execute for the lower bound value.
The value to use for the lower bound. Can be set to a ${CACHE_KEY}
.
Optional
onThe OracleJob to execute if the lower bound is exceeded.
The value to use if the lower bound is exceeded. Can be set to a ${CACHE_KEY}
.
Optional
onThe OracleJob to execute if the upper bound is exceeded.
The value to use if the upper bound is exceeded. Can be set to a ${CACHE_KEY}
.
Optional
upperThe OracleJob to execute for the upper bound value.
The value to use for the upper bound. Can be set to a ${CACHE_KEY}
.
Static
createCreates a new BoundTask instance using the specified properties.
Optional
properties: IBoundTaskProperties to set
BoundTask instance
Static
decodeDecodes a BoundTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
BoundTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a BoundTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
BoundTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified BoundTask message. Does not implicitly verify messages.
BoundTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified BoundTask message, length delimited. Does not implicitly verify messages.
BoundTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromStatic
getStatic
toCreates a plain object from a BoundTask message. Also converts values to other types if specified.
BoundTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
Bound the running result to an upper/lower bound. This is typically the last task in an OracleJob.
Input: The current running numerical result.
Returns: The running result bounded to an upper or lower bound if it exceeds a given threshold.
Example: Bound the running result to a value between 0.90 and 1.10