Class TaskStatus
java.lang.Object
com.aquima.interactions.framework.service.task.TaskStatus
- All Implemented Interfaces:
IService
Purpose
This service can be used to direct your flow by using the status of the current active task.
Context
This service can be called when a task is activated. When no task is active, an exception will be thrown.
Result
This service returns the status of the task by the following events:
- Open
- Started
- Complete
- Canceled
- Expired
- Since:
- 7.1
- Author:
- Jon van Leuven
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IServiceResult
static final IServiceResult
static final IServiceResult
static final IServiceResult
static final IServiceResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle
(IServiceContext context) The handle method of the service is allowed to make changes to the interfaces passed along with the IServiceContext.
-
Field Details
-
RESULT_OPEN
-
RESULT_STARTED
-
RESULT_COMPLETE
-
RESULT_EXPIRED
-
RESULT_CANCELED
-
-
Constructor Details
-
TaskStatus
public TaskStatus()
-
-
Method Details
-
handle
Description copied from interface:IService
The handle method of the service is allowed to make changes to the interfaces passed along with the IServiceContext. This means the service context is changed accordingly.- Specified by:
handle
in interfaceIService
- Parameters:
context
- the context in which the service is called and allowed to make changes.- Returns:
- The result of this service, may be null.
- Throws:
ServiceException
- When an expected exception occurs and the portal should display certain messages.Exception
- When an unexpected exception occurs and the portal should display a standard message.
-