Package org.imixs.workflow.dataview
Class DataViewService
java.lang.Object
org.imixs.workflow.dataview.DataViewService
- All Implemented Interfaces:
Serializable
The OpenAIAPIService provides methods to post prompt templates to the OpenAI
API supported by Llama-cpp http server.
The service supports various processing events to update a prompt template
and to evaluate a completion result
- Author:
- rsoika
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.enterprise.event.Event<DataViewExportEvent>protected org.imixs.workflow.engine.DocumentServicestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intprotected org.imixs.archive.core.SnapshotServiceprotected org.imixs.workflow.engine.WorkflowService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.imixs.workflow.ItemCollection>computeDataViewItemDefinitions(org.imixs.workflow.ItemCollection dataViewDefinition) Returns a List of ItemCollection instances representing the view column description.org.imixs.workflow.ItemCollectionloadDataViewDefinition(String dataView) This method loads a DataView Definition for a given datavieworg.imixs.workflow.FileDataloadTemplate(org.imixs.workflow.ItemCollection dataViewDefinition) This method returns the first excel poi template from the Data DefinitionvoidpoiExport(List<org.imixs.workflow.ItemCollection> dataset, org.imixs.workflow.ItemCollection dataViewDefinition, List<org.imixs.workflow.ItemCollection> viewItemDefinitions, org.imixs.workflow.FileData fileData) The method exports a dataset into a a POI XSSFWorkbook.
-
Field Details
-
ITEM_WORKITEMREF
- See Also:
-
MAX_ROWS
public static final int MAX_ROWS- See Also:
-
ERROR_API
- See Also:
-
ERROR_CONFIG
- See Also:
-
ERROR_MISSING_DATA
- See Also:
-
workflowService
@Inject protected org.imixs.workflow.engine.WorkflowService workflowService -
documentService
@Inject protected org.imixs.workflow.engine.DocumentService documentService -
snapshotService
@Inject protected org.imixs.archive.core.SnapshotService snapshotService -
dataViewExportEvents
-
-
Constructor Details
-
DataViewService
public DataViewService()
-
-
Method Details
-
loadDataViewDefinition
This method loads a DataView Definition for a given dataview- Parameters:
dataView- - name of a dataview- Returns:
- ItemCollection
-
computeDataViewItemDefinitions
public List<org.imixs.workflow.ItemCollection> computeDataViewItemDefinitions(org.imixs.workflow.ItemCollection dataViewDefinition) Returns a List of ItemCollection instances representing the view column description. Each column has the items: name,label,format,convert- Parameters:
dataViewDefinition-- Returns:
-
loadTemplate
public org.imixs.workflow.FileData loadTemplate(org.imixs.workflow.ItemCollection dataViewDefinition) throws org.imixs.workflow.exceptions.PluginException This method returns the first excel poi template from the Data Definition- Parameters:
dataViewDefinition- with the attached fileData- Throws:
org.imixs.workflow.exceptions.PluginException- if no template was found
-
poiExport
public void poiExport(List<org.imixs.workflow.ItemCollection> dataset, org.imixs.workflow.ItemCollection dataViewDefinition, List<org.imixs.workflow.ItemCollection> viewItemDefinitions, org.imixs.workflow.FileData fileData) throws org.imixs.workflow.exceptions.PluginException The method exports a dataset into a a POI XSSFWorkbook. The Workbook is loaded from a template data in a dataViewDefinition.The export method sends a DataViewExportEvent. An observer CID bean can implement alternative exporters. With the event property 'completed' a client can signal that the export process is completed. Otherwise the default behavior will be adapted.
- Throws:
org.imixs.workflow.exceptions.PluginException
-