public void Recalculate() { var result = _orderService.ExecuteWorkflow(RecalculateWorkflowName, InnerItem); var warnings = result.WorkflowResult.Warnings; if (warnings != null) { foreach (var warning in warnings) { //TODO: generate error message } } InnerItem.InjectFrom <CloneInjection>(result.OrderGroup); }