Create an assignment action

You can create an assignment action when you create or modify a rule.

About this task

When you are creating (Define a rule) or modifying a rule (Modify a rule), you perform this task in the Assignment Actions area at the bottom of the New Rule or Edit Rule tab.

To create an assignment action:

Procedure

  1. Select a property from the drop-down list. The table below summarizes some of the special properties that can be assigned.
  2. Enter a value for the property. You can use the supported functions to calculate the value and so you can specify the value as a function of a property. For example:
    2*value(Memory Cards)

    When you are assigning a value to a property whose type is String, you must use the following syntax to refer to properties:

    ${function(arg1, arg2, ..., arg N}

    For example, ${expand("Color", "Black", 0)}. See Example uses of expand for other examples of the usage of the expand function.

  3. Type the entity to which you want to assign the property and its value.
    If you leave this field blank, the assignment defaults to the entity to which the rule is attached.
    Note: If you are using a relative path, you can use the following shorthand notation in the Assign To field to refer to higher-level entities:
    • '+.' one level up from the current position
    • '++.' two levels up from the current position
    • '+++.' three levels up from the current position, and so on.
    For more information about using shorthand notation, see Shorthand notation for addressing parent.
  4. Click Add Item.
  5. Repeat these steps to add additional items.
  6. Click Save All Changes.

    The following table summarizes some of the available properties for assignment. These properties may change in each release, so check with your representative for further information if required.

    Property Action
    _constraintMessage String: a message on an item because it is constrained
    _constraintType Integer: type of constraint; 0 is suggest, 1 is warn, and 2 is error
    _description String: an items description
    _amEntitled Integer: 0 false, 1 true
    _isConstrained Integer: 0 false, 1 true
    _isSelected Integer: 0 false, 1 true
    _isViewable Integer: 0 false, 1 true
    _itemKey Integer: database key of the item
    _pickOverride Integer: 0 false, 1 true; pick was overridden by a rule
    _quantity Integer: quantity; 0 quantities are not in the rule pool
    _ratio Numeric: ratio of this item to its children, computed if nested within another parent
    _rawRatio Numeric: raw ratio used in previous computation
    _rulePick Integer: 0 false, 1 true
    _tabLevel Integer: depth of this item