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 StringchainNamePatternstupidRegexp
-
Constructor Summary
Constructors Constructor Description CreateDocumentsFromAutomationChainAction(String chainName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(ExecutionContext context)Executes one action.protected StringgenerateMailName(String subject)protected StringgetChainName()-
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:MessageActionExecutes one action.If it returns false, the following actions from the pipe are not executed.
- Specified by:
executein interfaceMessageAction- Overrides:
executein classAbstractMailAction- See Also:
ExecutionContext
-
-