Comflow Documentation

Comflow Documentation

  • Comflow 2.22

›Sound Events

Presentation

  • Release Notes
  • Migration Notes
  • Master Sitedef

Chart Implementations

  • Comflow Chart Implementations
  • Comflow Custom Chart Setup

Comflow IPP

  • Comflow IPP Basics
  • Using ppd files
  • Windows Printer Server Setup

Comflow Styling

  • Comflow Styling Basics
  • _config.scss
  • _custom-class.scss
  • Portal Header

Copy to Clipboard

  • Copy to Clipboard Basics
  • External Resources

Datepicker Exceptions

  • Datepicker Exceptions

Desktop Functions

  • Desktop Functions Basics
  • Modes
  • Style

My Functions

  • My Functions Basics

My Settings

  • My Settings Basics

Open API

  • OpenAPI Basics

Portal Menu Options

  • Portal Menu Options Basics
  • Mega Menu
  • Side Menu
  • Top Menu

Quick Search

  • Quick Search Basics

Quick Start

  • Quick Start Basics

Removed Classes/Methods

  • AbstractEnvironment
  • AbstractSegmentChangeObject
  • ApplicationObject
  • CadModel
  • ChangeObject
  • Changes in Rendering Classes
  • ClientInfo
  • Component
  • CoreSessionManager
  • DataInstance
  • Database
  • DriverHelper
  • DynamicModels
  • Environment
  • ErrorUtils
  • FieldChangeObject
  • Field
  • FlexIdImplementation
  • FlexId
  • Introduction
  • Logical Unit of Work
  • PromptRequest
  • RendererInfo
  • RendererModelUtils
  • RendererModel
  • RepositoryUtil
  • Root
  • SegmentChangeObjectImpl
  • SegmentChangeObject
  • SessionMessage
  • SimpleModel
  • Site
  • StringUtil
  • SystemWorkspace

Repository Constant

  • Repository Constant Basics

Sitedef

  • Site definition Settings

Sound Events

  • Sound Events Basics
  • Sound Events in Errors
  • Sound Events in Rules
  • Test Case in Verify

User Avatar

  • User Avatar Basics
  • Changes in Classes and Tables
  • References

User Info

  • User Info Basics

Sound Events Basics

Sound events added to Comflow. They are available to enrich errors or to add sounds in Java rules.

New Class SoundEvent

net.comactivity.core.renderer.sound.SoundEvent

SoundEvent has two fields, severity and soundName. Severity values are modeled after severities in net.comactivity.base.error.CAError. In a similar fashion, default sound names are named to mirror constants in CAError. Default severity is Undefined. soundName will by default be resolved according to severity.

SeveritySeverity valueSound name
Undefined-1empty string
Info0info
Warning10warning
Confirmation20confirmation
Error30error
Fatal99fatal

Sounds in Portal

Both DialogWorkspace and ErrorService has sound events. The sound with highest severity will be added to RendererModel at dialog out. At dynamic requests, the sound with the highest severity be sent as a script reply. One sound will be played at a time in the client.

Add Sounds

Sound files resides in PublicRoot/sounds and are identified by their name, without consideration to their extension.

Comflow ships with placeholder sound files that aren't meant for production use. To properly use sounds, files will have to be added with names that correspond to the default names: info, warning, confirmation, error, and fatal. Custom sounds are added the same way, with a name that corresponds to the sound name used in rules.

Example

A developer decides to use sounds to enrich a customer project's CAError messages. They use SoundKit, and appropriate sound files are added in PublicRoot/sounds with new names.

File Name in SoundKitFile Name in Comflow
Train Station.wavinfo.wav
Confused.wavwarning.wav
Chimey.wavconfirmation.wav
Tongue Out.waverror.wav
Synth Cord.wavfatal.wav

Technical Details

  • Sounds are played in client with Javascript library Buzz.
  • Sound files can be in formats mp3, wav, aac, and ogg.
  • Client needs to have support for HTML5 audio tag to support all formats listed above. There's a fallback for older clients in Comflow's PDA rendering. It uses the tag bgsound and supports wav files.
← Site definition SettingsSound Events in Errors →
Comflow Documentation
Docs
Corzia Info
Community
User ShowcaseCorzia WebsiteTwitter
More
Update Sitetech@corzia.com
Copyright © 2019 Corzia AB