Is it possible to set taskFormKey using java?


I’m using subtask example:subtask-checklist

And i’m trying to create new subtask with specific form key “embedded:app:forms/sub-task.html”. Unfortunately, in documentation I find the only one possibility to set taskFormKey - using modeler, form key field.

I want to ask, is it possible to read taskFormKey (embedded:app:forms/sub-task.html) from json and assign it to new subtask using java?

Could anyone help?

Set the form key as a expression