Skip to content

lib-finStackCore 库参考 ​

原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793455784/FIN+5.3.1+lib-finStackCore 中文整理基于 FIN 5.3.1

导读: 本页为 lib-finStackCore 的 API / 标签 / 函数参考文档。

以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。


目录(导读) ​

  • lib
  • meta
  • funcs
  • def
  • addNavURI(list)
  • finActionsOn(target)
  • finAddShadowPoints(source, options: null)
  • finBackupRecord(recs, ops: ..., primaryTag: "equip")
  • finCheckForUpdate()
  • finContentOn(target)
  • finContext()
  • finFileToSnapshot(fileRef)
  • finFindDuplicateIdsInBackup(backup, ops: Etc.makeDict(["relTo":"/"]))
  • finGenScram()
  • finGetAllPodDocs()
  • finGetAllPodNames()
  • finGetFinDocsForPodWithName(podName)
  • finGraphicOn(target, queryRelated: false)
  • finGridFilter(target, filterExpr)
  • finHisRead(hisRefs, dates, opts: null)
  • finImportGrid(grid, newIds: true, oldNewIDMap: [:], parent: null, includeOptionalNavMeta: false)
  • finMigrateFilterIds(filter: "id")
  • finNavChildren(treeName, baseRef: null, opts: null, filterSubEquipment: false, checkTaskAndVars: false)
  • finParseModBus32(value)
  • finPointConn(grid)
  • finProgramOn(target)
  • finReadBinTag(recId, tagName)
  • finReadById(recId)
  • finReadByIds(ids)
  • finReadGraphicPoints(pointFilters, queries, filterIsNavName: false, targetRef: null, resolveRequestBinding: false, treeName: "equip")
  • finReadPoints(filters, filterIsNavName: false, targetId: null, resolveRequestBinding: false, resolveShadowPoints: true, treeName: "equip")
  • finRestoreFile(file, ops: ..., keepIds: false, parent: null)
  • finRestoreRecord(rec, ops: ..., keepIds: false, parent: null)
  • finSetSuperUserPassword(oldPassword, newPassword)
  • finShadowPointToPoint(shadowRef, refOnly: false)
  • finSkySparkApps()
  • finSkySparkViewsForApp(appName)
  • finSummaryOn(target)
  • finTasks(programRef: null, targetRef: null)
  • finTuningPolicies(targets)
  • finUpdate(fileId: null)
  • finUpdateLicense(fileRef)
  • finWriteBinTag(recId, tagName, handle, mimeType: "text/plain")
  • firstRun()
  • firstRunComplete()
  • fromJSON(value)
  • getNavURI(recId, treeName: "equip")
  • gridToZinc(grid)
  • migrateGetFileUrl(original, projectName)
  • migrateRef(original, projectName)
  • toJSON(item, complexNumbers: false)

概述(中译) ​

FIN 主机服务


API 正文(英文) ​

funcs ​

addNavURI
finActionsOnGet all Actions which are registered on the given target
finAddShadowPoints
finBackupRecordExport all the related records referencing the recs parameter The recs can be a single id or a list of ids By default this will be an equip, but users can pass any record and specify the primaryTag that defines the entity for this record
finCheckForUpdate
finContentOnGet all O&M Manuals which are registered on the given target
finContext
finFileToSnapshot
finFindDuplicateIdsInBackupLooks inside a file for clashing IDs and returns a list duplicates
finGenScram
finGetAllPodDocs
finGetAllPodNames
finGetFinDocsForPodWithName
finGraphicOnGet all Fin graphics which are registered on the given target
finGridFilterFilters a grid using a filter expression
finHisRead
finImportGridImports the grid in the local server
finMigrateFilterIds
finNavChildren
finParseModBus32
finPointConn
finProgramOnGet all Programs which are registered on the given target
finReadBinTagFIN Read Binary Tag This function will read the data in the given tag on the given record this function will return a Str if the tag has text data and will return a handle for all other types
finReadById
finReadByIds
finReadGraphicPoints
finReadPoints
finRestoreFileRestores a FinStack template file
finRestoreRecordImport equip from a zip backup stored on the record Params
finSetSuperUserPassword
finShadowPointToPoint
finSkySparkAppsReturns all SkySpark Apps
finSkySparkViewsForAppReturns all Views for a SkySpark app name
finSummaryOnGet all Summaries which are registered on the given target
finTasks
finTuningPoliciesGet all tuning policies which are registered on the given target
finUpdate
finUpdateLicense
finWriteBinTagFIN Write Binary Tag This function writes the data described by the handle to the given bin tag on the requested record
firstRun
firstRunComplete
fromJSON
getNavURI
gridToZinc
migrateGetFileUrlAllows you to change the project name on a getFinFile url /getFinFile/projectA -> /getfinFile/projectB @param original Original getFinFile URL @param projectName New project name to point the url to @return getFinFile URL that queries the project specified by the projectName
migrateRefAllows you to change the project name on an absolute or relative reference @p:projectA:r:1234-5678 -> @p:projectB:r:1234-5678 or @1234-5678 -> @p:projectB:r:1234-5678 @param original Original Reference @param projectName New project name to point the reference to @return reference that points to the project specified by the projectName
toJSON


def ​

func:addNavURI ​

addNavURI(list) ​


meta ​

deffunc:addNavURI
isfunc
liblib:finStackCore
nameaddNavURI

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finActionsOn ​

finActionsOn(target) ​

Get all Actions which are registered on the given target. The target may be any value accepted by toRec().


meta ​

deffunc:finActionsOn
isfunc
liblib:finStackCore
namefinActionsOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finAddShadowPoints ​

finAddShadowPoints(source, options: null) ​


meta ​

deffunc:finAddShadowPoints
isfunc
liblib:finStackCore
namefinAddShadowPoints

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finBackupRecord ​

finBackupRecord(recs, ops: ..., primaryTag: "equip") ​

Export all the related records referencing the recs parameter The recs can be a single id or a list of ids By default this will be an equip, but users can pass any record and specify the primaryTag that defines the entity for this record. Params are:

  • rec: ref or record to an equip

  • options: a optional dict that lists the export types, i.e {references, graphics, actions, connectors, programs, applyToAll, progressStart:0, progressEnd:100} Users can use {all} to use all options, or {everything} that maps to

  • primaryTag: an optional string, defaults to equip but can be customizale by the user by default the functions tries to find this based on the the equipPath tags


meta ​

deffunc:finBackupRecord
isfunc
liblib:finStackCore
namefinBackupRecord

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finCheckForUpdate ​

finCheckForUpdate() ​


meta ​

deffunc:finCheckForUpdate
isfunc
liblib:finStackCore
namefinCheckForUpdate

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finContentOn ​

finContentOn(target) ​

Get all O&M Manuals which are registered on the given target. The target may be any value accepted by toRec().


meta ​

deffunc:finContentOn
isfunc
liblib:finStackCore
namefinContentOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finContext ​

finContext() ​


meta ​

deffunc:finContext
isfunc
liblib:finStackCore
namefinContext

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFileToSnapshot ​

finFileToSnapshot(fileRef) ​


meta ​

deffunc:finFileToSnapshot
isfunc
liblib:finStackCore
namefinFileToSnapshot

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finFindDuplicateIdsInBackup ​

finFindDuplicateIdsInBackup(backup, ops: Etc.makeDict(["relTo":"/"])) ​

Looks inside a file for clashing IDs and returns a list duplicates


meta ​

deffunc:finFindDuplicateIdsInBackup
isfunc
liblib:finStackCore
namefinFindDuplicateIdsInBackup

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGenScram ​

finGenScram() ​


meta ​

deffunc:finGenScram
isfunc
liblib:finStackCore
namefinGenScram

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetAllPodDocs ​

finGetAllPodDocs() ​


meta ​

deffunc:finGetAllPodDocs
isfunc
liblib:finStackCore
namefinGetAllPodDocs

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetAllPodNames ​

finGetAllPodNames() ​


meta ​

deffunc:finGetAllPodNames
isfunc
liblib:finStackCore
namefinGetAllPodNames

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGetFinDocsForPodWithName ​

finGetFinDocsForPodWithName(podName) ​


meta ​

deffunc:finGetFinDocsForPodWithName
isfunc
liblib:finStackCore
namefinGetFinDocsForPodWithName

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGraphicOn ​

finGraphicOn(target, queryRelated: false) ​

Get all Fin graphics which are registered on the given target. The target may be any value accepted by toRec().


meta ​

deffunc:finGraphicOn
isfunc
liblib:finStackCore
namefinGraphicOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finGridFilter ​

finGridFilter(target, filterExpr) ​

Filters a grid using a filter expression.

Parameters ​

  • target: A grid to be filtered.
  • filterExpr: An Axon filter expression.

Returns ​

  • A grid containing elements that match the filterExpr.

Example ​

readAll(equip).finGridFilter(ahuRef and boilerRef)


meta ​

deffunc:finGridFilter
isfunc
liblib:finStackCore
namefinGridFilter

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finHisRead ​

finHisRead(hisRefs, dates, opts: null) ​


meta ​

deffunc:finHisRead
isfunc
liblib:finStackCore
namefinHisRead

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finImportGrid ​

finImportGrid(grid, newIds: true, oldNewIDMap: [:], parent: null, includeOptionalNavMeta: false) ​

Imports the grid in the local server. The grid is pre-processed so that it is conforming with the local navMeta. While importing all the missing required nav paths are created as mock entries


meta ​

deffunc:finImportGrid
isfunc
liblib:finStackCore
namefinImportGrid

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finMigrateFilterIds ​

finMigrateFilterIds(filter: "id") ​


meta ​

deffunc:finMigrateFilterIds
isfunc
liblib:finStackCore
namefinMigrateFilterIds

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finNavChildren ​

finNavChildren(treeName, baseRef: null, opts: null, filterSubEquipment: false, checkTaskAndVars: false) ​


meta ​

deffunc:finNavChildren
isfunc
liblib:finStackCore
namefinNavChildren

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finParseModBus32 ​

finParseModBus32(value) ​


meta ​

deffunc:finParseModBus32
isfunc
liblib:finStackCore
namefinParseModBus32

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finPointConn ​

finPointConn(grid) ​


meta ​

deffunc:finPointConn
isfunc
liblib:finStackCore
namefinPointConn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finProgramOn ​

finProgramOn(target) ​

Get all Programs which are registered on the given target. The target may be any value accepted by toRec().


meta ​

deffunc:finProgramOn
isfunc
liblib:finStackCore
namefinProgramOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finReadBinTag ​

finReadBinTag(recId, tagName) ​

FIN Read Binary Tag

This function will read the data in the given tag on the given record

this function will return a Str if the tag has text data and will return a handle for all other types


meta ​

deffunc:finReadBinTag
isfunc
liblib:finStackCore
namefinReadBinTag

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finReadById ​

finReadById(recId) ​


meta ​

deffunc:finReadById
isfunc
liblib:finStackCore
namefinReadById

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finReadByIds ​

finReadByIds(ids) ​


meta ​

deffunc:finReadByIds
isfunc
liblib:finStackCore
namefinReadByIds

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finReadGraphicPoints ​

finReadGraphicPoints(pointFilters, queries, filterIsNavName: false, targetRef: null, resolveRequestBinding: false, treeName: "equip") ​


meta ​

deffunc:finReadGraphicPoints
isfunc
liblib:finStackCore
namefinReadGraphicPoints

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finReadPoints ​

finReadPoints(filters, filterIsNavName: false, targetId: null, resolveRequestBinding: false, resolveShadowPoints: true, treeName: "equip") ​


meta ​

deffunc:finReadPoints
isfunc
liblib:finStackCore
namefinReadPoints

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finRestoreFile ​

finRestoreFile(file, ops: ..., keepIds: false, parent: null) ​

Restores a FinStack template file


meta ​

deffunc:finRestoreFile
isfunc
liblib:finStackCore
namefinRestoreFile

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finRestoreRecord ​

finRestoreRecord(rec, ops: ..., keepIds: false, parent: null) ​

Import equip from a zip backup stored on the record Params:

  • rec: the record that stores a file Bin tag that contains the actual backup
  • keepIds: true if the restored records should keep the original back up ids

meta ​

deffunc:finRestoreRecord
isfunc
liblib:finStackCore
namefinRestoreRecord

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSetSuperUserPassword ​

finSetSuperUserPassword(oldPassword, newPassword) ​


meta ​

deffunc:finSetSuperUserPassword
isfunc
liblib:finStackCore
namefinSetSuperUserPassword

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finShadowPointToPoint ​

finShadowPointToPoint(shadowRef, refOnly: false) ​


meta ​

deffunc:finShadowPointToPoint
isfunc
liblib:finStackCore
namefinShadowPointToPoint

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSkySparkApps ​

finSkySparkApps() ​

Returns all SkySpark Apps


meta ​

deffunc:finSkySparkApps
isfunc
liblib:finStackCore
namefinSkySparkApps

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSkySparkViewsForApp ​

finSkySparkViewsForApp(appName) ​

Returns all Views for a SkySpark app name


meta ​

deffunc:finSkySparkViewsForApp
isfunc
liblib:finStackCore
namefinSkySparkViewsForApp

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finSummaryOn ​

finSummaryOn(target) ​

Get all Summaries which are registered on the given target. The target may be any value accepted by toRec().


meta ​

deffunc:finSummaryOn
isfunc
liblib:finStackCore
namefinSummaryOn

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finTasks ​

finTasks(programRef: null, targetRef: null) ​


meta ​

deffunc:finTasks
isfunc
liblib:finStackCore
namefinTasks

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finTuningPolicies ​

finTuningPolicies(targets) ​

Get all tuning policies which are registered on the given target. The target may be any value accepted by toRec().


meta ​

deffunc:finTuningPolicies
isfunc
liblib:finStackCore
namefinTuningPolicies

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finUpdate ​

finUpdate(fileId: null) ​


meta ​

deffunc:finUpdate
isfunc
liblib:finStackCore
namefinUpdate

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finUpdateLicense ​

finUpdateLicense(fileRef) ​


meta ​

deffunc:finUpdateLicense
isfunc
liblib:finStackCore
namefinUpdateLicense

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:finWriteBinTag ​

finWriteBinTag(recId, tagName, handle, mimeType: "text/plain") ​

FIN Write Binary Tag

This function writes the data described by the handle to the given bin tag on the requested record.


meta ​

deffunc:finWriteBinTag
isfunc
liblib:finStackCore
namefinWriteBinTag

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:firstRun ​

firstRun() ​


meta ​

deffunc:firstRun
isfunc
liblib:finStackCore
namefirstRun

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:firstRunComplete ​

firstRunComplete() ​


meta ​

deffunc:firstRunComplete
isfunc
liblib:finStackCore
namefirstRunComplete

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:fromJSON ​

fromJSON(value) ​


meta ​

deffunc:fromJSON
isfunc
liblib:finStackCore
namefromJSON

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:getNavURI ​

getNavURI(recId, treeName: "equip") ​


meta ​

deffunc:getNavURI
isfunc
liblib:finStackCore
namegetNavURI

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:gridToZinc ​

gridToZinc(grid) ​


meta ​

deffunc:gridToZinc
isfunc
liblib:finStackCore
namegridToZinc

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:migrateGetFileUrl ​

migrateGetFileUrl(original, projectName) ​

Allows you to change the project name on a getFinFile url

/getFinFile/projectA -> /getfinFile/projectB

@param original Original getFinFile URL @param projectName New project name to point the url to @return getFinFile URL that queries the project specified by the projectName


meta ​

deffunc:migrateGetFileUrl
isfunc
liblib:finStackCore
namemigrateGetFileUrl

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:migrateRef ​

migrateRef(original, projectName) ​

Allows you to change the project name on an absolute or relative reference

@p:projectA:r:1234-5678 -> @p:projectB:r:1234-5678 or @1234-5678 -> @p:projectB:r:1234-5678

@param original Original Reference @param projectName New project name to point the reference to @return reference that points to the project specified by the projectName


meta ​

deffunc:migrateRef
isfunc
liblib:finStackCore
namemigrateRef

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function


def ​

func:toJSON ​

toJSON(item, complexNumbers: false) ​


meta ​

deffunc:toJSON
isfunc
liblib:finStackCore
nametoJSON

supertypes ​

featureFeature namespace of definitions formatted as feature:name
funcAxon function