Funnel action that copies an existing lead file to a new file, evaluating the source and target file names via MVEL or using them literally. Registered under the JSON type "copyLeadFile". fileNameMvel and newFileNameMvel resolve the file to copy and the name to give the copy, either as plain text or as MVEL expressions evaluated against the lead, the current request and the root folder. The copy is attached to the lead itself, or to its source lead when setInSource is true.
Group: Journeys
Extends: AbstractGoalAction
Properties
| Property | Returns | Description |
|---|---|---|
| fileNameMvel | String | The name of the existing lead file to copy, given either literally or as an MVEL expression depending on plainText. |
| newFileNameMvel | String | The name to give the copied file, given either literally or as an MVEL expression depending on newFilePlainText. |
| newFilePlainText | boolean | Whether newFileNameMvel is used literally rather than evaluated as an MVEL expression. |
| plainText | boolean | Whether fileNameMvel is used literally rather than evaluated as an MVEL expression. |
| setInSource | boolean | Whether the copied file is attached to the lead's source lead instead of the lead itself. |
Methods
getFileNameMvel()
Returns: String
The name of the existing lead file to copy, given either literally or as an MVEL expression depending on plainText.
getNewFileNameMvel()
Returns: String
The name to give the copied file, given either literally or as an MVEL expression depending on newFilePlainText.
getSetInSource()
Returns: boolean
Whether the copied file is attached to the lead's source lead instead of the lead itself.
getPlainText()
Returns: boolean
Whether fileNameMvel is used literally rather than evaluated as an MVEL expression.
getNewFilePlainText()
Returns: boolean
Whether newFileNameMvel is used literally rather than evaluated as an MVEL expression.