Create Java Object Step

Use the Create Java Object step to instantiate a variable or an object of a specified Java class. You can create object instances for any variables or Java classes that you defined in the Variable pane of the Cisco Unified CCX  Editor or that are included in the definitions of the steps in your palette.

Note

Any customer-defined classes you create should be uploaded to the Document repository under \default\classpath. In addition, you must use Cisco Unified CCX Administration to specify the classpath the system should use.

The Variable pane of the Cisco Unified CCX  Editor supports 20 built-in data types:

  • int (java.lang.Integer)—Whole numbers.

  • String (java.lang.String)—Set of unicode characters.

  • boolean (java.lang.Boolean)—True or False.

  • float (java.lang.Float)—Decimal numbers.

  • Prompt (com.cisco.prompt.Playable)—Prompt object created with prompt expressions or returned using prompt steps.

  • char (java.lang.Character)—Characters, such as the letters in the alphabet.

  • Contact (com.cisco.contact.Contact)—Represents a call, e-mail, or HTTP request.

  • Session (com.cisco.session.Session)—Information that can be used to track contacts as they move through the system.

  • User (com.cisco.user.User)—Information useful for user authentication.

  • Grammar (com.cisco.grammar.Recognizable)—Words or Dual Tone Multi-Frequency (DTMF) digits that can be recognized by the Cisco Unified CCX script.

  • Document (com.cisco.doc.Document)—Any type of document, such as a file, a URL, or a recording.

  • Currency (com.cisco.util.Currency)—Monetary format.

  • Date (java.util.Date)—Date information.

  • Language (java.util.Locale)—Language information.

  • Time (java.sql.Time)—Time information.

  • BigDecimal (java.math.BigDecimal)—Large decimal number.

  • BigInteger (java.math.BigInteger)—Large integer.

  • double (java.lang.Double)—Expanded Float variable.

  • long (java.lang.Long)—Expanded Integer variable.

  • byte (javalang.Byte)—Byte information.

  • short (javalang.Short)—Short information.

  • Iterator (javalang.Iterator)—Iterator information.

Note

You can only use Java types compatible with JDK 1.4.2_05 (Java 2) and above.

The Create Java Object customizer window contains two tabs:

  • Class Assignment Tab (Create Java Object Step)
  • Class Information Tab (Create Java Object Step)