@quadient/evolve-orchestration-client
v0.0.4
Published
Library facilitating communication with the Channel Orchestration.
Keywords
Readme
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-clientOrchestration 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
}
]
);