public class DocumentImportEvent extends Object
The DocumentImportEvent contains the property 'source' with a description of the data source. The source object provides the following items:
The property 'result' indicates if the source was processed completely or if the source can be processed by the next processor. The result is evaluated by the DocumentImportScheduler service.
If the data source was completely processed by the adapter the adapter should return the processing result PROCESSING_COMPLETED = 1 . Otherwise PROCESSING_OUTSTANDING = 0.
An adapter can signal an error by setting the processing result to PROCESSING_ERROR = 2 . The property 'message' can be filled with a error message text.
SetupService| Modifier and Type | Field and Description |
|---|---|
static int |
PROCESSING_COMPLETED |
static int |
PROCESSING_ERROR |
static int |
PROCESSING_OUTSTANDING |
| Constructor and Description |
|---|
DocumentImportEvent(org.imixs.workflow.ItemCollection source) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendMessage(String message) |
List<String> |
getMessages() |
int |
getResult() |
org.imixs.workflow.ItemCollection |
getSource() |
void |
setMessages(List<String> messages) |
void |
setResult(int result) |
public static final int PROCESSING_OUTSTANDING
public static final int PROCESSING_COMPLETED
public static final int PROCESSING_ERROR
public DocumentImportEvent(org.imixs.workflow.ItemCollection source)
public org.imixs.workflow.ItemCollection getSource()
public int getResult()
public void setResult(int result)
public void appendMessage(String message)
Copyright © 2016–2021 Imixs Software Solutions GmbH. All rights reserved.