Changeset 537 for trunk/zoo-project


Ignore:
Timestamp:
Nov 17, 2014, 2:13:24 PM (10 years ago)
Author:
djay
Message:

Correct use of outputs in Java services.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/hello-java/HelloJava.java

    r526 r537  
    2828public class HelloJava {
    2929    public static int HelloWorldJava(HashMap conf,HashMap inputs, HashMap outputs) {
    30         HashMap hm1 = new HashMap();
    31         hm1.put("dataType","string");
    3230        HashMap tmp=(HashMap)(inputs.get("S"));
    3331        String v=tmp.get("value").toString();
     32        HashMap hm1 = (HashMap)(outputs.get("Result"));
    3433        hm1.put("value",ZOO._("Hello "+v+" from JAVA World !!"));
    35         outputs.put("Result",hm1);
    3634        return ZOO.SERVICE_SUCCEEDED;
    3735    }
    3836    public static int JavaLongProcess(HashMap conf,HashMap inputs, HashMap outputs) {
    39         HashMap hm1 = new HashMap();
    40         hm1.put("dataType","string");
    4137        HashMap tmp=(HashMap)(inputs.get("S"));
    4238        String v=tmp.get("value").toString();
     
    5046            }
    5147        }
     48        HashMap hm1 = (HashMap)(outputs.get("Result"));
    5249        hm1.put("value",ZOO._("Hello "+v+" from JAVA World !!"));
    53         outputs.put("Result",hm1);
    5450        return ZOO.SERVICE_SUCCEEDED;
    5551    }
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png