Library facilitating communication with the Channel Orchestration.
npm install @quadient/evolve-orchestration-clientThis package contains an Orchestration client for communicating with Channel Orchestration in Inspire Evolve.
Add to project:
```
npm install @quadient/evolve-orchestration-client
- 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.
`javascript
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
}
]
);
``