Package org.imixs.workflow.office.forms
Class AnalyticController
java.lang.Object
org.imixs.workflow.office.forms.AnalyticController
- All Implemented Interfaces:
Serializable
The AnalyticController is a conversationScoped controller that provides
values for the analytic-custom parts.
A custom implementation can react on AnalyticEvent to compute values and datasets.
The controller implements a caching mechanism to avoid repeated calls for new analytic values. If the analytic value is already stored in the current workitem, no new value will be fired.
- Author:
- rsoika
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.enterprise.event.Event<AnalyticEvent>protected org.imixs.workflow.faces.data.WorkflowController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.imixs.workflow.ItemCollectioncomputeValue(String key) Computes an analytic value.doublegetAsDouble(String key) Returns a analytic value as a Double for a given key.Returns a analytic value as a Json String for a given key.getAsString(String key) Returns a analytic value as a String for a given key.getDescription(String key) Returns the analytic description for a given keyReturns the analytic label for a given keyReturns the analytic optional link for a given key
-
Field Details
-
analyticEvents
-
workflowController
@Inject protected org.imixs.workflow.faces.data.WorkflowController workflowController
-
-
Constructor Details
-
AnalyticController
public AnalyticController()
-
-
Method Details
-
getAsString
Returns a analytic value as a String for a given key.- Parameters:
key-- Returns:
-
getAsJson
Returns a analytic value as a Json String for a given key.- Parameters:
key-- Returns:
-
getAsDouble
Returns a analytic value as a Double for a given key.- Parameters:
key-- Returns:
-
getLabel
Returns the analytic label for a given key- Parameters:
key-- Returns:
-
getLink
Returns the analytic optional link for a given key- Parameters:
key-- Returns:
-
getDescription
Returns the analytic description for a given key- Parameters:
key-- Returns:
-
computeValue
Computes an analytic value. The method cache the value in the item key. An observer controller is responsible to cache or reset the cached values if needed.- Parameters:
key-- Returns:
-