Skip to content

How delegator works

bespaltovyj edited this page Sep 27, 2021 · 4 revisions

Setup

Before creating the engine, the BpmnParseFactory and ExpressionManager are configured in the plugin.

Аfter the application is fully launched, all delegates are registered in the registry.

Execution

Delegate executing based on chain of interceptors. Interceptors used for resolving delegate arguments, process return value and exception processing.

Default interceptors:

  1. ResolveArgumentsInterceptor - this interceptor builds the delegate arguments.
  2. SingleResultExecutionWriter and MultipleResultExecutionWriter this interceptor write result to delegate execution.

You can write custom delegate interceptors with your logic.

Clone this wiki locally