Examples of Participant


Examples of com.atomikos.icatch.Participant

        // add all recovered participants to the replay stack
        // to resume where we left off before the crash,
        // and try to notify all hazards
        Enumeration enumm = getCoordinator ().getParticipants ().elements ();
        while ( enumm.hasMoreElements () ) {
            Participant p = (Participant) enumm.nextElement ();
            if ( !getReadOnlyTable ().containsKey ( p ) ) {
                replayCompletion ( p );
            }
        } // while
    }
View Full Code Here

Examples of com.bugyal.imentor.server.data.Participant

  public void testRankedCorrectly() {

    Ranker disSubRanker = new Ranker().addScorer(new DistanceScorer())
        .addScorer(new SubjectCorrelationScorer());

    Participant p = Participant.createParticipantForTest("abc",
        new Location(17.0, 75.12, "some-location", 40), "abc@ui.com", "100002992300278");
    disSubRanker.rank(sr1, p) ;
   
    assertEquals("name2",sr1.getAllResults().get(0).getP().getName());
    assertEquals("name3",sr1.getAllResults().get(1).getP().getName());
View Full Code Here

Examples of com.google.collide.client.code.Participant

  private void createCursor(final String userId, Line line, int lineNumber, int column) {
    final CursorView cursorView = CursorView.create(appContext, false);
    cursorView.setVisibility(true);

    Participant participant = participantModel.getParticipantByUserId(userId);
    if (participant != null) {
      /*
       * If the participant exists already, set his color (otherwise the
       * participant model listener will set the color)
       */
      cursorView.setColor(participant.getColor());
    }

    Anchor anchor =
        document.getAnchorManager().createAnchor(COLLABORATOR_CURSOR_ANCHOR_TYPE, line, lineNumber,
            column);
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter3.recipe3.task.Participant

    Thread threadConference=new Thread(conference);
    threadConference.start();
   
    // Creates ten participants, a thread for each one and starts them
    for (int i=0; i<10; i++){
      Participant p=new Participant(conference, "Participant "+i);
      Thread t=new Thread(p);
      t.start();
    }

  }
View Full Code Here

Examples of com.saasovation.collaboration.domain.model.collaborator.Participant

        Calendar calendar = this.calendarAggregate();

        DomainRegistry.calendarRepository().save(calendar);

        Set<Participant> invitees = new TreeSet<Participant>();
        invitees.add(new Participant("zoe", "Zoe Doe", "zoe@saasovation.com"));

        CalendarEntry calendarEntry1 =
            calendar.scheduleCalendarEntry(
                    DomainRegistry.calendarIdentityService(),
                    "A Doctor Checkup",
View Full Code Here

Examples of com.secondstack.training.spring.extjs.domain.Participant

    @RequestMapping(params = {"id"}, method = RequestMethod.GET)
    @ResponseBody
    public Participant findById(@RequestParam("id")Integer id){
        logger.debug("Received rest request to get data participant");
        Participant participant = participantService.findById(id);
        return participant;
    }
View Full Code Here

Examples of com.starflow.wf.engine.model.Participant

      List<WorkItem> workItems = event.getWorkItemRep().findActivityWorkItems(event.getActivityInst().getActivityInstId());
      for(WorkItem workItem : workItems) {
        int state = StarFlowState.WORKITEM_RUNNING;
        List<Participant> participants = event.getWorkItemRep().findWorkItemParticipants(workItem.getWorkItemId());
        if(participants.size() == 1) {
          Participant participant = participants.get(0);
          if(Constants.PARTICIPANT_TYPE_PERSON.equals(participant.getParticType()))
            state = StarFlowState.WORKITEM_RUNNING;
          else
            state = StarFlowState.WORKITEM_WAITING_RECEIVE;
        } else
          state = StarFlowState.WORKITEM_WAITING_RECEIVE;
View Full Code Here

Examples of com.starflow.wf.engine.model.Participant

   */
  protected int getCurrentState(List<Participant> participants) {
    if(participants.size()>1)
      return StarFlowState.WORKITEM_WAITING_RECEIVE;
    else {
      Participant participant = participants.get(0);
      if(Constants.PARTICIPANT_TYPE_PERSON.equalsIgnoreCase(participant.getParticType()))
        return StarFlowState.WORKITEM_RUNNING;
      else
        return StarFlowState.WORKITEM_WAITING_RECEIVE;
    }
  }
View Full Code Here

Examples of com.starflow.wf.engine.model.Participant

    List<Participant> participants = new LinkedList<Participant>();
    List list = actEl.selectNodes(StarFlowNames.ACT_CHILD_PARTICIPANT);
    Iterator iter=list.iterator();
        while(iter.hasNext()){
            Element el = (Element)iter.next();
            Participant p = new Participant();
            p.setParticipant(el.attributeValue(StarFlowNames.ACT_CHILD_PARTICIPANT_ID));
            p.setParticipant2(el.attributeValue(StarFlowNames.ACT_CHILD_PARTICIPANT_NAME));
            p.setParticType(el.attributeValue(StarFlowNames.ACT_CHILD_PARTICIPANT_TYPE));
            participants.add(p);
        }
        return participants;
  }
View Full Code Here

Examples of com.starflow.wf.engine.model.Participant

  }
 
  private static class ParticipantRowMapper implements RowMapper<Participant> {
    @Override
    public Participant mapRow(ResultSet resultSet, int index) throws SQLException {
      Participant participant = new Participant();
      participant.setParticId(resultSet.getLong("particId"));
      participant.setParticipant2(resultSet.getString("participant2"));
      participant.setParticipant(resultSet.getString("participant"));
      participant.setParticType(resultSet.getString("particType"));
      participant.setWorkItemId(resultSet.getLong("workItemId"));
      return participant;
    }
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.