0.0.4 • Published 1 year ago

@quadient/evolve-orchestration-client v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Evolve Orchestration Client

Overview

This package contains an Orchestration client for communicating with Channel Orchestration in Inspire Evolve.

Add to project:

npm install @quadient/evolve-orchestration-client

Orchestration Client Methods

  • submitJob - Submits new jobs to Channel Orchestration Scenario for processing.
  • pushEvents - Updates Channel Orchestration Scenario jobs with the data obtained.
  • updateBatch - Updates batches in Channel Orchestration Scenario.

Examples

const client = new OrchestrationClient(connector);

const recordId = "recordId1";
const orchestrationJobId = await client.submitJob(scenarioName, [recordId], jobName);
await client.pushEvents(
        [
            {
                name: eventName,
                orchestrationJobId: orchestrationJobId,
                recordId: recordId
            }
        ]
    );