Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page Properties


Status

Status
colourYellow
titlePROGRESS

Priority2
Note
AssigneeAntje

Ressources

Remarks

Concept article linking to the respecive tutorials

  • Antje: writing started

...

The interceptors allow for project-specific extensions of the yuuvis® Momentum standard process flows. The running process flow can be intervened in a condition on the processed object, that has to be specified in the interceptor definition. Whenever the process flow satisfies the condition, the project-specific process extension is included for the currently processed object at this position of the process flow. Thus, the alternative process can replace the standard one from this position completely or resume the standard process at a specified position.

Interceptor Configuration

The condition for the intervention of the process flow is defined in the interceptor configuration.

Parameters

The following parameters can/have to (question) be defined in the interceptor configuration:

ParameterTypeDescription
typeStringThe type of the interceptor. It defines the position

...

Main part(s)

...

in the process flow where the interceptor can step in.
predicateStringThe condition that triggers the intervention of the process flow in order to include the project-specific process extension. The string can provide the condition either in Spring Expression Language (SpEL) or Javascript. Thus, the string has to start always with a prefix spel: for SpEL or js: for Javascript.
urlStringHTTP address of the project-specific process extension. Dynamic components (properties of the processed object) can be included in braces.
useDirectorybooleanDecides whether the url will be read in the discovery or processed as an absolute address.

Interceptor Types

There are different types of interceptors available, that interrupt the process flow at different positions.

Intercepor Type

Evaluation Target of the PredicateDescription
getContentAPI dms object in JSON formatManipulation of the binary content of the return statement by a project-specific service
searchstructure of the specific class SearchInterceptorObjectManipulation of the search query parameter and the search result.
updateDmsObjectfirst API dms object in the list in JSON format, that is passed to the corresponding update endpointManipulation of the update properties that will be applied to a dms object.

Configuration Examples

The interceptor configuration is part of the (question). It is a JSON list of all interceptors, each of them specified by its type, predicate, url and useDirectory parameters. If there are two or more interceptors of the same type, all of them will be executed in random order.

Code Block
languagejava
titleFor Loop in Java (brief, concise title)
linenumberstrue
for (int i = 0; i < 10; i++)
{
	System.out.println("Hello World " + i);
}

Summary

Info
iconfalse

Read on

Section


Column
width25%

Another Tutorial

Brief summary of the article linked.


Column
width25%

Another Concept Article

Brief summary of the article linked.


Column
width25%

Another interesting Tutorial

Brief summary of the article linked.