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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vertigis/workflow-activities-state-manager

v1.0.5

Published

A deterministic, policy‑enforcing workflow engine designed for VertiGIS Studio Workflows.

Readme

CI/CD npm

Workflow State Engine – Activity Pack

A deterministic, policy‑enforcing workflow engine designed for ArcGIS Enterprise + VertiGIS Studio Workflows, used to implement non‑bypassable business processes such as Utility Network asset lifecycle management, permitting, inspections, and regulatory workflows.


Overview

The Workflow State Engine Activity Pack provides a reusable execution framework for building guided, auditable, and defensible workflows where:

  • Business rules must not be bypassed
  • Lifecycle transitions must be explicit and deterministic
  • Data edits must be atomic and undoable
  • Validation, execution, and audit concerns are cleanly separated

The engine is configuration‑driven and executes workflows defined as state machines, rather than UI‑driven scripts.


What This Is (and Is Not)

✅ What it is

  • A state‑based execution engine
  • A policy enforcement layer for GIS workflows
  • A coordination mechanism for VertiGIS Workflow handlers
  • A repeatable execution model for complex lifecycle logic

❌ What it is not

  • Not a BPMN engine
  • Not a UI framework
  • Not a general task scheduler
  • Not a replacement for ArcGIS Utility Network rules

Key Capabilities

  • ✅ Deterministic state progression
  • ✅ Explicit lifecycle transitions
  • ✅ Token‑based parallel execution
  • ✅ WAIT / RESUME semantics for long‑running processes
  • ✅ Atomic, undoable edits
  • ✅ First‑class audit and history logging
  • ✅ Schema‑driven decision making (Asset Groups, Asset Types, Categories)
  • ✅ Designed for regulatory and safety‑critical workflows

Core Concepts

State

A named step in a workflow. States are one of:

  • handler – executes business logic
  • join – synchronizes parallel tokens
  • terminal – ends execution

Handler

A VertiGIS Workflow activity that:

  • Receives execution context
  • Applies business logic (or validation)
  • Returns an explicit outcome

Instance

Represents the overall workflow execution (e.g., “Retire Assets”).

Token

Represents a parallel or scoped sub‑workflow (e.g., ENV review, TECH review).


Execution Modes

| Mode | Description | |----|------------| | INSTANCE | Controls the overall lifecycle | | TOKEN | Executes parallel or scoped logic |

Rules

  • Tokens may not enter join states
  • Tokens may not modify instance‑level state
  • Join states only execute in INSTANCE mode

Configuration‑Driven Design

Workflows are defined using JSON / JSONC configuration files.

Example

{
  "processKey": "ASSET_RETIRE_MIDSTREAM_GAS",
  "startState": "INITIATE",
  "states": {
    "INITIATE": { "type": "handler", "handler": "WF_State_InitiateRetire", "url": "https://url_to_workflow_handler" },
    "VALIDATE": { "type": "handler", "handler": "WF_State_ValidateRetireEligibility", "url": "https://url_to_workflow_handler" },
    "EXECUTE":  { "type": "handler", "handler": "WF_State_ExecuteRetirement", "url": "https://url_to_workflow_handler" },
    "END":      { "type": "terminal" }
  }
}

Register the 1Integrate activity pack

  1. Sign in to ArcGIS Online or Portal for ArcGIS
  2. Go to My Content
  3. Select Add Item > An application
    • Type: Web Mapping
    • Purpose: Ready To Use
    • API: JavaScript
    • URL: The URL to this activity pack manifest
      • Use https://unpkg.com/@vertigis/[email protected]/activitypack.json for a specific version
      • Use https://unpkg.com/@vertigis/workflow-activities-state-manager@1/activitypack.json for the latest revision of a specific major version
      • Use https://unpkg.com/@vertigis/workflow-activities-state-manager/activitypack.json for the latest version (not recommended for production use)
      • Use https://localhost:5000/activitypack.json for a local development version
    • Title: Your desired title
    • Tags: Must include geocortex-workflow-activity-pack
  4. Reload VertiGIS Studio Workflow Designer
  5. The State Manager activities will now appear in the activity toolbox in a State Manager category