terminateAction

Request graceful termination of the current action only. Convenience extension that delegates to AgentProcess.terminateAction.

Kotlin usage:

processContext.terminateAction("reason")

Java usage:

import static com.embabel.agent.api.termination.Termination.terminateAction;

terminateAction(processContext, "reason");

Parameters

reason

Human-readable explanation for termination

See also