Class: Session

$k. Session

new $k.Session()

Session for visualizing/editing views

Methods

static$k.Session.current()

Returns the current session if set, undefined if not.

static$k.Session.forPanel(panelName)

Returns the session corresponding to the given panel if available, undefined if not. Searches starting from the current session.

Name Type Description
panelName string

The configuration name of the panel

static$k.Session.main()

Returns the main session if set, undefined if not.

abort()

Abort the (long running) session transaction.

element()

get the domain model element of the session

getVariable(variable)

get the value of the given variable

Name Type Description
variable string

parent()

get the parent session of the session, undefined if it has no parent

setVariable(variable, value)

set the value of the given variable

Name Type Description
variable string
value object

toJSON()