Present an instance of Tell to the user, and ask for an instance of Ask.
Present an instance of Tell to the user, and ask for an instance of Ask. Defines a 'step' in the user journey.
val askAddr: UF[Address] = interpreter.interact[Address,Boolean]( "confirm-address", someAddress )
step identifier - care should be taken to keep these distinct within a given journey
data to be presented to the user
optional existing/default value. For example an 'edit' journey.
rule to check the data is valid (after it has been turned into an Ask).
overrides any messages used in the journey step
Ask the user for an instance of A.
Ask the user for an instance of A. This is equivalent
to interact[Unit, A]
val askAddr: UF[Address] = interpreter.ask[Address]("delivery-address")
step identifier - care should be taken to keep these distinct within a given journey
optional existing/default value. For example an 'edit' journey.
rules to check the data is valid (after it has been turned into an Ask).
overrides any messages used in the journey step
Nest a journey within a single stage of a bigger journey.
Present the user with an instance of A.
Present the user with an instance of A. This is equivalent
to interact[A, Unit]
val askAddr: UF[Unit] = interpreter.tell[OrderConfimation]( "order-confirmation", myOrder.getConfirmation )
step identifier - care should be taken to keep these distinct within a given journey
data to be presented to the user
overrides any messages used in the journey step
The core language of uniform, journeys will typically be expressed in terms of this interaction