ASSET_STATE
Last updated
Was this helpful?
Last updated
Was this helpful?
The function ASSET_STATE takes a Detailed Asset and returns the state of the Asset.
This function takes a as input. It returns a containing the state of the Asset: "DRAFT", "PENDING", or "ACTIVE".
detailed_asset (required, type: ) Any Detailed Asset. Note that a is a subcategory of an , and that the ASSET_STATE function will not accept a general Asset as input, only a Detailed Asset.
state(type: )
The state of the Detailed Asset: "DRAFT", "PENDING", or "ACTIVE".
"DRAFT" means the Asset has been declared but hasn't been fully received yet.
"PENDING" is the state after the Asset has been fully received, but the server side processing is not yet finished.
"ACTIVE" is a fully queryable Asset.
Assume the example has access to the following Detailed Asset, detailed_asset:
The following example takes the Detailed Asset defined above and returns its state. Note that this matches the value of the state property given above: