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