Interface BusinessNotification


public interface BusinessNotification

Sends a business notification

Examples:

Sends a business notification with the given text to the business case creator

BusinessNotification
.create()
.message().text("Order was delivered")
.receivers().ofBusinessCase().addCreator()
.send();

Sends a business notification with a text from the CMS to the task responsible

BusinessNotification
.create()
.message().fromCms("OrderDelivered")
.receivers().ofTask().addAllResponsibles()
.send();
Since:
11.3
API:
This is a public API.
  • Method Details

    • create

      Sends a business notification

      Examples:

      Sends a business notification with the given text to the business case creator

      BusinessNotification
      .create()
      .message().text("Order was delivered")
      .receivers().ofBusinessCase().addCreator()
      .send();
      

      Sends a business notification with a text from the CMS to the task responsibles

      BusinessNotification
      .create()
      .message().fromCms("OrderDelivered")
      .receivers().ofTask().addAllResponsibles()
      .send();
      
      API:
      This public API is available in Java.
    • createFor

      static BusinessNotification.Builder createFor(ICase wfCase)

      Sends a business notification for the given case

      Examples:

      Sends a business notification with the given text to the case creator

      ICase wfCase = ...;
      BusinessNotification
      .createFor(wfCase)
      .message().text("Order was delivered")
      .receivers().ofCase().creator()
      .send();
      

      Note, that in this case ofCase() and ofBusinessCase() will not return the current case but the case and its business case provided to this method.

      # @see #create
      API:
      This public API is available in Java.