OrgCopyAttrFromFunc
The OrgCopyAttrFromFunc calculation class copies the specified function attribute to the executing organizational unit. The calculation class is only available when using the Organizational analysis module. The result is saved in the specified attribute type for the relevant organizational unit.
For calculations using the OrgCopyAttrFromFunc class, you must specify the following parameters.
Parameter |
Description |
Value or example |
attrname |
Identifier of function attribute to be copied |
AT_END_TIME |
Warning
Only one function attribute can be copied for each calcattr XML element. Make sure that the data types of the source and target attributes are compatible. Essentially, all (including user-defined) numerical data types (see chapter on Data types: LONG, DOUBLE, TIMESPAN, FACTORYTIMESPAN, FREQUENCY, PERCENTAGE) are compatible with one another. The convert operator allows you to perform appropriate advance data type conversions (see chapter on Logical operators). Make sure that the conversion is always carried out in the base scaling of the target data type.
Example
In the following example from the measure configuration, the AT_OBJNAME function attribute is copied to each executing organizational unit (type="OT_ORG") as the AT_FUNC attribute. The source and destination attribute of the copying operation are both of the TEXT data type.
<calcattr name="AT_FUNC" type="OT_ORG">
<calcclass name="com.idsscheer.ppm.server.keyindicator.
attributecalculator.
ZAttributeCalculatorOrgCopyAttrFromFunc">
<calcparam key="attrname" value="AT_OBJNAME"/>
</calcclass>
</calcattr>
If the AT_FUNC attribute is already specified at the organizational units, you can use delete="yes" in the calcattr instruction to define that the copying operation should first delete the attribute value.
The following example graphic from the Organizational analysis module shows the result of the attribute copy operation in the open object attribute dialogs for the two organizational units TEAM 1-A and TEAM M-A. The relevant value of the AT_OBJNAME function attribute has been copied to each organizational unit as the Function attribute (AT_FUNC) of the function executed by the corresponding organizational unit.