Hello Communtiy,
I would like to implement a new use case in the system’s maintenance module.
It involves the calibration of a resource.
The maintenance team member wants to have to press as few buttons as possible to document their maintenance work.
The employee inspects the resource and should be able to distinguish between three possible scenarios:
-
Everything is fine; the resource can continue to be used.
-
Not okay, but the resource can be repaired.
-
Not okay, and the resource can’t be repaired.
My approach was to use a DataCollection with a parameter that references a lookup table. The lookup table contains the three states I mentioned.
When I run the data collection, the correct values are logged.
But the maintenance activity always completes normally and is then rescheduled.
If it were a numeric-based data collection, I could work with datacollection limitsets and thus handle OK, warning, and tolerance violations. But as far as I know, that’s not possible with a lookup table-based data collection.
I’m looking for a way to record the correct result of the data collection and then mark the data collection as successful or unsuccessful.
Does anyone in the community have any ideas on how I could model this?
Hello Leonard
before I present my Solution, I’d like to ask you:
When you say, “But the maintenance activity always completes normally and is then rescheduled,” and considering that a calibration is typically performed every X month, don’t you want a new maintenance activity to be automatically scheduled for the equipment?
It seems that you are using V 11.1 already. Since this version you can use Calculated Data Collection Parameters
Create a Data Collection with 2 Parameters:
- One where the user will enter the Result: OK, Warning or Tolerance Violations.
- The 2nd Parameters (Free text in DC with 1 sample and 1 reading) is automatically calculated using this Expression (for instance)

(Parameters.“inspectionresult”.**.Value) = “OK” ? 0 : (Parameters.“inspectionresult”.**.Value) = “Warning” ? 1 : 2
- If the result is OK it will return “0”
- If the Result is Warning it will Return “1”
- If the Result is Tolerance Violation it will return “2”
Add a DataCollection Limit Set to this Datacollection
You can also links Protocols to the Calculated Parameter

Add these DC and DCLS to the Calibration Maintenance Plan
Let me see if you have any doubt.
Thanks
Romeu
Hi Jose,
thank you for your response!
I just explored the way you described and I think it is a good idea!
I’m now able to pick the 1st parameter from lookup table and the 2nd paramter gets calculated.
Then I can start a protocol in case of either warning or violation.
But when I perform the maintenance activity, it would still put my instrument into “Calibrated” as soon as the maintenance activity is completed.
I would need it to get into “not calibrated” or to stay in “in calibration” or something like that, since the calibration failed.
Best regards
Leonard
Hello Leonard
In this case you may need to change your Resource State Model to include the States “Calibrated”; “In Calibration” and “Not Calibrated”.
Or create a new one just with these 3 states:
The updated/New State Model is assigned to your Resource.
When you Start a Calibration activity to your Resource the State of the resource can be changed from “Calibrated” to “In Calibration”
Perform your Calibration activity
If the result is OK change the State of your Resource from “In Calibration” to “Calibrated”. If it fails change from “In Calibration” to “Not Calibrated”
In this example I’m doing the transaction manually. To change the state automatically according to the Calibration Result you will need to add some logic. The Dee “ResolveNameGenerator” may also need to be updated.
To change what is the default next state of a Resource in the Begin or Complete Maintenance Activity Order operations, you can extend the Resource Auto State Change DEE action. The DEE has the resource and the MAO as input context, so you could change the logic to apply to your resource (e.g. on Complete, get the Data Collection Instance associated with the MAO, check the value of the data collection point that contains the result and apply the next default state accordingly).
However, I would like to point two possible limitations, whose solution would guide you to a new, standalone DEE Action:
-
The Resource Auto State Change DEE is part of the standard solution, so out of the box behavior might change during major or minor upgrades. You’d need to review and apply your changes again on each upgrade so that you don’t lose your extended functionality.
-
If the MAO is configured as auto-begin or auto-complete, meaning you don’t open the Begin and/or the Complete wizards, this logic does not apply.
Ricardo