public abstract class AbstractUserInJourneyChoiceNode extends TrueFalseNode
FlowNode.FlowNodeExecutionResult
Constructor and Description |
---|
AbstractUserInJourneyChoiceNode(org.json.JSONObject object,
FlowEntry flowEntry)
Creates a new instance from the given JSON configuration object.
|
AbstractUserInJourneyChoiceNode(String id,
String name,
String journeyEntityId,
FlowNode trueNode,
FlowNode falseNode)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(FlowContext flowContext)
Evaluates the given flow context.
|
String |
getJourneyEntityId()
Returns this node journey entity identifier.
|
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.
|
addFalseNodeToJson, addTrueNodeToJson, execute, getFalseNodeFromJson, getFollowUps, getTrueNodeFromJson
getAndValidateNotAnonymousUser, getFlowEntry, getId, getName, getNodeLogLabel, init, logError, logError
public AbstractUserInJourneyChoiceNode(String id, String name, String journeyEntityId, FlowNode trueNode, FlowNode falseNode)
id
- the node identifiername
- the node namejourneyEntityId
- the journey or journey stage identifiertrueNode
- the truthy follow-upfalseNode
- the falsy follow-uppublic AbstractUserInJourneyChoiceNode(org.json.JSONObject object, FlowEntry flowEntry)
object
- the JSON configuration objectflowEntry
- the flow entrypublic org.json.JSONObject toJSONObject()
FlowNode
#FlowNode(JSONObject)
constructor.toJSONObject
in class TrueFalseNode
public boolean evaluate(FlowContext flowContext) throws PortalException
TrueFalseNode
true
if the context matches the condition or false
otherwise.evaluate
in class TrueFalseNode
flowContext
- the contexttrue
if the context matches the condition or false
otherwise.PortalException
public boolean validateStateAndLog(boolean checkAllNextNodes)
FlowNode
validateStateAndLog
in class TrueFalseNode
checkAllNextNodes
- check all next nodes nodes.public String getJourneyEntityId()
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.