OrderConstraint Function

Produce a point only if the specified events are triggered in the order specified. Other events that are not specified but still were triggered are ignored. If you need a "strict" sequence, consider using StrictOrderConstraint instead.

import { OrderConstraint, ProximityConstraint } from 'full-metal-alchemy'

{
  name: 'Logged out very quickly',
  constraints: [
    ProximityConstraint({ period: Period.seconds(30) }),

    OrderConstraint([
      'logged-in',
      'logged-out'
    ])
  ]
}

Signature

OrderConstraint(events: Array.<String>) -> Constraint