Closed yanavasileva closed 3 weeks ago
I am working on this one
Hi Yana,
Since we are setting the property of restartedProcessInstanceId
through StartProcessInstancesCmd
, I think we can go ahead by setting it in StartProcessInstanceAtActivitiesCmd
too.
This way even the instances created through /process-definition/{id}/restart will have the property set.
I am guessing the restart flow will never go through StartProcessInstancesCmd
at least in the community edition as there is a validation of not null instructions.
This reminds me we need to update the documentation of /process-definition/{id}/restart. It says the field of instructions and instanceId is optional but in the code it validates for not null.
Hi @punitdarira,
Good catch, only StartProcessInstanceAtActivitiesCmd
matters for the restart batch operation so I will adjust the description. Thank you!
This reminds me we need to update the documentation of /process-definition/{id}/restart. It says the field of instructions and instanceId is optional but in the code it validates for not null.
If it's not a big change, feel free to incorporate it to one of your contributions or raise a task for it.
Best, Yana
Hey @psavidis,
It would be great to complete what @punitdarira already started and get it into the 7.22.0 release.
Best, Tassilo
Acceptance Criteria (Required on creation)
restarted_proc_inst_id
toACT_HI_PROCINST
restartedProcessInstanceId
inHistoricProcessInstanceEventEntity
StartProcessInstanceAtActivitiesCmd
via a field ofProcessInstantiationBuilderImpl
Hints
Links
Breakdown