Logo GenPRES

Argumentation Module

Trims the argumentation a user writes for a deviation from the rules to at most 1000 characters and writes the argumentation to an order context.

Functions and values

Function or value Description

maxLength

Full Usage: maxLength

Returns: int

The maximum length of a text. It equals the server maximum, so the server accepts every text the client sends.

Returns: int

normalise text

Full Usage: normalise text

Parameters:
    text : string

Returns: string option

Trims the text and cuts it to the maximum length; None for null or an empty text.

text : string
Returns: string option

write text ctx

Full Usage: write text ctx

Parameters:
Returns: OrderContext

Writes the normalised text to the context.

text : string
ctx : OrderContext
Returns: OrderContext

Type something to start searching.