Class CreateDocumentsFromAutomationChainAction
- java.lang.Object
-
- org.nuxeo.ecm.platform.mail.listener.action.AbstractMailAction
-
- org.nuxeo.ecm.platform.mail.listener.action.CreateDocumentsFromAutomationChainAction
-
- All Implemented Interfaces:
MessageAction
public class CreateDocumentsFromAutomationChainAction extends AbstractMailAction
Creates a MailMessage document for every new email found in the INBOX. The creation is handled by an AutomationChain- Since:
- 6.0
- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected String
chainName
Pattern
stupidRegexp
-
Constructor Summary
Constructors Constructor Description CreateDocumentsFromAutomationChainAction(String chainName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(ExecutionContext context)
Executes one action.protected String
generateMailName(String subject)
protected String
getChainName()
-
Methods inherited from class org.nuxeo.ecm.platform.mail.listener.action.AbstractMailAction
getCoreSession, reset
-
-
-
-
Field Detail
-
stupidRegexp
public Pattern stupidRegexp
-
-
Constructor Detail
-
CreateDocumentsFromAutomationChainAction
public CreateDocumentsFromAutomationChainAction(String chainName)
-
-
Method Detail
-
getChainName
protected String getChainName()
-
generateMailName
protected String generateMailName(String subject)
-
execute
public boolean execute(ExecutionContext context)
Description copied from interface:MessageAction
Executes one action.If it returns false, the following actions from the pipe are not executed.
- Specified by:
execute
in interfaceMessageAction
- Overrides:
execute
in classAbstractMailAction
- See Also:
ExecutionContext
-
-