Appian Introspect Capability

Overview

Create SAIL variables with objects that are usually only system-generated! Introspect give the possibility to parameterize some behavior bases on meta definitions. Allows Designers to model references to Appian objects. Also provides functions to read and write object references.

Works with the following objects:

  • Types
  • CDTs
  • Rules
  • Process Models

Key Features & Functionality

Main Functions

  • CreateTypeReference and CreateTypeReferenceFromTypeId: Given a Type or a typeId returns an instance of the TypeReference CDT which points to it.
  • GetType, GetListType, NewValue, GetFieldNames are also implemented for the TypeReference CDT
  • CreateFieldReference, GetFieldType, IsFieldArray: Given a TypeReference and a field name, returns an instance of the CDTFieldReference CDT which points to the field definition. You can get the typeId from the returned CDTFieldReference and ask it the referenced field is an array
  • CreateRuleReference, GetRule: Given a Rule Reference returns an instance of RuleReference CDT which point to the given Rule. You can get back the original rule Reference and invoke it if necessary.
  • CreateProcessModelReference, GetProcessModel: Given a Process Model Constant returns an instance of ProcessModelReference CDT which point to the same Process Model as the given constant. You can get back the original Process Model reference and invoke it.
  • CreateEntityReference, GetEntity, GetEntityTypeReference: Given an Entity Constant returns an instance of EntityReference CDT which point to the same Entity as the given constant. Again you can get back the original Data Store Entity, you can also get a Reference to the CDT that is persisted in the referenced entity.
  • LoadMetadata: Returns a CDTMetadataModel grouping the metadata of the given CDT and any other rereferenced directly or indirectly indexed by typeId.
Anonymous
Parents
  • v1.1.1 Release Notes
    • Corrected an error thrown in Function createRuleReference
    • Corrected the Function GetType(TypeReference) now it returns the Referenced Type itself and not an ID_REFERENCE to its constructor
    • New Function newValue(TypeReference) returns an ID_REFERENCE to the referenced type's constructor
    • New Function getListType(TypeReference) return the referenced type's corresponding List Type
    • New Function createEntityReference(DataStoreEntity) returns new Reference to the given datastore entity, so this references can be saved and loaded as part of other CDTs
    • New Function getEntity(EntityReference) returns the referenced entity from the given EntityReference, so this reference can be used anywhere a DataStoreEntity is expected
    • CreateRuleReference can also be used with integrations, interfaces and decision tables too

Comment
  • v1.1.1 Release Notes
    • Corrected an error thrown in Function createRuleReference
    • Corrected the Function GetType(TypeReference) now it returns the Referenced Type itself and not an ID_REFERENCE to its constructor
    • New Function newValue(TypeReference) returns an ID_REFERENCE to the referenced type's constructor
    • New Function getListType(TypeReference) return the referenced type's corresponding List Type
    • New Function createEntityReference(DataStoreEntity) returns new Reference to the given datastore entity, so this references can be saved and loaded as part of other CDTs
    • New Function getEntity(EntityReference) returns the referenced entity from the given EntityReference, so this reference can be used anywhere a DataStoreEntity is expected
    • CreateRuleReference can also be used with integrations, interfaces and decision tables too

Children
No Data