- 3 minutes to read

Message Context Key search field expression type plugin

Use this plugin to extract values from named context properties.

The Nodinite Message Context Key Search Field Expression Type plugin can be used to find one unique value from named Context Property for logged messages.

A Logged message comes from a Log Event that is part of the Logging feature of Nodinite, and the Search Fields are further used within self-service enabled Log Views for your business.

Quick example

Let's get you started with the following simple demonstration example valid for this search field plugin. For other and more advanced examples please scroll down on this page to the Examples section.

Input 1st Expression Result
Nodinite
ProductOfTheYear
Nodinite
Any content Named Context Property Unique value

Features

  • Extract single value from named Context property

Since there is no styling you may need to use other plugins to get the result you seek. Review other Nodinite Context Property related search field expression type plugins:


How to use

To extract values from Context Properties you must first configure the Search Field, in this example case; The Product of the year name:

  • Select expression type plugin
  • Enter the name to get the content from named Context property
  • Finalize remaining steps including selection of Message Types and optional re-index operation (Add or manage Search Field)

Once a Search Field is configured, values are extracted either during normal processing or from user initiated re-index operations. Extracted values are persisted and stored for as long as the days to keep events property on the Message Type is configured.

Test Expression

You can test an expression when configuring a Search Field in the 'Test Expression' tab

  1. Enter an appropriate payload in the 'Message Body' tab
  2. Select the 'Message Context' expression type plugin
    Select
    Here's an example selecting the 'Message Context' expression type plugin.
  3. Enter name of Context property to get the content (as is)
  4. Review result/output, rewrite the code in step 3 until you get the data you seek

The actual result (values) are extracted by the Logging Service and then presented together with the evaluated processing state and the number of unique matches.

Test Expression
Valid expression with state output, unique values and total count.

If the expression is either invalid or does not match any data, then the following output is presented:
No Result
Here's an example with an invalid expression, which yields no result.

Examples

graph LR subgraph "Search Fields" sf(fal:fa-magnifying-glass-plus Order Number) end subgraph "Search Field Expressions" sfe(fal:fa-flask Message Context plugin) end subgraph "MessageTypes" mt1(fal:fa-file Orders) end sf --- sfe sfe ---|Expression| mt1

Basic example

To extract content from named Context property 'ProductOfTheYear' simply enter the name. This configuration yields the value Nodinite

Data is returned as is

Content (data)

Nodinite

Named context property

ProductOfTheYear

Next Step

How to Add or manage Search Fields
How to Add or manage Log Views

Expression Type Plugins are used in Search Fields
What are Search Fields?
What are Search Field Expressions?
What are Message Types?
What are Log Views?