Changeset 259 for trunk/docs/api
- Timestamp:
- Jul 15, 2011, 11:32:36 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/api/examples.txt
r204 r259 21 21 } 22 22 23 In this really short example you can see how to create ZOO.Processclass instance and23 In this really short example you can see how to create ``ZOO.Process`` class instance and 24 24 call the Execute method on such an instance. Then you'll just need to return a JavaScript 25 25 object containing the attributes result and outputs, which I'm sure you already know 26 what is about. The first is about the status of the process (can be ZOO.SERVICE_SUCEEDED,27 ZOO.SERVICE_FAILEDand so on), the last is obviously the resulting maps (take a28 look at the maps internal data structure used by ZOO Kernel in service.h).26 what is about. The first is about the status of the process (can be ``ZOO.SERVICE_SUCEEDED``, 27 ``ZOO.SERVICE_FAILED`` and so on), the last is obviously the resulting maps (take a 28 look at the maps internal data structure used by ZOO Kernel in ``service.h``). 29 29 30 30 ZOO.UpdateStatus … … 48 48 } 49 49 50 You can see in this sample code how to use the ZOOUpdateStatusfunction to update the50 You can see in this sample code how to use the ``ZOOUpdateStatus`` function to update the 51 51 current status of your running process. This information will be really helpfull when the 52 ZOO Kernel will run your JavaScript Service in background mode (if the user set to true53 the storeExecuteResponseparameter in his request).52 ZOO Kernel will run your JavaScript Service in background mode (if the user set to ``true`` 53 the ``storeExecuteResponse`` parameter in his request). 54 54
Note: See TracChangeset
for help on using the changeset viewer.