Skip to contents

Records an event a caller detects, such as a quotation that failed verification ("verify_failed"), a decision left "unclear" or members that disagree ("disagreement"), as an "effort.event" step of the trace. An hr_effort_escalate() policy reads it at the next stage boundary. Nothing is written unless an escalation policy has already sent a request on this trace, so a run without one records nothing new.

Usage

hr_effort_event(trace, event, ...)

Arguments

trace

A gr_trace, or NULL.

event

The trigger's name, one string.

...

Further detail for the step.

Value

TRUE when the event was recorded, invisibly.

Examples

tr <- hr_trace()
hr_effort_event(tr, "disagreement")   # no policy has run: nothing recorded