Examples of Activity


Examples of com.ourlinc.activity.domain.Activity

  @Resource
  IActivityService activityService;

 
  public void testA() {
    Activity act = activityService.getActivity(-1);
    if (logger.isDebugEnabled()) {
      logger.debug(act.toString());
    }
  }
View Full Code Here

Examples of com.ourlinc.helloworld.model.Activity

  }

  public Activity addActivity(String title, Date time, String place,
      String content, Date startDate, Date overDate, String note) {
    return new Activity(m_Podi, title, time, place, content, startDate,
        overDate, note);

  }
View Full Code Here

Examples of com.skyline.base.type.Activity

  public Album getAlbumById(long albumId) {
    Album album = albumDao.queryAlbumById(albumId);
    if (album == null) {
      throw new NoResourceException("Id为" + albumId + "的相册不存在");
    }
    Activity act = album.getActivity();
    if (act == Activity.DELETED || act == Activity.FREEZED) {
      throw new NoResourceException("Id为" + albumId + "的相册已删除或者已被屏蔽");
    }
    return album;
  }
View Full Code Here

Examples of com.tmm.enterprise.microblog.domain.Activity

      boolean startRecording = (latestId == 0l);
      for (int i = latest.size() - 1; i >= 0; i--) {
        if (latest.get(i).getActivity() == null) {
          continue;
        }
        Activity a = latest.get(i).getActivity();
        if (startRecording) {
          JsonObject o = jsonService.convertToJson(a);
          o.addProperty("isOwner", currentUser.equals(a.getRaisedBy()));
          array.add(o);
        }

        // check whether to update status from here
        if (a.getId().equals(latestId)) {
          startRecording = true;
        }
      }

      returnObj.add("statuses", array);
View Full Code Here

Examples of com.werken.blissed.Activity

        // - - - - - - - - - - - - - - -

        Script script = getBody();
       
        Activity activity = new JellyActivity( script );

        if ( getVar() != null )
        {
            getContext().setVariable( getVar(),
                                      activity );
View Full Code Here

Examples of de.caterdev.modelling.process.bpmn.Activity

    private IAssociation ab, bc, cd;
   
    @Before
    public void setUp() throws Exception
    {
        a = new Activity("A");
        b = new Activity("B");
        c = new Activity("C");
        d = new Activity("D");
        ab = new DirectedAssociation(a, b);
        bc = new DirectedAssociation(b, c);
        cd = new DirectedAssociation(c, d);
       
        model = new BPMNModel();
View Full Code Here

Examples of de.danet.an.workflow.api.Activity

      return;
  }
  Object timer = ((Object[])info.state())[0];
  timerHandler().removeTimer (timer);
  ActivityUniqueKey auk = info.activityUniqueKey();
  Activity act = null;
  try {
      act = toolAgentContext().lookupActivity(auk);
  } catch (InvalidKeyException e) {
      logger.warn (auk + " is unknown, cannot cancel wait tool.");
      return;
  }
  ProcessData res = new DefaultProcessData ();
  String resParam = (String)((Object[])info.state())[1];
  res.put (resParam, "CANCELED");
  try {
      act.setResult (res);
      act.complete ();
      if (logger.isDebugEnabled ()) {
    logger.debug ("Timer application " + applId + " canceled, "
            + auk + " completed");
      }
      return;
  } catch (InvalidDataException e) {
      logger.error
    ("Cannot set \"status\" out parameter of "
     + "wait tool. Propably wrong declaration. "
     + auk + " will be terminated.");
  } catch (CannotCompleteException e) {
      logger.error ("Cannot complete " + auk
        + " (will be terminated): " + e.getMessage ());
  }
  if (act.typedState().workflowState() == State.OPEN) {
      try {
    act.terminate ();
      } catch (CannotStopException e) {
    logger.error
        ("Cannot terminate " + auk + ": " + e.getMessage ());
      } catch (NotRunningException e) {
    logger.debug (auk + " not running although state is open?");
View Full Code Here

Examples of de.xanders.data.customer.dao.Activity

    /**
     * @see ActivityService#getActivityById(java.lang.Long)
     */
    protected ActivityVO handleGetActivityById(java.lang.Long activityId)
        throws java.lang.Exception {
      Activity activity = this.getActivityDao().load(activityId);
      return this.getActivityDao().toActivityVO(activity);
    }
View Full Code Here

Examples of facebook4j.Activity

            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Activity> activities = new ResponseListImpl<Activity>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject activityJSONObject = list.getJSONObject(i);
                Activity activity = new ActivityJSONImpl(activityJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(activity, activityJSONObject);
                }
                activities.add(activity);
            }
View Full Code Here

Examples of hj.runtime.wsh.Activity

         * The phaser has the parent in it to prevent it from advancing to the next phase
         * before the finish scope hits end scope
         * When the parent hits stopFinish(), the parent will deregister itself so that
         * the phaser can now advance to the next phase
         */
        Activity parent = (Activity) Thread.currentThread();
        scope = parent.getCurrentFinishScope();
        parent.addPhaser(new PhaserRegModeImpl(this,phaserMode.SIG_WAIT));
        scope.addPhaser(this);
        registerSignaler(parent);
        registerWaiter(parent);
    }
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.