Create Task and attach it to Existing Active Case instance

Hi,
I can create a new task via REST api just fine. How do I attach it to an existing active case instance? This is the closest I could find: CMMN plan item injection by mkiener · Pull Request #2117 · flowable/flowable-engine · GitHub but could not really get any way to do it.

Thanks.

The PR mentioned above adds the possibility to inject plan items dynamically in a case instance. If the plan item is a human task, activating it should make it a real task. We do plan to add a higher-level API on top of this in the future.