Manhour validator
Requirements
Environment
- Private Deployment
ONES Version
v6.3.0+
Dependency Package Versions
{
"dependencies": {
"@ones-op/fetch": "0.46.12+",
"@ones-open/node-host": "0.4.2+",
"@ones/cli-plugin": "1.29.0+",
"@ones/cli-plugin-template": "1.10.8+",
"@ones-op/sdk": "0.46.7+"
}
}
Additionally, you need to install @ones-open/node-host in the plugin backend:
cd backend/
npm install @ones-open/node-host@0.4.3+
Capability Overview
This document provides the manhour validation capability, allowing customers to intercept manhour operations. This is an organization-level capability. In some scenarios, the same data may receive multiple interception requests, so when using this capability, you need to maintain idempotency. Maintaining idempotency means that even if the same interception request is triggered multiple times, its effect should be as if it was triggered only once, without causing duplicate data processing or abnormal situations.
Manhour Validator and Plugins
How to use the manhour validator in the plugin system?
Add the manhour validator configuration in the plugin's plugin.yaml as follows:
extension:
- manhourValidator: # Use manhour validator extension
provider: manhour # Must be 8 bytes, cannot be modified later. Use letters and numbers for naming, avoid special characters.
funcs:
- name: validate # Must be registered, name cannot be changed
url: validate # Must match the func name in the plugin
Manhour Validator and Plugin Lifecycle
The manhour validator capability is bound to plugin lifecycle operations as shown in the table below:
| Lifecycle Operation | Private Deployment | SaaS |
|---|---|---|
| Installation | Organization Level: Register | Instance Level: Register Organization Level: Register |
| Uninstallation | Organization Level: Unregister | Instance Level: Unregister Organization Level: Unregister |