src/main/java/me/paulbares/service/NotificationServiceImpl.java
public static Notification create(WorkflowNotification workflowNotification, Supplier<Instant> timeSupplier) {
    return new Notification(workflowNotification.getType(),
            workflowNotification.getMessage(),
            timeSupplier.get(),
            true,
            workflowNotification.getId());
  }
/**
   * Creates a {@link Notification} from {@link WorkflowNotification}.
   *
   * @param workflowNotification the {@link WorkflowNotification} emitted by the workflow engine.
   * @param timeSupplier a time supplier to indicate the current time.
   * @return the created {@link Notification}.
   */
Creates a  Notification from  WorkflowNotification.
@param workflowNotification the  WorkflowNotification emitted by the workflow engine.
@param timeSupplier a time supplier to indicate the current time.
@return the created  Notification.
Creates a Notification from WorkflowNotification . @param workflowNotification the WorkflowNotification emitted by the workflow engine . @param timeSupplier a time supplier to indicate the current time . @return the created Notification .
public static Notification create(WorkflowNotification workflowNotification, Supplier<Instant> timeSupplier) {
    return new Notification(workflowNotification.getType(),
            workflowNotification.getMessage(),
            timeSupplier.get(),
            true,
            workflowNotification.getId());
  }
public static Notification create ( WorkflowNotification workflowNotification , Supplier < Instant > timeSupplier ) { return new Notification ( workflowNotification . getType ( ) , workflowNotification . getMessage ( ) , timeSupplier . get ( ) , true , workflowNotification . getId ( ) ) ; }
Creates a {@link Notification} from {@link WorkflowNotification}.
Creates a { @link Notification } from { @link WorkflowNotification } .