public class Goal extends MetadataItem
Campaign
. Either types of goals behave exactly the same way with the exception of two
notable differences:
Modifier and Type | Field and Description |
---|---|
static String |
ITEM_TYPE |
metadata
Modifier and Type | Method and Description |
---|---|
String |
getCampaignId()
Retrieves the identifier of the campaign this goal is part of, if any.
|
Condition |
getStartEvent()
Retrieves the
Condition determining the goal's start event if any, used for more complex goals where an action has to be accomplished first before evaluating the
success of the final goal (funnel goal for example). |
Condition |
getTargetEvent()
Retrieves the
Condition determining the target event which needs to occur to consider the goal accomplished. |
void |
setCampaignId(String campaignId) |
void |
setStartEvent(Condition startEvent) |
void |
setTargetEvent(Condition targetEvent) |
getMetadata, getScope, setMetadata
equals, getItemId, getItemType, getItemType, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
public static final String ITEM_TYPE
public Goal()
public Goal(Metadata metadata)
public Condition getStartEvent()
Condition
determining the goal's start event if any, used for more complex goals where an action has to be accomplished first before evaluating the
success of the final goal (funnel goal for example).null
if no such event existspublic void setStartEvent(Condition startEvent)
public Condition getTargetEvent()
Condition
determining the target event which needs to occur to consider the goal accomplished.public void setTargetEvent(Condition targetEvent)
public String getCampaignId()
null
if this goal is not part of any campaignpublic void setCampaignId(String campaignId)
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.