New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fh-wfm-result

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-wfm-result

A result module for WFM, for working with the results of pushing a workorder through a workflow

  • 1.0.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
decreased by-41.94%
Maintainers
3
Weekly downloads
 
Created
Source

FeedHenry WFM Result

A result module for WFM, for working with the results of pushing a workorder through a workflow.

This module provides :

  • An AngularJS Service
  • An Backend Service to intialize the synchronization

Client-side usage

Client-side usage (via broswerify)

Setup

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')
...
])
Integration
Angular service

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 API

These resultSync API methods all return Promises:

resultSync methodDescription
resultSync.manager.listlist all results
resultSync.manager.create(workflow)create a result
resultSync.manager.read(workflowId)read a result
resultSync.manager.update(workflow)update a result

Mediator events

the module broadcasts, and listens for the following events

Listens forResponds with
wfm:appform:submission:completewfm:result:remote-update

Usage in an express backend

Setup

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);

Integration

Check this demo cloud application

Keywords

FAQs

Package last updated on 15 Feb 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc