On Instantiation form, how to do the mapping of input data to multiple tables in BOM

I have a diagram with an instantiation form that have some header fields and a customize editable table widget that can load and update JSON Array data. On BOM, I have 2 table with parent-child relation ship via an id field that is generated when submit the form.

When I click Submit button, I would like to send data to correspondence tables

  • Header fields' data to parent table
  • Table data to child table

I cannot find any tutorial on Bonitasoft website for this action. If this is a task's form, I think I can to it via groovy script in Execution > Operation if needed, but there is no such thing for instantiation form.

Can it be done?