Ignore:
Timestamp:
May 10, 2014, 4:23:03 PM (11 years ago)
Author:
djay
Message:

Remove leaks from DescribeProcess? and JavaScript? support. Fix wrong ulinet update on previous commit. Use the new updateStatus/setOutputValue functions as described in #88 from longProcess. Add default value for QREncode service in ZCFG. Fix name of profile service in the ZCFG file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/utils/status/service.c

    r467 r471  
    104104       */
    105105      char *tmpStr=getStatus(atoi(tmpMap->value));
     106      fprintf(stderr,"DEBUG: %s \n",tmpStr);
    106107      if(tmpStr!=NULL && strncmp(tmpStr,"-1",2)!=0){
    107108        char *tmpStr1=strdup(tmpStr);
     
    121122        setMapInMaps(outputs,"Result","value",(char*)xmlbuff);
    122123        xmlFree(xmlbuff);
    123         free(tmpStr);
    124124        free(tmpStr1);
    125125        free(tmpStr0);
     
    154154    int i=0;
    155155    while(i<100){
    156       char tmp[4];
    157156      char message[10];
    158       sprintf(tmp,"%i",i);
    159       map* tmpMap=NULL;
    160       tmpMap=getMapFromMaps(conf,"lenv","sid");
    161       if(tmpMap!=NULL)
    162         fprintf(stderr,"Status %s %s\n",tmpMap->value,tmp);
    163157      sprintf(message,"Step %d",i);
    164       setMapInMaps(conf,"lenv","status",tmp);
    165       setMapInMaps(conf,"lenv","message",message);
    166       updateStatus(conf);
     158      updateStatus(conf,i,message);
    167159#ifndef WIN32
    168160      sleep(1);
     
    172164      i+=5;
    173165    }
    174     setMapInMaps(outputs,"Result","value","\"Running long process successfully\"");
     166    setOutputValue(outputs,"Result","\"Long process run successfully\"",-1);
    175167    return SERVICE_SUCCEEDED;
    176168  }
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