refreshRelations static method

Future<WorkflowModel> refreshRelations(
  1. WorkflowModel model
)

Implementation

static Future<WorkflowModel> refreshRelations(WorkflowModel model) async {
  List<WorkflowTaskModel>? workflowTaskHolder;
  if (model.workflowTask != null) {
    workflowTaskHolder = List<WorkflowTaskModel>.from(
            await Future.wait(model.workflowTask!.map((element) async {
      return await WorkflowTaskCache.refreshRelations(element);
    })))
        .toList();
  }

  return model.copyWith(
    workflowTask: workflowTaskHolder,
  );
}