Class RecalculateUserSegmentationsMembershipActionNode
- java.lang.Object
-
- lumis.portal.analytics.automationflow.FlowNode
-
- lumis.portal.analytics.automationflow.action.RecalculateUserSegmentationsMembershipActionNode
-
public class RecalculateUserSegmentationsMembershipActionNode extends FlowNode
Recalculate user segmentation membership.- Since:
- 12.0.0
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class lumis.portal.analytics.automationflow.FlowNode
FlowNode.FlowNodeExecutionResult
-
-
Constructor Summary
Constructors Constructor Description RecalculateUserSegmentationsMembershipActionNode(java.lang.String id, java.lang.String name, java.util.Collection<java.lang.String> userSegmentationIds, boolean recalculateAllUserSegmentations, FlowNode nextNode)
Creates a new instance.RecalculateUserSegmentationsMembershipActionNode(org.json.JSONObject object, FlowEntry flowEntry)
Creates a new instance from the given JSON object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowNode.FlowNodeExecutionResult
execute(FlowContext flowContext)
Executes this node and returns the next node to be executed.java.util.Collection<FlowNode>
getFollowUps()
Returns all possible follow up nodes.org.json.JSONObject
toJSONObject()
Returns the JSON representation of this node.boolean
validateStateAndLog(boolean checkAllNextNodes)
To permit edition when JSON flow is saved incorrectly in data base, the flow node constructor by JSON parameter need allows to load flow node variables without exception when something already is wrong.-
Methods inherited from class lumis.portal.analytics.automationflow.FlowNode
getAndValidateNotAnonymousUser, getFlowEntry, getId, getName, getNodeLogLabel, init, logError, logError
-
-
-
-
Field Detail
-
nextNode
protected final FlowNode nextNode
-
-
Constructor Detail
-
RecalculateUserSegmentationsMembershipActionNode
public RecalculateUserSegmentationsMembershipActionNode(java.lang.String id, java.lang.String name, java.util.Collection<java.lang.String> userSegmentationIds, boolean recalculateAllUserSegmentations, FlowNode nextNode)
Creates a new instance.- Parameters:
id
- the node identifiername
- the node nameuserSegmentationIds
- the user segmentation identifiers (ignored ifrecalculateAllUserSegmentations
istrue
)recalculateAllUserSegmentations
- indicates whether all user segmentations should be recalculatednextNode
- the next node- Since:
- 12.0.0
-
RecalculateUserSegmentationsMembershipActionNode
public RecalculateUserSegmentationsMembershipActionNode(org.json.JSONObject object, FlowEntry flowEntry)
Creates a new instance from the given JSON object.- Parameters:
object
- the JSON object.flowEntry
- the flow entry this node belongs to.- Since:
- 12.0.0
-
-
Method Detail
-
validateStateAndLog
public boolean validateStateAndLog(boolean checkAllNextNodes)
Description copied from class:FlowNode
To permit edition when JSON flow is saved incorrectly in data base, the flow node constructor by JSON parameter need allows to load flow node variables without exception when something already is wrong. So, to prevents exception on flow node execution and prevent to save flow when flow node is invalid state, this methods will check if all variables is OK and log otherwise.- Specified by:
validateStateAndLog
in classFlowNode
- Parameters:
checkAllNextNodes
- check all next nodes nodes.- Returns:
- true if all variable state is OK.
-
toJSONObject
public org.json.JSONObject toJSONObject()
Description copied from class:FlowNode
Returns the JSON representation of this node. This method is the counterpart of#FlowNode(JSONObject)
constructor.- Returns:
- the JSON representation of this node.
-
execute
public FlowNode.FlowNodeExecutionResult execute(FlowContext flowContext) throws PortalException
Description copied from class:FlowNode
Executes this node and returns the next node to be executed.- Specified by:
execute
in classFlowNode
- Parameters:
flowContext
- the flow context- Returns:
- the next node to be executed
- Throws:
PortalException
-
getFollowUps
public java.util.Collection<FlowNode> getFollowUps()
Description copied from class:FlowNode
Returns all possible follow up nodes.- Overrides:
getFollowUps
in classFlowNode
- Returns:
- all possible follow up nodes.
-
-