public final class AnonymousProcessService extends AbstractRequestHandler
ProgressStage
configurations, handling any required client interactions.| Constructor and Description |
|---|
AnonymousProcessService(ProcessInstanceConfig config,
ProgressStageProvider progressStageProvider,
SnapshotTokenHandlerFactory tokenHandlerFactory,
ProcessStore processStore,
ClassLoader classLoader)
Initialises the anonymous process service with the passed config.
|
| Modifier and Type | Method and Description |
|---|---|
Promise<ActionResponse,ResourceException> |
handleAction(Context context,
ActionRequest request)
Handles performing an action on a resource, and optionally returns an
associated result.
|
Promise<ResourceResponse,ResourceException> |
handleRead(Context context,
ReadRequest request)
Reads a JSON resource, returning a
Promise that will be
completed when the resource has been read. |
handleCreate, handleDelete, handlePatch, handleQuery, handleUpdate@Inject public AnonymousProcessService(ProcessInstanceConfig config, ProgressStageProvider progressStageProvider, SnapshotTokenHandlerFactory tokenHandlerFactory, ProcessStore processStore, ClassLoader classLoader)
config - service configurationprogressStageProvider - progress stage providertokenHandlerFactory - snapshot token handler factoryprocessStore - store for locally persisted stateclassLoader - class loader used for dynamic stage class instantiationpublic Promise<ResourceResponse,ResourceException> handleRead(Context context, ReadRequest request)
AbstractRequestHandlerPromise that will be
completed when the resource has been read.
Read expects failure exceptions as follows:
ForbiddenException if access to the resource is forbidden.
NotSupportedException if the requested functionality is not
implemented/supported
BadRequestException if the passed identifier or filter is
invalid
NotFoundException if the specified resource could not be
found.
The default implementation is to return a NotSupportedException.
handleRead in interface RequestHandlerhandleRead in class AbstractRequestHandlercontext - The request server context, such as associated principal.request - The read request.Promise containing the result of the operation.public Promise<ActionResponse,ResourceException> handleAction(Context context, ActionRequest request)
AbstractRequestHandlerActions are parametric; a set of named parameters is provided as input to the action. The action result is a JSON object structure composed of basic Java types; its overall structure is defined by a specific implementation.
On completion, the action result (or null) must be used to complete the
returned Promise. On failure, the returned Promise must
be completed with the exception.
Action expects failure exceptions as follows: ForbiddenException
if access to the resource is forbidden. NotSupportedException if
the requested functionality is not implemented/supported
BadRequestException if the passed identifier, parameters or
filter is invalid NotFoundException if the specified resource
could not be found.
The default implementation is to return a NotSupportedException.
handleAction in interface RequestHandlerhandleAction in class AbstractRequestHandlercontext - The request server context, such as associated principal.request - The action request.Promise containing the result of the operation.Copyright © 2025 Open Identity Platform Community. All rights reserved.