Breaking Changes
The following sections provide more details on the breaking changes introduced for release 2023.7.0.
| API | Breaking Change |
|---|---|
| AMPC.ASSETS | Resource Costing Redesign |
| AMPC.ASSETTYPES | Resource Costing Redesign |
| WM | Resource Costing Redesign |
Resource Costing
In On Key Plus we now track the usage of both Human and Special Resources.
Impacted Areas
The following API's are impacted by the change:
| API | Resource |
|---|---|
| AMPC.ASSETS |
|
| AMPC.ASSETTYPES |
|
| WM |
|
Context
The expected and actual usage of Human Resources will typically (but don't have to) be captured using the already existing duration type while the expected and actual usage of Special Resources will typically (but don't have to) be captured as a quantity.
The Usage value is a dynamic type which can be either a Duration type or a Float type. A user editable UnitOfMeasurement property has been added to the AMPC resources listed above as well as the Work Order Task Resource resource. The UnitOfMeasurement.MeasurementType property is used to determine whether a Resource Usage is measured as a Duration type or as a Float. If the UnitOfMeasurement.MeasurementType selected is Duration then the Usage value is a Duration type, otherwise if the UnitOfMeasurement.MeasurementType is None then the Usage value is a Float.
On Work Order Task Resource Usages, the dynamic type of the Usage is determined by the chosen Resource Trade Financial Rate's UnitOfMeasurement.MeasurementType.
In summary, the following are breaking API changes:
- On all AMPC resources listed above the
Durationproperty has been renamedUsageand it is a dynamic type. - On Work Order Task Resources the
EstimatedDurationproperty has been renamedEstimatedUsageand is a dynamic type. - The Work Order Task Resource Duration resource has been renamed Work Order Task Resource Usage.
- The Work Order Task Resource Usage's
Durationproperty has been renamedUsageand is a dynamic type.
The dynamic type properties above can be expressed in the following json patterns:
Durationtypes:
"Usage": {"value": "PT4H", "type": "Duration"}
Floattypes:
"Usage": {"value": 2, "type": "Float"}}