1. Home
  2. Docs
  3. Glossary
  4. F
  5. Function

Function

A function is a high level process execution step.
It usually translates a business activity or end user action.
It is mapped to a section of code stack composed of 1 or more method signatures.

Functions are declared in the Jeyzer analysis profiles.
Functions can also be declared at code level using the Jeyzer Function annotation (to end up automatically in the underlying Jeyzer analysis profile).

Function examples:

Execute order, Apply activity, Search items 

Declaration example (source : Java shared profile) :

<function pattern="javax.servlet.GenericServlet.init" name="Servlet startup">

Annotated code example (source : Jeyzer Labor and Features demos) :

import org.jeyzer.annotations.profile.Function;

@Function
private void runLeft() throws InterruptedException {
    ...
}

@Function(name="Memory consumer") 
private void consumeMemory() { 
    ...
}