camunda-community-hub / zeebe-client-node-js

Node.js client library for Zeebe Microservices Orchestration Engine
https://camunda-community-hub.github.io/zeebe-client-node-js/
Apache License 2.0
152 stars 38 forks source link

Add support for CreateProcessInstance with start instructions #295

Closed jwulf closed 1 year ago

jwulf commented 1 year ago
zbc.createProcessInstance({
  bpmnProcessId: 'SkipFirstTask',
  variables: { id: random },
  startInstructions: [{elementId: 'second_service_task'}]
}).then(res => (id = res.processInstanceKey))
jwulf commented 1 year ago

Protocol documentation: https://docs.camunda.io/docs/apis-clients/grpc/#createprocessinstance-rpc