Platform SDK Java 8.5 API Reference

Package com.genesyslab.platform.openmedia.protocol.openmediaattributes

This package contains the openmediaattributes protocol classes that your applications can use to communicate with Interaction Server.

See:
          Description

Class Summary
Converter  
InteractionAttributes  
MCRInteractionsResolver  
OpenMediaAttributesBinding Class contains functionality for marshaling/unmarshaling data between key value collection and appropriate object of predefined class.
OpenMediaAttributesFactory  
WorkbinStatisticDetails  
WorkbinType  
WorkbinTypeDetails  
 

Exception Summary
OpenMediaAttributesBinding.KVBindingException  
 

Package com.genesyslab.platform.openmedia.protocol.openmediaattributes Description

This package contains the openmediaattributes protocol classes that your applications can use to communicate with Interaction Server.

Example of marshling/unmarshaling a message to/from a kvlist:

        InteractionAttributes message = new InteractionAttributes();
        message.setInteractionId("123");
        
        // Example of marshaling a message to kvlist
        KeyValueCollection kv = OpenMediaAttributesBinding.marshal(message);
        
        // Example of unmarshaling a kvilst to the message object
        // if kv isn't null then result1 won't be null    
        InteractionAttributes result1 
          = (InteractionAttributes) OpenMediaAttributesBinding.unmarshal("InteractionAttributes", kv);
        // ... process result
        
        // Example of unmarshaling a kvilst to a apropriate message object (autoresolving)
        // if kv isn't null and kv contains 'NumberOfInteractions' then result2 type will be WorkbinStatisticDetails
        // else if kv isn't null and kv contains 'WorkbinType' then result2 type will be WorkbinTypeDetails
        // else if kv isn't null and kv contains 'InteractionId' then result2 type will be InteractionAttributes
        // else null will be returned
        Object result2 = OpenMediaAttributesBinding.unmarshal(kv);
        if (result2 instanceof InteractionAttributes) {
                InteractionAttributes result = (InteractionAttributes)result2;
        // ... process result
        }
        
        // Example of marshaling using OpenMediaAttributesFactory
        OpenMediaAttributesFactory factory = new OpenMediaAttributesFactory();
        KeyValueCollection kvlist = factory.marshal(message);
        
        // Example of unmarshaling using OpenMediaAttributesFactory
        InteractionAttributes message2 = (InteractionAttributes) factory.unmarshal(kvlist); 
        


Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.