Chapter 5. Data processing

Table of Contents

5.1. Processor Configuration
5.2. Application Server Requests
5.3. Command handler
5.3.1. The standard command handler
Introduction
Example configuration
Example command description
Command description language
Keywords
Simple document map
Command with action prefix
Explicit function name declaration
Returned document declaration
Returned document meta data
Skipping the document validation
Return a standalone document
Explicit filter definitions for a command
Authorization checks
Adding parameters from the execution context
Using brackets
Overview
5.4. Functions
5.4.1. Transactions in TDL
Introduction
Some internals
Configuration
Language description
Subroutines
Transaction function declarations
Main processing instructions
Preprocessing instructions
Selector path
Referencing Database Results
Naming database results
Referencing Subroutine Parameters
Constraints on database results
Rewriting error messages for the client
substructures in the result
Explicit sefinition of elements in the result
Database specific code
Subroutine templates
Includes
Auditing
5.4.2. Functions in .NET
Introduction
Configuration
Function interface
Function context
Function signature
Example
Prepare .NET assemblies
Make assemblies COM visible
Tag exported objects with a Guid
Add marshalling tags to values
Example with COM introspection tags
Create a type library
Register the type library
Register the assembly in the GAC
Register the types in the assembly
Calling Wolframe functions
Configure .NET assemblies
Assembly Declaration
Get the PublicKeyToken
Validation issues
5.4.3. Functions in python
Current development status
5.4.4. Functions in Lua
Introduction
Configuration
Declaring functions
Wolframe provider library
Using atomic data types
Data type 'datetime'
Data Type 'bignumber'
Filter interface iterators
Iterator library
Global objects
Using forms
Form functions
List of Lua objects
5.4.5. Functions in native C++
Introduction
Prerequisites
Declaring functions
Example Function Declaration
Input/output data structures
Header file
Source file
Writing the module
Module declaration
Building the module
Using the module
Validation issues
5.5. Forms
5.5.1. Form data definition languages
Introduction
Forms in simpleform DDL
Commands
Structures
Elements of structures
Embedded structure definitions
Default atomic value assignments
Types of atomic values
Element attributes
Embedding elements and inheritance
Declaring document meta data
Example form definition
5.5.2. Datatypes in DDLs
Introduction
Example
Language description
Type assignments
Standard modules for normalizers
Configuration
5.6. Filters
5.6.1. XML Filter
Introduction
Character set encodings
Configuration
5.6.2. JSON filter
Introduction
Character set encodings
Configuration
5.6.3. XSLT Filter
Introduction
Character set encodings
Configuration
5.7. Testing and defect handling
5.7.1. Using wolfilter
Test configuration
Testing a filter
Testing a Form
Testing a Function

In the this chapter we will see how application server requests look like. We will have a look at the Wolframe standard command handler that handles the requests and how it is configured. Then we will show how to write programs that declare the functions executing the requests and how you link them to your application. Finally we will describe the tools available in Wolframe for defect handling and testing.

5.1. Processor Configuration

The processing of application server requests is configured in the section Processor of the server configuration. The following example shows an empty Processor configuration section:

Processor
{
    ;... processing configuration
}