npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

alpha-bpm-interfaces

v0.2.2

Published

alpha bpm interfaces Library is a TypeScript library that provides a set of interfaces for interacting with BPM (Business Process Management) systems. It is designed to offer a uniform interface for different BPM engines, making it easier to develop BPM-r

Downloads

26

Readme

alpha-bpm-interfaces Library

alpha bpm interfaces Library is a TypeScript library that provides a set of interfaces for interacting with BPM (Business Process Management) systems. It is designed to offer a uniform interface for different BPM engines, making it easier to develop BPM-related applications.

Installation

You can install this package using npm:

npm install alpha-bpm-interfaces

Usage

To use this library in your TypeScript project, follow these steps:

  1. Install the package using npm:

    npm install alpha-bpm-interfaces
    
  2. Import the provided interfaces and extend them as needed in your TypeScript code:

    import { BpmService} from "alpha-bpm-interfaces";
    import { ProcessInstance,TaskDefinition,TaskInstance,ProcessDefinition} from "alpha-bpm-interfaces/dist/InstanceInterfaces";
    
    class MyBpmService implements BpmService {
    
        getProcessDefinitions(processName: string, version: string): ProcessDefinition {
            // Your implementation here
            return ProcessInstance
            }   
           
        // Implement other abstract methods
    }
    
    const myService = new MyBpmService()
    

Methods

| Method Name | Description | Parameters | Return Type | |--------------------------|------------------------------------------------------|--------------------------------------------------|----------------| | getAllProcessDefinitions | Get All process definiton | options(ProcessOptions), metadata(string) | ProcessDefinition[] | | getProcessDefinition | Get process definitions for a given process | processDefinitionId(string), metadata(Record<string, any>), processName?(string), version?(string) | ProcessDefinition | | getAllTaskDefinition | Get All task definition for a given process | processDefinitionId(string), metadata(Record<string, any>) | TaskDefinition[] | | startProcess | Start a new process instance | processDefinitionId(string), variables(Record<string, any>), metadata(Record<string, any>) | ProcessInstance["porcessInstanceId"] | | abortProcess | Stop a running process instance | processInstanceId(string), metadata(Record<string, any>) | void | | getAllProcessInstances | Get all process Instances | options(ProcessOptions), metadata(Record<string, any>) | ProcessInstance[] | | getProcessInstance | Get information about a specified process instance | processInstanceId(string), metadata(Record<string, any>) | ProcessInstance | | getProcessVariables | Get variables associated with a process instance | processInstanceId(string), metadata(Record<string,any>) | ProcessInstance["processVariables"] | | setProcessVariables | Set variables for a process instance | processInstanceId(string), variables(Record<string, any>), metadata(Record<string,any>) | void | | getAllUserAssignedTasks | Get tasks for a process instance for potential owners or owner | userName(string), options(TaskOptions) | TaskInstance[] | | getAllTasks | Get all task instances | options(TaskOptions) | TaskInstance[] | | completeTask | Complete a task for a process instance | taskId(string), metadata(Record<string, any>) | void | | assignTask | Assign a task to a user | taskId(string), user(string), metadata(Record<string, any>) | void | | sendSignal | Signals a specified process instance with a specified signal | processInstanceId(string), signalName(string), metadata(Record<string, any>) | void |

Instance Interfaces

| Interface Name | Properties | |----------------------|-------------------------------------------------------| | ProcessDefinition | - processName (string) | | | - processVersion (string) | | | - processDefinitionId (string) | | | - metadata (Record<string, any>) | | | - taskDefinitions (TaskDefinition) | | TaskDefinition | - taskName (string) | | | - taskType (string) | | | - metadata (Record<string, any>) | | ProcessInstance | - processName (string) | | | - processVersion (string) | | | - processVariables (Record<string, any>) | | | - processStatus ('STARTED' / 'COMPLETED' / 'SUSPENDED' / 'ABORTED' / 'FAILED') | | | - processInstanceId (string) | | | - processDefinitionId (string) | | | - parentProcessInstanceId? (string) | | | - startedBy? (string) | | | - startTime (Date) | | | - endTime? (Date) | | | - metadata (Record<string, any>) | | TaskInstance | - taskId (string) | | | - taskName (string) | | | - taskStatus (TaskOptions["status"]) | | | - currentProcessInstanceId (string) | | | - parentProcessInstanceId (string) | | | - taskProcessDefinitionId (string) | | | - metadata (Record<string, any>) | | ProcessOptions | - status? (ProcessInstance["processStatus"]) | | | - pageNumber? (number) | | | - pageSize? (number) | | TaskOptions | - status? ('CREATED' / 'READY' / 'RESESRVED' / 'INPROGRESS' / 'SUSPENDED' / 'COMPLETED' / 'FAILED' / 'ERROR' / 'EXITED' / 'OBSOLETE') | | | - group? (string) | | | - user (string) | | | - pageNumber? (number) | | | - pageSize? (number) |