← Back to MES Integration Layer overview
Features (Full Detail) — MES Integration Layer
Current version: v1.0.0
Manufacturing Execution System integration layer for Perfex CRM — endpoints, event catalog, sync log, and manufacturing hooks
This page explains module capabilities in depth so new users understand what each feature does, why it matters, and how to use it inside Perfex CRM.
Feature catalog (explained)
Every major capability below is explained in plain language — what it is, why it helps, and how to use it.
1.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Enable credentials in MES Integration Layer → Settings (API keys, webhooks, sandbox/production). Test with a sample record, then monitor the module log or sync screen.
2.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Open MES Integration Layer in the admin sidebar, then use the related menu screen for this capability.
3.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Enable credentials in MES Integration Layer → Settings (API keys, webhooks, sandbox/production). Test with a sample record, then monitor the module log or sync screen.
4.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Enable credentials in MES Integration Layer → Settings (API keys, webhooks, sandbox/production). Test with a sample record, then monitor the module log or sync screen.
5.
In plain words:
Why it matters: This reduces manual work so agents can focus on exceptions and high-value customers.
How to use it: Enable credentials in MES Integration Layer → Settings (API keys, webhooks, sandbox/production). Test with a sample record, then monitor the module log or sync screen.
6.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Open MES Integration Layer in the admin sidebar, then use the related menu screen for this capability.
7.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Open MES Integration Layer in the admin sidebar, then use the related menu screen for this capability.
8.
In plain words:
Why it matters: This supports compliance, audit readiness, and on-time operations so nothing important is missed.
How to use it: Go to MES Integration Layer → Reports / Dashboard (or the matching analytics screen), set filters (date, status, warehouse, staff), then run or export the report.
9.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Open MES Integration Layer in the admin sidebar, then use the related menu screen for this capability.
10.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Open MES Integration Layer in the admin sidebar, then use the related menu screen for this capability.
11.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Go to MES Integration Layer → Reports / Dashboard (or the matching analytics screen), set filters (date, status, warehouse, staff), then run or export the report.
12.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Configure under MES Integration Layer → Settings, and assign staff access from Setup → Staff → Roles.
13.
In plain words:
Why it matters: This helps your team complete the work faster with fewer mistakes and a clear audit trail inside Perfex CRM.
How to use it: Open MES Integration Layer in the admin sidebar, then use the related menu screen for this capability.
Screens map — what each menu is for
These are the admin screens registered by MES Integration Layer. Click a name in the Knowledge Base for a full how-to, or open the path in admin.
| # | Screen | Admin path | Guide |
|---|---|---|---|
| 1 | Integration Dashboard | admin/mes | How to use |
| 2 | MES Endpoints | admin/mes/mes_endpoints | How to use |
| 3 | Integration Events | admin/mes/mes_events | How to use |
| 4 | Event Routing | admin/mes/mes_event_routes | How to use |
| 5 | Field Mappings | admin/mes/mes_field_mappings | How to use |
| 6 | Outbound Webhooks | admin/mes/mes_webhooks | How to use |
| 7 | Integration Reports | admin/mes/mes_reports | How to use |
| 8 | API Keys | admin/mes/mes_api_keys | How to use |
| 9 | Settings | admin/mes/mes_settings | How to use |
Features & workflows from documentation
Features
- MES Endpoints — REST, MQTT, OPC-UA, SOAP, Webhook, SFTP, Local
- Event Dispatcher — Outbound with retry / exponential backoff
- Inbound Webhook — Receive shop-floor events from external MES
- REST API — API keys, scopes, rate limits
- Outbound Webhooks —
event.queued,event.processed,event.failed - Field Mapping — Transform payload fields per endpoint/event type
- Event Routes — Route event types to endpoints
- Integration Reports — SLA, error rates, archive stats
- Credential Encryption — Secure endpoint secrets
- Event Archive — Archive before retention purge
- Dashboard — Stats, chart, recent events
- Permissions — Role-based access
- Clean Uninstall — Drops all module tables and options
Listing highlights
Item Title
MES Integration Layer — Module for Perfex CRM
Short Description (max ~160 chars)
Manufacturing Execution System integration for Perfex CRM — endpoints, event catalog, webhooks, REST API, and clean uninstall.
Full Description
Paste the contents of codecanyon_upload/listing_description.html into the CodeCanyon HTML Description field.
Or use the markdown summary below and convert to HTML:
MES Integration Layer connects Perfex CRM to external Manufacturing Execution Systems — without modifying any core files.
Key Features
- MES Endpoints (REST, MQTT, OPC-UA, SOAP, Webhook, SFTP, Local)
- Event dispatcher with retry / exponential backoff
- Inbound webhook for shop-floor events
- REST API with API keys and rate limits
- Outbound webhooks (
event.queued,event.processed,event.failed) - Field mapping and event routing
- Integration reports and event archive
- Credential encryption
- Dashboard widget and granular permissions
- Clean uninstall removes all
mes_*tables and options
Requirements
- Perfex CRM 3.0+
- PHP 7.4+ (8.1+ recommended)
- MySQL 5.7+ / MariaDB 10.3+
- PHP extensions: mysqli, json, mbstring, curl, fileinfo, openssl
What's Included
- Full module source (
mes/) - HTML documentation (
documentation/index.html) - Installation & how-to-use guide
- 6 months support via CodeCanyon
Tags
perfex crm, mes, manufacturing execution system, integration, webhook, rest api, shop floor, nasbix, codecanyon module, opc-ua, mqtt, sftp
Category
PHP Scripts → Add-ons (or closest Perfex CRM / CodeIgniter add-on category)
Framework / Attributes (form checkboxes)
- Framework: CodeIgniter
- Compatible With: Chrome, Firefox, Safari, Edge
- Software Version: PHP 7.x, PHP 8.x
- Files Included: PHP, JS, CSS, HTML
Demo / Screenshots
Upload screenshots from your live install:
- MES Dashboard
- Endpoints list / form
- Integration Events
- Settings page
- Webhooks or API Keys
- Reports
Place them in codecanyon_upload/screenshots/ before zipping for the Screenshots field.
Official HTML documentation (feature sections)
2. Features
- MES Endpoints — Connect external MES systems via REST, MQTT, OPC-UA, SOAP, Webhook, SFTP, or Local folder
- Event Catalog — Built-in production, quality, maintenance, inventory, and IoT event types
- Outbound Dispatcher — Queue and push events to configured endpoints with retry / backoff
- Inbound Webhook — Receive shop-floor events (scans, QC results, downtime, lab results)
- REST API — Authenticated API keys for reading endpoints/events and submitting events
- Outbound Webhooks — Notify third-party systems on
event.queued,event.processed,event.failed - Field Mapping — Transform payload fields per endpoint / event type
- Event Routes — Route event types to specific endpoints (optional plant routing)
- Integration Reports — Endpoint SLA, error rates, archive statistics
- SFTP / Local Transport — File-based inbound/outbound with cron polling
- Credential Encryption — Secure storage of endpoint secrets
- Event Archive — Archive processed events before retention purge
- Dashboard Widget — Integration stats and recent events
- Role-based Permissions — Granular staff capabilities
- Clean Uninstall — Removes all
mes_*tables and options
3. How to Use
3.1 Configure Settings
- Go to MES Integration Layer → Settings.
- Enable integration, set default protocol, retention days, and dispatch options.
- Optionally enable REST API, outbound webhooks, SFTP/local poll, QMS/LIMS routing.
- Click Save.
3.2 Add an MES Endpoint
- Go to MES Endpoints → New.
- Enter endpoint code (e.g.
MES-PLANT1), name, vendor, protocol, and direction. - Fill protocol-specific config (URL, credentials, paths, topics, etc.).
- Mark as active and save.
3.3 Create Event Routes (optional)
- Go to Event Routes.
- Map an event type (e.g. Work Order Started) to an endpoint.
- Set priority and activate the route.
3.4 Field Mappings (optional)
- Go to Field Mappings.
- Choose endpoint (+ optional event type).
- Map source field → target field and optional transform.
3.5 View Integration Events
- Open Integration Events to review queued, processed, and failed events.
- Create a manual test event if needed.
- Use Reprocess on failed events (permission required).
3.6 Outbound Webhooks
- Go to Webhooks → New.
- Enter destination URL, secret, and selected events.
- Deliveries are logged under each webhook.
3.7 API Keys
- Go to API Keys (Settings permission).
- Create a key with read / write / read_write scope.
- Copy the token immediately — it is shown once.
- Use the token in the
X-API-KEY(or configured) header against MES REST endpoints.
3.8 Reports
Open Reports for endpoint performance, failure rates, and archive stats.
4. Inbound Webhook Example
Enable inbound under Settings and use the webhook secret in the request header.
curl -X POST "https://your-domain.com/admin/mes/mes_webhook/receive" \
-H "Content-Type: application/json" \
-H "X-MES-Token: YOUR_WEBHOOK_SECRET" \
-d '{
"event_ref": "MES-EXT-1001",
"event_code": "operation_scan",
"payload": {
"scan_code": "OP:123",
"action": "start",
"work_order_id": 10,
"operation_id": 123
}
}'
Common inbound event codes: operation_scan, iot_reading_ingested,
downtime_started, downtime_ended, qc_result,
qc_failed, lab_result.
Exact admin/public URL path may vary with your Perfex rewrite / base URL. Check the module webhook controller route after install.
5. Permissions
Assign under Setup → Staff → Roles:
| Capability | Purpose |
|---|---|
| MES Dashboard | View dashboard / widget |
| MES Endpoints | View / create / edit / delete endpoints |
| MES Events | View / create / edit / delete / reprocess events |
| MES Event Routes | Manage routing rules |
| MES Field Mappings | Manage field transforms |
| MES Webhooks | Manage outbound webhooks |
| MES Reports | View integration reports |
| MES Settings | View / edit settings & API keys |
6. Cron Jobs
Dispatch retries, SFTP/local polling, webhook delivery, and retention use Perfex CRM’s main cron.
* * * * * php /path/to/perfex/index.php cron/index >/dev/null 2>&1
Ensure cron is already configured for Perfex. No separate crontab entry is required for this module.
7. Uninstall
- Go to Setup → Modules.
- Deactivate MES Integration Layer.
- Click Uninstall.
Uninstall removes:
- All database tables matching
{db_prefix}mes_%(endpoints, events, routes, webhooks, API keys, archives, logs, etc.) - All options whose names start with
mes_
Perfex core data (invoices, customers, manufacturing records outside MES tables) is not deleted.
Related: Quick Start · How to Install · FAQ & Tips · Version & Changelog