Constructor
new FlowScriptCompiler()
Methods
(static) compile()
Compiles the CFL script using the FlowScriptDoc provided by the Load
method.
(static) load()
Loads a CFL script. This is used when loading an app or for widget builders
wanting to accept CFL as a parameter (see violetList as an example).
(static) registerWidget(widgetDef)
Registers a Conversational Element (Widget) to be used in a FlowScript.
This method is intended to be called by Widget Implementations when loaded.
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
widgetDef |
Object | widget definition
Properties
|
(static) resolveElementChildrenForOutlet(response, flowScriptDoc, elNode)
Calls the implementation (resolve method) of children elements.
Parameters:
Name | Type | Description |
---|---|---|
response |
Object | the runtime response object |
flowScriptDoc |
Object | the CFL Doc |
elNode |
Object | the widget node |