The Search module provides methods for reading and
writing record data to a workflow. The instance
methods exposed by this class are available
for use from within a running workflow. The following example
uses search to set a name field and increment a
counter field. The workflow returns the incremented value.
Increments the value of a float field by the given amount. Returns the
new value of the field after the increment. Pass a negative
number to decrement the value.
Returns the values of all specified fields in the HASH stored at key.
Parameters
Rest...args: string[]
Returns Promise<string[]>
mult
mult(key, val): Promise<number>
Multiplies the value of a field by the given amount. Returns the
new value of the field after the multiplication. NOTE:
this is exponential multiplication.
The Search module provides methods for reading and writing record data to a workflow. The instance methods exposed by this class are available for use from within a running workflow. The following example uses search to set a
name
field and increment acounter
field. The workflow returns the incremented value.Example