bpm-crafters / process-engine-api

Beautiful implementation-agnostic process engine API.
https://bpm-crafters.github.io/process-engine-api/stable/
Apache License 2.0
13 stars 1 forks source link

Set business key when starting a process #116

Open MichaelVonB opened 3 weeks ago

MichaelVonB commented 3 weeks ago

Scenario

Current Behaviour

StartProcessApi.startProcess accepts a StartProcessByDefinitionCmd which does not allow to set a business key

Wanted Behaviour

Be able to set a business key

Possible Workarounds

not with this library

stefanzilske commented 2 weeks ago

Since business key is something specific for Camunda 7 (even C8 doesn't have it), it's probably not part of the general API. Proposal: write it into a meta field and (by naming convention) map it to the business key in the c7-adapters.

CommonRestrictions even contains a BUSINESS_KEY constant.