FormBindingRequest

class FormBindingRequest<O : Any> constructor(form: Form, val outputClass: Class<O>, val population: O? = null, val validationErrors: List<ValidationError> = emptyList(), persistent: Boolean = false) : AbstractAwaitable<Form, FormResponse>

Present the user with a form and bind it to the given class

Parameters

O

the class to bind the form submission to

form

the form to present to the user

outputClass

the class to bind the form submission to

population

an optional instance to pre-populate the form

validationErrors

optional validation errors to display on the form

persistent

whether this request should be persisted

Constructors

Link copied to clipboard
constructor(form: Form, outputClass: Class<O>, population: O? = null, validationErrors: List<ValidationError> = emptyList(), persistent: Boolean = false)

Properties

Link copied to clipboard
open val id: String
Link copied to clipboard
Link copied to clipboard
open override val payload: Form
Link copied to clipboard
val population: O? = null
Link copied to clipboard
open val timestamp: Instant
Link copied to clipboard

Functions

Link copied to clipboard
fun bind(boundInstance: O, agentProcess: AgentProcess): ResponseImpact
Link copied to clipboard
open fun infoString(verbose: Boolean?, indent: Int): String
Link copied to clipboard
open override fun onResponse(response: FormResponse, agentProcess: AgentProcess): ResponseImpact

Update process state based on this response

Link copied to clipboard
open fun persistent(): Boolean
Link copied to clipboard
open override fun toString(): String