Invalidate Dynamic Logic

This API provides the ability to invalidate all the dynamic logic, in order to re-compile the groovy logic. This is important for scenarios where a groovy logic imports other common logic and changes to common logic should also re-compile the logics that have used or imported the common logic.

This API invalidates all the logic so that they get re-compiled.

Operations

The operations are protected by the HTTP API access restriction 'dynamiclogic IP'.

The endpoint is available at the following location:

http://<host>:<port>/<context-root>/dynamiclogic

This specific API supports the following operation:

POST

When the operation is called, it fetches all the dynamic logic and invalidates them. It also recompiles them to be ready for use on next invocation.

Examples

Dylo A is imported in Dylo B. Dylo A is updated. For the change in Dylo A to be effictive in Dylo B, invoke invalidateall. Once invalidateall is invoked in JVM’s life cycle, the dynamic logic changes are reflected immediately without making a call to invalidateall again.

The invalidateall operation will still be required in some cases, for example when Dylo A is imported in Dylo B, as per the following sequence.

  1. Invoke invalidateall.

  2. Update something in B.

  3. Run Dylo B.

  4. Update Dylo A.

  5. Run Dylo B.
    The change made in Dylo A is not reflected.

In this case invalidateall is required.

Response Messages

The integration point provides HTTP status codes as defined in the Developer Guide in section Response Messages.

Authorization

This API requires a grant for access restriction dynamiclogic IP.