0.9.6 • Published 2 years ago

@flowifier/flowifier-client v0.9.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Flowifier Client Library for JavaScript

This library gives you a seemless integration of the Flowifier application into your code.

It allows you to:

  • List all workflows for a specific organisation
  • Retrieving the workflow details of a specific workflow
  • Executing a workflow by creating a workflow instance
  • Retrieving the workflow instance status
  • Retrieving the workflow instance result if successful finished

Table of Contents

Usage

Retrieving all workflows

This example shows you how to list all workflows for your organization.

const organizationId = '<YOUR-ORGANIZATION-ID>';
const organizationToken = '<YOUR-ORGANIZATION-ACCESS-TOKEN>';

const flowifier = new Flowifier(organizationId, organizationToken);

var workflows = await flowifier.getWorkflows();
console.log(workflows);

This example shows you how to list execute a workflow.

const organizationId = '<YOUR-ORGANIZATION-ID>';
const organizationToken = '<YOUR-ORGANIZATION-ACCESS-TOKEN>';
const workflowId = '<YOUR-WORKFLOW-ID>';

const flowifier = new Flowifier(organizationId, organizationToken);

const context = {
    name: 'John Doe',
    age: 31
}

var workflowInstanceId = await flowifier.executeWorkflow(workflowId, context);
console.log('New Workflow Instance Id:'workflowInstanceId);

Installation

npm install @flowifier/flowifier-client

0.9.6

2 years ago

0.9.5

2 years ago

0.9.4

2 years ago

0.9.3

2 years ago

0.9.2

2 years ago

0.9.1

2 years ago

0.8.0

2 years ago

0.9.0

2 years ago