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

@camunda8/operate

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@camunda8/operate

A Node.js client for interacting with the Camunda 8 Operate API

  • 8.4.0
  • alpha
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Operate API Client for Node.js

NPM

Community Extension

Lifecycle

License

A Node.js client for interacting with the Camunda 8 Operate REST API in Camunda 8 SaaS.

Uses camunda-saas-oauth-nodejs to use client credentials from the environment for authentication.

Installation

npm i operate-api-client

Usage

Set the credentials for Camunda SaaS in the environment, then:

import { OperateApiClient } from 'operate-api-client'

const operate = new OperateApiClient()

operate.searchProcessInstances({
    filter: {
        state: "ACTIVE"
    },
    size: 50
}).then(instances => {
    console.log(instances)
})

Advanced Usage

If you want to create multiple instances of the client in an application - for example, to address different clusters - then you can hydrate the client manually using an OAuthProviderImpl like so:

import { OperateApiClient } from 'operate-api-client'
import { OAuthProviderImpl } from "camunda-saas-oauth"

const oauthProvider1 = new OAuthProviderImpl({
    audience: 'zeebe.camunda.io',
    authServerUrl: 'https://login.cloud.camunda.io/oauth/token',
    clientId: process.env.ZEEBE_CLIENT_ID_1, 
    clientSecret: process.env.ZEEBE_CLIENT_SECRET_1,
    userAgentString: 'operate-client-nodejs'
})

const client_1 = new OperateApiClient({
    oauthProvider,
    baseUrl: process.env.CAMUNDA_OPERATE_BASE_URL_1
});

const oauthProvider2 = new OAuthProviderImpl({
    audience: 'zeebe.camunda.io',
    authServerUrl: 'https://login.cloud.camunda.io/oauth/token',
    clientId: process.env.ZEEBE_CLIENT_ID_2, 
    clientSecret: process.env.ZEEBE_CLIENT_SECRET_2,
    userAgentString: 'operate-client-nodejs'
})

const client_2 = new OperateApiClient({
    oauthProvider,
    baseUrl: process.env.CAMUNDA_OPERATE_BASE_URL_2
});

Keywords

FAQs

Package last updated on 01 Feb 2024

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