@hahi You can add the ExecutionListener
or JavaDelegate
to the service to set the businessKey.
@Component
public class BusinessKeyGenerateDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
execution.setProcessBusinessKey("businessKey");
}
}