Links a funnel node's outgoing email or SMS message to the lead and funnel repository it was sent from, so that later delivery and interaction events (opens, clicks, bounces) can be traced back to the point in the journey that triggered them. Exactly one of the email item or SMS item is set on a given row, matching whichever channel the node used. Read frequently while a journey is processing incoming events, so results are held in Hibernate's second-level cache.
Group: Database Entities
Implements: Relational, Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| emailItem | EmailItem | Email that was sent from the funnel node, when this link records an email send. |
| funnel | Long | Id of the funnel repository this link belongs to. |
| id | long | Database primary key of this link. |
| lead | Long | Id of the lead the email or SMS was sent to. |
| nodeId | String | Id of the funnel node that sent the email or SMS, i.e. the lead's current goal at the time of sending. |
| originatingOrg | Organisation | Organisation that created the email or SMS this link records. |
| smsItem | SmsItem | SMS that was sent from the funnel node, when this link records an SMS send. |
Methods
getId() · getOriginatingOrg() · setOriginatingOrg(Organisation originatingOrg) · getFunnel() · setFunnel(Long funnel) · getNodeId() · setNodeId(String nodeId) · getLead() · setLead(Long lead) · getEmailItem() · setEmailItem(EmailItem emailItem) · getSmsItem() · setSmsItem(SmsItem smsItem) · lead()
getId()
Returns: long
Database primary key of this link.
getOriginatingOrg()
Returns: Organisation
Organisation that created the email or SMS this link records.
setOriginatingOrg(Organisation originatingOrg)
Returns: void
Sets the organisation that created the email or SMS.
| Parameter | Description |
|---|---|
originatingOrg | the originating organisation |
getFunnel()
Returns: Long
Id of the funnel repository this link belongs to.
setFunnel(Long funnel)
Returns: void
Sets the id of the owning funnel repository.
| Parameter | Description |
|---|---|
funnel | the owning funnel's id |
getNodeId()
Returns: String
Id of the funnel node that sent the email or SMS, i.e. the lead's current goal at the time of sending.
setNodeId(String nodeId)
Returns: void
Sets the id of the funnel node that sent the message.
| Parameter | Description |
|---|---|
nodeId | the sending node's id |
getLead()
Returns: Long
Id of the lead the email or SMS was sent to.
setLead(Long lead)
Returns: void
Sets the id of the recipient lead.
| Parameter | Description |
|---|---|
lead | the recipient lead's id |
getEmailItem()
Returns: EmailItem
Email that was sent from the funnel node, when this link records an email send.
setEmailItem(EmailItem emailItem)
Returns: void
Sets the email item this link records.
| Parameter | Description |
|---|---|
emailItem | the email that was sent |
getSmsItem()
Returns: SmsItem
SMS that was sent from the funnel node, when this link records an SMS send.
setSmsItem(SmsItem smsItem)
Returns: void
Sets the SMS item this link records.
| Parameter | Description |
|---|---|
smsItem | the SMS that was sent |
lead()
Returns: Lead
Loads the lead that the email or SMS was sent to. Performs a database lookup by the stored lead id, unlike the cheap getLead accessor which only returns the id.