INSERT INTO process_instance (
processDefId,
processInstId,
organizationId,
dataRowNum,
formID,
tenantID,
processState,
activityInstId,
dataStart
)
VALUES
(#{processDefId},#{processInstId},#{organizationId},#{dataRowNum},#{formID},#{tenantID},#{processState},#{activityInstId},0)
UPDATE process_instance SET
activityInstId = #{activityInstId}
where processInstId = #{processInstId}
UPDATE process_instance SET
dataStart = 1
where processInstId = #{processInstanceId}