@Component public class WfHook extends Object implements ChangeHook
Modifier and Type | Field and Description |
---|---|
static String |
WORKFLOW_HOOK_URI |
Constructor and Description |
---|
WfHook() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
HookOperationMode |
invoke(ModelContext context,
Task task,
OperationResult parentResult)
Generic method to be implemented by the hook.
|
void |
invokeOnException(ModelContext context,
Throwable throwable,
Task task,
OperationResult result)
This method is invoked by the clockwork when an exception occurs.
|
public static final String WORKFLOW_HOOK_URI
@PostConstruct public void init()
public HookOperationMode invoke(ModelContext context, Task task, OperationResult parentResult)
ChangeHook
invoke
in interface ChangeHook
public void invokeOnException(ModelContext context, Throwable throwable, Task task, OperationResult result)
ChangeHook
invokeOnException
in interface ChangeHook
context
- actual model context at the point of processing the exceptionthrowable
- the exception itselftask
- actual task, in context of which the operation was carried outresult
- actual operation result - the handler should create a subresult here for its operation
This method has no return value, as it is not expected that the processing would continue in
the background. (This could change in the future.)Copyright © 2015 evolveum. All rights reserved.