Changeset 7467 for trunk/Jav_GE/com/scenari/m/ge/agent/HADialogExport.java
- Timestamp:
- 11/23/06 18:21:36 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jav_GE/com/scenari/m/ge/agent/HADialogExport.java
r7460 r7467 96 96 /** 97 97 * Simplification d'écriture (pour WebMacro) pour récupérer un résultat de l'agent du dialogue. 98 * @deprecated 98 99 */ 99 100 public String hGetResultat(String pParams) throws Exception { 100 return ((IWAgentComputor) fAgent).computeAs Data(this, pParams).getString();101 return ((IWAgentComputor) fAgent).computeAsString(this, pParams); 101 102 } 102 103 … … 104 105 * Simplification d'écriture (pour WebMacro notamment) pour récupérer un résultat de l'agent d'urn pUrnAgent relatif 105 106 * à l'agent du dialogue en cours. 107 * @deprecated 106 108 */ 107 109 public String hGetResultat(String pUrnAgent, Object pParams) throws java.lang.Exception { 108 110 109 IComputedData vResult = IComputedData.NULL;111 String vResult = ""; 110 112 IHDialog vDialog = hGoTo(pUrnAgent); 111 113 … … 114 116 IWAgent vAgent = ((IWADialog) vDialog).hGetAgent(); 115 117 if (vAgent instanceof IWAgentComputor) { 116 vResult = ((IWAgentComputor) vAgent).computeAs Data(vDialog, pParams);118 vResult = ((IWAgentComputor) vAgent).computeAsString(vDialog, pParams); 117 119 } else { 118 120 hGetGenerateur().wAddTraceText(IHLogMessage.TYPE_WARNING, "L'agent du dialogue " + this + " ne peut pas produire un résultat (API IWAgentAvecResultat)."); … … 121 123 IWService vService = ((IWSDialog) vDialog).hGetService(); 122 124 if (vService instanceof IWServiceAvecResultat) { 123 vResult = ((IWServiceAvecResultat) vService).hGetResultat(vDialog, pParams) ;125 vResult = ((IWServiceAvecResultat) vService).hGetResultat(vDialog, pParams).getString(); 124 126 } else { 125 127 hGetGenerateur().wAddTraceText(IHLogMessage.TYPE_WARNING, "Le service du dialogue " + this + " ne peut pas produire un résultat (API IWServiceAvecResultat)."); … … 130 132 } 131 133 132 return vResult .getString();134 return vResult; 133 135 } 134 136
Note: See TracChangeset
for help on using the changeset viewer.