Examples of completeTask()


Examples of com.founder.fix.fixflow.service.FlowCenterService.completeTask()

          ps.setObject(1, filter.get("businessKey"));
          ps.setObject(2, filter.get("COL2"));
          ps.execute();
          FlowCenterService fcs = getFlowCenter();
          fcs.setConnection(connection);
          fcs.completeTask(filter);

          //事务提交
          connection.commit();
        } catch(Exception e){
          //事务回滚
View Full Code Here

Examples of com.founder.fix.fixflow.service.FlowCenterService.completeTask()

          Map<String, Object> flowMaps = JSONUtil
              .parseJSON2Map(taskParams);
          filter.put("taskParams", flowMaps);
          FlowCenterService fcs = getFlowCenter();
          fcs.setConnection(connection);
          fcs.completeTask(filter);
          //事务提交
          connection.commit();
        }catch(Exception e){
          connection.rollback();
          throw e;
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

         
        }
       
        Agency primaryAgency = Agency.findById(primaryAgencyId.longValue());
       
        agencyTask.completeTask("Imported " + agencyCount + " agencies.", GtfsSnapshotMergeTaskStatus.SUCCESS);
       
        Logger.info("Agencies loaded: " + agencyCount.toString());
        Logger.info("GtfsImporter: importing routes...");
       
        GtfsSnapshotMergeTask routeTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

          }
         
          if(agencyCount > 1)
          primaryAgencyId = null;
         
          routeTask.completeTask("Imported " + routeCount + " routes.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          Logger.info("Routes loaded:" + routeCount.toString());
          Logger.info("GtfsImporter: importing stops...");
       
        GtfsSnapshotMergeTask stopTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

              stopIdMap.put(gtfsStop.getId().toString(), stopId );
                        
            stopCount++;
          }
         
          stopTask.completeTask("Imported " + stopCount + " stops.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          Logger.info("Stops loaded: " + stopCount);
          Logger.info("GtfsImporter: importing Shapes...");
         
          Logger.info("Calculating agency centroid for stops...");
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

          }
         
          Logger.info("Shape points loaded: " + shapePointCount.toString());
          Logger.info("Shapes loaded: " + shapeCount.toString());
         
          tripShapeTask.completeTask("Imported " + shapePointCount + " points in " + shapeCount + " shapes.", GtfsSnapshotMergeTaskStatus.SUCCESS);

         
          GtfsSnapshotMergeTask serviceCalendarsTask = new GtfsSnapshotMergeTask(snapshotMerge);
          serviceCalendarsTask.startTask();
         
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

          }
     
         
          Logger.info("Service calendars loaded: " + serviceCalendarCount);
         
          serviceCalendarsTask.completeTask("Imported " + serviceCalendarCount.toString() + " Service calendars.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
         
          Logger.info("GtfsImporter: importing Service Calendar dates...");
         
          GtfsSnapshotMergeTask serviceCalendarDatesTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

           
            serviceCalendarDateCount++;
           
          }
     
          serviceCalendarDatesTask.completeTask("Imported " + serviceCalendarDateCount.toString() + " Service calendar dates.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          Logger.info(" loaded: " + serviceCalendarDateCount);
         
          Logger.info("GtfsImporter: importing trips...");
         
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

          }
     
         
          Logger.info("Trips loaded: " + tripCount);
         
          tripsTask.completeTask("Imported " + tripCount.toString() + " trips.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
         
          Logger.info("GtfsImporter: importing stopTimes...");
       
          GtfsSnapshotMergeTask stopTimesTask = new GtfsSnapshotMergeTask(snapshotMerge);
View Full Code Here

Examples of models.gtfs.GtfsSnapshotMergeTask.completeTask()

          }
         
       
          Logger.info("StopTimes loaded: " + stopTimeCount.toString());
         
          stopTimesTask.completeTask("Imported " + stopTimeCount.toString() + " stop times.", GtfsSnapshotMergeTaskStatus.SUCCESS);
         
          String mergeDescription = new String("Imported GTFS file: " + agencyCount + " agencies; " + routeCount + " routes;" + stopCount + " stops; " +  stopTimeCount + " stopTimes; " + tripCount + " trips;" + shapePointCount + " shapePoints");
         
          snapshotMerge.complete(mergeDescription);
         
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.