Changes between Initial Version and Version 1 of CEDAWPS/Overview/JustADemo


Ignore:
Timestamp:
14/09/10 11:21:50 (11 years ago)
Author:
astephen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CEDAWPS/Overview/JustADemo

    v1 v1  
     1= CEDA-WPS: "Just A Demo" walk-through = 
     2 
     3[[PageOutline]] 
     4 
     5[wiki:CEDAWPS/Overview Return to CEDA WPS Overview main page] 
     6 
     7== Introduction to "JustADemo" == 
     8 
     9Imagine we have just added the '''JustADemo''' process to the WPS with the following code: 
     10 
     11{{{ 
     12cwps@ceda-wps1:/usr/local/cwps/cows_wps> ./create_process.sh just_a_demo JustADemo 
     13Wrote new process module: process_modules/just_a_demo.py 
     14Wrote new process config: process_configs/JustADemo.ini 
     15 
     16# Re-start the WSGI app (to pick up the changes) 
     17cwps@ceda-wps1:/usr/local/cwps/cows_wps> touch /usr/local/apache2/wsgi_scripts/cows_wps.wsgi 
     18}}} 
     19 
     20It is created from a template and has the following functionality: 
     21  
     22 1. Take the user input "Step" which is an integer 
     23 1. Create a list of integers between 1 and 10,000 with interval of "Step" 
     24 1. Write that list to an output file (called "output.txt") 
     25 1. Also return that list in the XML response 
     26 
     27Obviously this is not very useful but it allows the developer to work from code that works. 
     28 
     29The UI will allow the following interactions with the !JustADemo process... 
     30 
     31== Viewing the process details == 
     32 
     33 
     34