Ignore:
Timestamp:
11/23/06 18:21:36 (6 years ago)
Author:
sys
Message:

api Data + AgentLinker

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Jav_GE/com/scenari/m/ge/agent/HADialogExport.java

    r7460 r7467  
    9696    /** 
    9797     * Simplification d'écriture (pour WebMacro) pour récupérer un résultat de l'agent du dialogue. 
     98     * @deprecated 
    9899     */ 
    99100    public String hGetResultat(String pParams) throws Exception { 
    100         return ((IWAgentComputor) fAgent).computeAsData(this, pParams).getString(); 
     101        return ((IWAgentComputor) fAgent).computeAsString(this, pParams); 
    101102    } 
    102103 
     
    104105     * Simplification d'écriture (pour WebMacro notamment) pour récupérer un résultat de l'agent d'urn pUrnAgent relatif 
    105106     * à l'agent du dialogue en cours. 
     107     * @deprecated 
    106108     */ 
    107109    public String hGetResultat(String pUrnAgent, Object pParams) throws java.lang.Exception { 
    108110 
    109         IComputedData vResult = IComputedData.NULL; 
     111        String vResult = ""; 
    110112        IHDialog vDialog = hGoTo(pUrnAgent); 
    111113 
     
    114116                IWAgent vAgent = ((IWADialog) vDialog).hGetAgent(); 
    115117                if (vAgent instanceof IWAgentComputor) { 
    116                     vResult = ((IWAgentComputor) vAgent).computeAsData(vDialog, pParams); 
     118                    vResult = ((IWAgentComputor) vAgent).computeAsString(vDialog, pParams); 
    117119                } else { 
    118120                    hGetGenerateur().wAddTraceText(IHLogMessage.TYPE_WARNING, "L'agent du dialogue " + this + " ne peut pas produire un résultat (API IWAgentAvecResultat)."); 
     
    121123                IWService vService = ((IWSDialog) vDialog).hGetService(); 
    122124                if (vService instanceof IWServiceAvecResultat) { 
    123                     vResult = ((IWServiceAvecResultat) vService).hGetResultat(vDialog, pParams); 
     125                    vResult = ((IWServiceAvecResultat) vService).hGetResultat(vDialog, pParams).getString(); 
    124126                } else { 
    125127                    hGetGenerateur().wAddTraceText(IHLogMessage.TYPE_WARNING, "Le service du dialogue " + this + " ne peut pas produire un résultat (API IWServiceAvecResultat)."); 
     
    130132        } 
    131133 
    132         return vResult.getString(); 
     134        return vResult; 
    133135    } 
    134136 
Note: See TracChangeset for help on using the changeset viewer.