401 views

Description

The business rule 'Create CI on insert' on alm_asset has the condition:

current.sys_class_name != 'alm_consumable' && current.sys_class_name != 'alm_license' && current.ci.nil() && current.substatus != 'pre_allocated' && current.category.cmdb_ci_class != ''

current.category.cmdb_ci_class is incorrect, and should be
current.model_category.cmdb_ci_class

Steps to Reproduce

  1. Go to System Definition > Business Rules.
  2. Open to Create CI on insert.
  3. In the advanced tab, note that the Condition field has this value:

    current.sys_class_name != 'alm_consumable' && current.sys_class_name != 'alm_license' && current.ci.nil() && current.substatus != 'pre_allocated' && current.category.cmdb_ci_class != ''

 

Workaround

"Category" is not a valid field in the [alm_asset] table. Having this condition in the business rule still does not have any issue as the condition always returns as true, and the creation of the CI for the asset is controlled in AssetandCI script include.


Related Problem: PRB651645

Seen In

Fuji Patch 9

Fixed In

Helsinki

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2016-06-17 14:36:16
Published:2015-11-05