Constructor and Description |
---|
FlowUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addNextNodeOnJson(FlowNode nextNode,
String objectKey,
org.json.JSONObject nodeJson)
Adds the given next node on node JSON using the given
objectKey parameter as the object's key. |
static void |
addSingleNextNodeOnJson(FlowNode nextNode,
org.json.JSONObject nodeJson)
Adds the next node on node JSON.
|
static Flow |
getFlowFromJson(org.json.JSONObject flowJson,
FlowEntry flowEntry)
Returns a
Flow by parsing the given JSONObject . |
static org.json.JSONObject |
getJsonFromFlow(Flow flow)
Returns a
JSONObject by converting the given Flow . |
static FlowNode |
getNextNodeInJson(org.json.JSONObject nodeJson,
String objectKey,
FlowEntry flowEntry)
Returns the next node from the given JSON object, using the given
objectKey parameter as object key. |
static FlowNode |
getSingleNextNodeInJson(org.json.JSONObject nodeJson,
FlowEntry flowEntry)
Returns the next node from the given JSON object, using the
nextNode key to get it. |
public static Flow getFlowFromJson(org.json.JSONObject flowJson, FlowEntry flowEntry)
Flow
by parsing the given JSONObject
.flowJson
- the flow in JSON format.flowEntry
- the flow entry this node belongs to.Flow
.public static org.json.JSONObject getJsonFromFlow(Flow flow)
JSONObject
by converting the given Flow
.flow
- the Flow
JSONObject
.public static void addSingleNextNodeOnJson(FlowNode nextNode, org.json.JSONObject nodeJson)
nextNode
key.nextNode
- the next node to be stored.nodeJson
- the node JSON that will receive the next node.#getSingleNextNodeInJson(JSONObject)
public static void addNextNodeOnJson(FlowNode nextNode, String objectKey, org.json.JSONObject nodeJson)
objectKey
parameter as the object's key.nextNode
- the next node to be stored.objectKey
- the property JSON for store next node.nodeJson
- the node JSON that will receive the next node.public static FlowNode getSingleNextNodeInJson(org.json.JSONObject nodeJson, FlowEntry flowEntry)
nextNode
key to get it.nodeJson
- the JSON object.flowEntry
- the flow entry this node belongs to.nextNode
key to get it.addSingleNextNodeOnJson(FlowNode, JSONObject)
public static FlowNode getNextNodeInJson(org.json.JSONObject nodeJson, String objectKey, FlowEntry flowEntry)
objectKey
parameter as object key.nodeJson
- the parent next flow node.objectKey
- property that holds next flow node.flowEntry
- the flow entry this node belongs to.null
if there is no next flow node.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.