CATRule to Format Labels for Resources

Using a CATRule, you can specify the format of labels that you apply to items in the views when you click Label from the Instructions Authoring section of the action bar.

This page discusses:

General Information

The DELWKIDMULabelPropertiesForResource.CATRule is located in ..\resources\knowledge\scripts and can be invoked when you use Label from the Instructions Authoring section of the action bar.

Input Arguments

InputValueExplanation
object_referenceDELFmiFunctionReferenceThe pointed object reference
object_occurrenceFProcessOccurrenceThe pointed object occurrence
display_name_stringStringThe display name of the pointed object occurrence
buildup_type_stringString

The buildup type (status) of the pointed object.

  • Current
  • Parallel
  • Previous

Output Arguments

OutputValueExplanation
output_textCATIList (String)

Fill with multiple strings, one for each line of text in the Label.

output_formatCATIList (CATIList)

Fill with multiple CATIList for the format of the Label. Each CATIList contains two strings, one for the format attribute name and one for the format attribute value.

Format nameValue
fontName stringValue
fontSizestringValue
fontColorstringValue
fontThicknessstringValue
fontLineTypestringValue
fontEndTypestringValue

Example

A complete example file is available in ..\resources\knowledge\scripts\DELWKIDMULabelPropertiesForResource_SAMPLE.CATRule.