def METHOD_NAME(
    self,
    app: Flask,
    with_db_and_bpmn_file_cleanup: None,
) -> None:
    process_model = self.create_process_model_with_metadata()
    process_instance = self.create_process_instance_from_process_model(process_model)
    processor = ProcessInstanceProcessor(process_instance)
    processor.do_engine_steps(save=True)
    assert process_instance.status == "complete"
    process_instance_metadata_awesome_var = ProcessInstanceMetadataModel.query.filter_by(
        process_instance_id=process_instance.id, key="awesome_var"
    ).first()
    assert process_instance_metadata_awesome_var is not None
    # notion 160: ensure that we truncate long values to 255 characters
    assert re.match(r"^sweet2.*END$", process_instance_metadata_awesome_var.value)
    assert len(process_instance_metadata_awesome_var.value) == 255
    process_instance_metadata_awesome_var = ProcessInstanceMetadataModel.query.filter_by(
        process_instance_id=process_instance.id, key="invoice_number"
    ).first()
    assert process_instance_metadata_awesome_var is not None
    assert process_instance_metadata_awesome_var.value == "123"