Divooka Reference

Dynamic Operations

5 nodes

On this page 5

Get Properties

Function

Get names of public properties.

Signature
GetProperties(obj: Any) -> Text Array
string[] GetProperties(object obj)

Parameters

nametypedefaultdescription
objAny—

Returns

resultText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Dynamic Operations
Package
Standard Library

Get Property Value

Function

This node carries no documentation.

Signature
GetPropertyValue(obj: Any, property: Text) -> Any
object GetPropertyValue(object obj, string property)

Parameters

nametypedefaultdescription
objAny—
propertyText—

Returns

resultAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Dynamic Operations
Package
Standard Library

Make Expando

Function

This node carries no documentation.

Signature
MakeExpando(names: Text Array, values: Any Array) -> Any
object MakeExpando(string[] names, object[] values)

Parameters

nametypedefaultdescription
namesText Array—
valuesAny Array—

Returns

resultAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Dynamic Operations
Package
Standard Library

Make Object

Function

This node carries no documentation.

Overload 1 of 2

Signature
MakeObject -> Any
    properties: Type Array
    propertyNames: Text Array
    initialValues: Any Array
object MakeObject(
    Type[] properties,
    string[] propertyNames,
    object[] initialValues)

Parameters

nametypedefaultdescription
propertiesType Array—
propertyNamesText Array—
initialValuesAny Array—

Returns

resultAny

Overload 2 of 2

Signature
MakeObject -> Any
    properties: Type Array
    initialValues: Any Array
object MakeObject(Type[] properties, object[] initialValues)

Parameters

nametypedefaultdescription
propertiesType Array—
initialValuesAny Array—

Returns

resultAny
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Dynamic Operations
Package
Standard Library

Make Object Type

Function

This node carries no documentation.

Overload 1 of 2

Signature
MakeObjectType -> Type
    properties: Type Array
    propertyNames: Text Array
    typeName: Text
    initialValues: Any Array
    useCache: Truth
Type MakeObjectType(
    Type[] properties,
    string[] propertyNames,
    string typeName,
    object[] initialValues,
    bool useCache = true)

Parameters

nametypedefaultdescription
propertiesType Array—
propertyNamesText Array—
typeNameText—
initialValuesAny Array—
useCacheTruthTrue

Returns

resultType

Remarks

This generates a runtime assembly, and for Divooka purpose one should NOT directly save information on that type for it will not be available during (graph) loading type.
Instead, we should devise dedicated reflection helpers to deal with such generated types, e.g. devise an automatic dataflow node equivalent ReflectionPropertyAccessorNode or something like that which saves only the intended property to be accessed and thus do not require strongly typed Type or Assembly information

Overload 2 of 2

Signature
MakeObjectType -> Type
    properties: Type Array
    initialValues: Any Array
    useCache: Truth
Type MakeObjectType(
    Type[] properties,
    object[] initialValues,
    bool useCache = true)

Parameters

nametypedefaultdescription
propertiesType Array—
initialValuesAny Array—
useCacheTruthTrue

Returns

resultType
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Dynamic Operations
Package
Standard Library