Skip to main content

Attribute

View as Markdown

This page lists the TypeScript SDK names for Attributes. The doc comment of each API gives its parameters, defaults, and errors. Read them in the TypeScript SDK API reference.

API names​

TaskTypeScript APIDex behavior
Define a singleton AttributeAttributeAttributes
Define an AttributeMapAttributeMapAttributes
Declare it in the Flowattributes of the PersistenceSchema returned from getPersistenceSchemaFlow definition
Read, write, and delete a value in a Step or RPCget, set, and deleteCommits
Address one AttributeMap instanceAttributeMap.instance, or the instance argument of get, set, and deleteAttributes
Count AttributeMap instances and list their keysAttributeMap.getMapSize and AttributeMap.getAllInstanceKeysSelective state loading
Load AttributeMap values for a methodAttributeMap.load, with the load fields of StepOptions or RPCOptionsSelective state loading
Lock a value for a read-modify-writelock, with the lock fields of StepOptions or lockAttributes of RPCOptionsLocks
Index a value for searchAttributeIndex and IndexTypeIndexes
Project writes to an Attribute StoresyncToAttributeStoreAttribute sync
Store a value that can be erasedhardDeleteOnNullHard-delete Attributes
Set a value when the Flow startsattributes of StartFlowOptions, with InitialAttribute.of or InitialAttribute.mapValueAttributes at start
Read values from outside the FlowClient.getAttributesRead Attributes
Wait until a value matchesClient.waitForAttributeMatchWait for an Attribute match

Example​

Example: examples/typescript/src/primitives/attribute/attribute-flow.ts