Examples of claim()


Examples of org.activiti.engine.TaskService.claim()

  public static void claim(String processInstanceId) {
    TaskService taskService= SpringContextHolder.getBean(TaskService.class);
    //如果没有签收,签收
    Task task = taskService.createTaskQuery().processInstanceId(processInstanceId).singleResult();
    if(task != null && StringUtils.isEmpty(task.getAssignee())){
      taskService.claim(task.getId(), ObjectUtils.toString(UserUtils.getUser().getId()));
    }
  }
 
 
}
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.BlockStore.ChainLoopDetector.claim()

        
         // Allocate a block if needed, otherwise figure
         //  out what the next block will be
         if(thisBlock == POIFSConstants.END_OF_CHAIN) {
            thisBlock = blockStore.getFreeBlock();
            loopDetector.claim(thisBlock);
           
            // We're on the end of the chain
            nextBlock = POIFSConstants.END_OF_CHAIN;
           
            // Mark the previous block as carrying on to us if needed
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.BlockStore.ChainLoopDetector.claim()

            //  new stream, save the start block offset
            if(this.startBlock == POIFSConstants.END_OF_CHAIN) {
               this.startBlock = thisBlock;
            }
         } else {
            loopDetector.claim(thisBlock);
            nextBlock = blockStore.getNextBlock(thisBlock);
         }
        
         // Write it
         ByteBuffer buffer = blockStore.createBlockIfNeeded(thisBlock);
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.BlockStore.ChainLoopDetector.claim()

        
         // Allocate a block if needed, otherwise figure
         //  out what the next block will be
         if(thisBlock == POIFSConstants.END_OF_CHAIN) {
            thisBlock = blockStore.getFreeBlock();
            loopDetector.claim(thisBlock);
           
            // We're on the end of the chain
            nextBlock = POIFSConstants.END_OF_CHAIN;
           
            // Mark the previous block as carrying on to us if needed
View Full Code Here

Examples of org.apache.poi.poifs.filesystem.BlockStore.ChainLoopDetector.claim()

            //  new stream, save the start block offset
            if(this.startBlock == POIFSConstants.END_OF_CHAIN) {
               this.startBlock = thisBlock;
            }
         } else {
            loopDetector.claim(thisBlock);
            nextBlock = blockStore.getNextBlock(thisBlock);
         }
        
         // Write it
         ByteBuffer buffer = blockStore.createBlockIfNeeded(thisBlock);
View Full Code Here

Examples of org.apache.tapestry5.services.TransformField.claim()

    train_toClass(ct, REQUEST_CLASS_NAME, Request.class);

    train_provideInjection(ip, "myfield", Request.class, locator, ct,
        model, true);

    field.claim(annotation);

    replay();

    ComponentClassTransformWorker worker = new InjectWorker(locator, ip,
        new QuietOperationTracker());
View Full Code Here

Examples of org.camunda.bpm.engine.TaskService.claim()

  @Override
  public void claim(UserIdDto dto) {
    TaskService taskService = engine.getTaskService();

    taskService.claim(taskId, dto.getUserId());
  }

  @Override
  public void unclaim() {
    engine.getTaskService().setAssignee(taskId, null);
View Full Code Here

Examples of org.encog.ml.genetic.population.BasicPopulation.claim()

      final TSPGenome genome = new TSPGenome(ga, cities);
      ga.getPopulation().add(genome);
      ga.calculateScore(genome);
    }
    population.claim(ga);
    population.sort();
  }


  /**
 
View Full Code Here

Examples of org.encog.ml.genetic.population.Population.claim()

      final TSPGenome genome = new TSPGenome(ga, cities);
      ga.getPopulation().add(genome);
      ga.calculateScore(genome);
    }
    population.claim(ga);
    population.sort();
  }


  /**
 
View Full Code Here

Examples of org.fireflow.engine.IWorkItem.claim()

   */
  public IWorkItem claimWorkItem(final String workItemId)
      throws EngineException, KernelException {
    IWorkItem result = null;
    IWorkItem wi = this.findWorkItemById(workItemId);
    result = wi.claim();
    return result;
  }

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#completeWorkItem(java.lang.String)
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.