LifecycleToAssetStateRule

Title  Add Lifecycle to Asset State Attribute Rule

Description

Generated an Attribute Rule and calculate the Asset State from the Asset Lifecycle Values in the asset package.

Usage

          
The Utility Network controlled classes must have two integer fields named assetstate and assetlifecyclestatus.
assetlifecyclestatus must have a domain assigned at the field named Asset_Lifecycle_Status.
assetstate must have a domain assigned to the field named Asset_State.

License

Basic

Toolset

Asset Package

Syntax

LifecycleToAssetStateRule (asset_package, default_value, value_mapping)

Parameter Explanation Data Type
asset_package Dialog Reference

The asset package to update.

DEWorkspace
default_value Dialog Reference

The default value to calculate the Asset State too when a value is not mapped from the Asset Lifecycle Status.

GPString
value_mapping Dialog Reference

The mapping of Asset Lifecycle Status to Asset State.

GPValueTable

Code Samples