0.0.3 • Published 4 years ago

pm2sp v0.0.3

Weekly downloads
1
License
LGPL-3.0-or-later
Repository
gitlab
Last release
4 years ago

PM2SP

Save input and output documents from ProcessMaker into a SharePoint.

Install

Yarn

$ yarn add pm2sp

NPM

$ npm install pm2sp

Usage

Given an application/case UID, you can save its input and output documents:

const pm2sp = require('pm2js')

const config = {
  pm: {
    clientId: 'client id',
    clientSecret: 'client secret',
    workspace: 'processmaker workspace',
    serverUri: 'serveruri'
  },
  sp: {
    folder: 'sharepoint folder',
    site: 'sharepoint site'
  },
  credentials: {
    // Account should have access both in ProcessMaker and SharePoint
    username: 'account username',
    password: 'account password',
    domain: 'account domain'
  }
}

const archiver = pm2sp('appUid', config)
0.0.3

4 years ago