Package com.logicaldoc.workflow.trigger
Class WorkflowListener
java.lang.Object
com.logicaldoc.workflow.trigger.WorkflowListener
- All Implemented Interfaces:
com.logicaldoc.core.document.DocumentListener
public class WorkflowListener
extends Object
implements com.logicaldoc.core.document.DocumentListener
This listener assigns a workflow to the document
- Since:
- 5.5
- Author:
- Matteo Caruso - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) voidafterSaveHistory(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) voidafterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) If the document is stored into the database, we start a workflow over this document according to the document templatevoidbeforeCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) voidbeforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) This method verifies if the document is not already stored into the database.
-
Constructor Details
-
WorkflowListener
public WorkflowListener()
-
-
Method Details
-
beforeStore
public void beforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceExceptionThis method verifies if the document is not already stored into the database. If so, we put an entry into the dictionary to recognizes the document after the store operation.- Specified by:
beforeStorein interfacecom.logicaldoc.core.document.DocumentListener- Throws:
com.logicaldoc.core.PersistenceException
-
afterStore
public void afterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceExceptionIf the document is stored into the database, we start a workflow over this document according to the document template- Specified by:
afterStorein interfacecom.logicaldoc.core.document.DocumentListener- Throws:
com.logicaldoc.core.PersistenceException
-
beforeCheckin
public void beforeCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
beforeCheckinin interfacecom.logicaldoc.core.document.DocumentListener- Throws:
com.logicaldoc.core.PersistenceException
-
afterCheckin
public void afterCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
afterCheckinin interfacecom.logicaldoc.core.document.DocumentListener- Throws:
com.logicaldoc.core.PersistenceException
-
afterSaveHistory
public void afterSaveHistory(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
afterSaveHistoryin interfacecom.logicaldoc.core.document.DocumentListener- Throws:
com.logicaldoc.core.PersistenceException
-