IProcNode
- Last UpdatedJan 17, 2017
- 1 minute read
This method returns the current node in execution.
Properties
-
CurrentNode: Provides access to the properties of the current node.
-
ParentNode: Provides access to the properties of the parent node.
-
NextSiblingNode: Provides access to the properties of the next sibling node.
-
PreviousSiblingNode: Provides access to the properties of the previous sibling node.
Returns
A Lua table of the following IProcNode objects:
Note: IProcNode objects are case-sensitive.
-
Alias – string
-
Id – string
-
ParentId – string
-
Required – bool
-
DisplayName – string
-
IsDynmaicAsset – bool
-
Sequence – int
-
Value – object
-
DataType – data type name as string
-
Asset – Table of the following asset properties:
-
AllowWorkOrder
-
ApplicationId
-
AssetActualName
-
AssetDescription
-
AssetTypeId
-
ChildCount
-
DisplayName
-
Epc
-
ExtendedProperties
-
FromExternal
-
Id
-
IsDeleted
-
ItemOrder
-
NameForSorting
-
NameToDisplay
-
ParentId
-
TypeOfAsset
-
Example
function Calculate(params)
local nextNode = IProcNode.NextSiblingNode
local nextNodeAsset = nextNode["Asset"]
local nextNodeAssetName = nextNodeAsset["AssetActualName"]
return nextNodeAssetName
end