Rules: Advanced
Advanced rules let you write a formula that decides when a rule should fire. Use them for time-based checks that need hour and minute precision — for example shelf-life, cure time, or reaction time — instead of relying only on day-rounded comparisons.
To set up more advanced rules beyond what is covered here, please contact our support team at support@azumuta.com.
Formula Evaluates to True (Advanced)
In the rule’s “if” block, choose Formula evaluates to true (advanced). The formula must evaluate to true for the configured action to run.
Formulas can call date/time helpers so you can parse operator input, add or subtract time, and compare against now() (or other timestamps) at minute and hour precision.
dateTime(string, format)
Parses a date-time string with a matching format string and returns a timestamp (milliseconds). Use this when a check answer, barcode, or other string needs to be interpreted as a precise date and time.
date() is kept as a backward-compatible alias of dateTime().
Example — parse a scanned expiry that includes hours and minutes:
dateTime("12/05/2026 14:30", "dd/MM/yyyy HH:mm")
shiftDateTime(timestamp, amount, unit)
Shifts a timestamp by an integer amount of a given unit. A positive amount moves forward; a negative amount moves backward.
shiftDate() is a backward-compatible alias of shiftDateTime().
Supported units:
secondsminuteshoursdaysweeksmonthsquartersyears
Example — expiry is manufacture time plus 90 minutes of cure:
shiftDateTime(dateTime("01/12/2025 14:30", "dd/MM/yyyy HH:mm"), 90, "minutes")
Minute and Hour Precision
Time-based rules evaluate at minute and hour precision, so shelf-life, cure-time, and reaction-time checks fire at the right moment.
Blocked Answer Attempts Are Recorded
When an operator submits an answer that a rule blocks, Azumuta keeps a record of the rejected value and which rule stopped it, instead of discarding it. There is nothing to set up: keep your existing rules on instruction checks, and blocked attempts are captured automatically.
To review them, open the recording's report details, where the rejected answer is shown as a blocked attempt. Blocked attempts are also included in the recordings export for downstream analysis.