Constructs a new ConditionalTask.
Optional
properties: IConditionalTaskProperties to set
A list of subtasks to process in an attempt to produce a valid numerical result.
A list of subtasks that will be run if attempt
subtasks are unable to produce an acceptable
result.
Static
createCreates a new ConditionalTask instance using the specified properties.
Optional
properties: IConditionalTaskProperties to set
ConditionalTask instance
Static
decodeDecodes a ConditionalTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
ConditionalTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeDecodes a ConditionalTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
ConditionalTask
If the payload is not a reader or valid buffer
If required fields are missing
Static
encodeEncodes the specified ConditionalTask message. Does not implicitly verify messages.
ConditionalTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified ConditionalTask message, length delimited. Does not implicitly verify messages.
ConditionalTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a ConditionalTask message from a plain object. Also converts values to their respective internal types.
Plain object
ConditionalTask
Static
getStatic
toCreates a plain object from a ConditionalTask message. Also converts values to other types if specified.
ConditionalTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
This task will run the
attempt
on the subtasks in an effort to produce a valid numerical result. Ifattempt
. fails to produce an acceptable result,on_failure
subtasks will be run instead.Input: The current running numerical result output from a task.
Returns: A numerical result, else run
on_failure
subtasks.Example: Returns the numerical result from the conditionalTask's subtasks, else
on_failure
returns the numerical result from its subtasks.