![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
fh-wfm-result
Advanced tools
A result module for WFM, for working with the results of pushing a workorder through a workflow
A result module for WFM, for working with the results of pushing a workorder through a workflow.
This module provides :
This module is packaged in a CommonJS format, exporting the name of the Angular namespace. The module can be included in an angular.js as follows:
angular.module('app', [
, require('fh-wfm-result')
...
])
A sync manager must first be initialized using the resultSync.managerPromise()
. This can be placed, for instance, in the resolve
config of a ui-router
controlled application.
resultManager: function(resultSync) {
return resultSync.managerPromise;
},
For a more complete example, please check the demo portal app.
resultSync
APIThese resultSync API methods all return Promises:
resultSync method | Description |
---|---|
resultSync.manager.list | list all results |
resultSync.manager.create(workflow) | create a result |
resultSync.manager.read(workflowId) | read a result |
resultSync.manager.update(workflow) | update a result |
the module broadcasts, and listens for the following events
Listens for | Responds with |
---|---|
wfm:appform:submission:complete | wfm:result:remote-update |
The server-side component of this WFM module exports a function that takes express and mediator instances as parameters, as in:
var express = require('express')
, app = express()
, mbaasExpress = mbaasApi.mbaasExpress()
, mediator = require('fh-wfm-mediator/lib/mediator')
;
// configure the express app
...
// setup the wfm workflow sync server
require('fh-wfm-result/lib/server')(mediator, app, mbaasApi);
Check this demo cloud application
FAQs
A result module for WFM, for working with the results of pushing a workorder through a workflow
The npm package fh-wfm-result receives a total of 16 weekly downloads. As such, fh-wfm-result popularity was classified as not popular.
We found that fh-wfm-result demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.