V2_0_1.java [src/java/m/example/simpleservice] Revision: default  Date:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package m.example.simpleservice;

import javax.ws.rs.Path;
import static csip.annotations.State.*;
import csip.annotations.*;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

@Name("conv #2")
@Description("Example of an simple service")
@Documentation("https://alm.engr.colostate.edu/csip")
@State(PROTOTYPE)
@License(License.GPL3)
@VersionInfo("$Id$")
@Author(name = "od", email = "<odavid@colostate.edu>", org = "CSU")
@Category("Examples")
@Category("Climate")

@Path("m/simpleservice/2.1")
public class V2_0_1 extends V2_0 {

  @Override
  protected void doProcess() throws Exception {
    
    File f = workspace().getFile("abc.txt");
    f.createNewFile();
    
    File f1 = workspace().writeString("abc1.txt", "data");
    
    results().put(f);
    results().put(f1);
  }
}