registry service
Provides a mechanism for states to refer to site-specific values. This service is provided via the tymly plugin and isn't offered by any of the other core plugins.
Boot config
- This service doesn’t require any configuration to boot.
Blueprint dirs
This service can load resources defined in the following Blueprint directories:
Directory | Content |
---|---|
/registry-keys |
Consider a blueprint that defines a simple workflow that sends a Tweet - what Twitter username/password should be used? This is where Registry Keys come in useful… a simple key/value store inside Tymly, where keys are declared inside this sub-directory. To help conjure administrative screens and help validation, the required value content is described using JSON Schema. |
Service methods/properties
refresh
Reloads all registry key/values from storage (i.e. the fbot_registryKey_1_0
model)
Parameters
callback
Function Called with all key/value pairs currently stored in the registry
Examples
registry.refresh(
function (err, registryKeyValues) {
// Actually 'registryKeyValues' is more:
// {
// mkKey: {
// value: 'VALUE!', <--- Value of the 'myKey' key
// meta: {...} <--- Some info about the key
// }
// }
}
)
Returns undefined
Boots before
statebox
Boots after
storage