Changeset 537 for trunk/zoo-project
- Timestamp:
- Nov 17, 2014, 2:13:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-services/hello-java/HelloJava.java
r526 r537 28 28 public class HelloJava { 29 29 public static int HelloWorldJava(HashMap conf,HashMap inputs, HashMap outputs) { 30 HashMap hm1 = new HashMap();31 hm1.put("dataType","string");32 30 HashMap tmp=(HashMap)(inputs.get("S")); 33 31 String v=tmp.get("value").toString(); 32 HashMap hm1 = (HashMap)(outputs.get("Result")); 34 33 hm1.put("value",ZOO._("Hello "+v+" from JAVA World !!")); 35 outputs.put("Result",hm1);36 34 return ZOO.SERVICE_SUCCEEDED; 37 35 } 38 36 public static int JavaLongProcess(HashMap conf,HashMap inputs, HashMap outputs) { 39 HashMap hm1 = new HashMap();40 hm1.put("dataType","string");41 37 HashMap tmp=(HashMap)(inputs.get("S")); 42 38 String v=tmp.get("value").toString(); … … 50 46 } 51 47 } 48 HashMap hm1 = (HashMap)(outputs.get("Result")); 52 49 hm1.put("value",ZOO._("Hello "+v+" from JAVA World !!")); 53 outputs.put("Result",hm1);54 50 return ZOO.SERVICE_SUCCEEDED; 55 51 }
Note: See TracChangeset
for help on using the changeset viewer.