Examples of Activity


Examples of org.sonar.core.activity.Activity

    final String testValue = "hello world";
    service.write(dbSession, Activity.Type.QPROFILE, testValue);
    dbSession.commit();
    assertThat(index.findAll().getTotal()).isEqualTo(1);

    Activity activity = Iterables.getFirst(index.findAll().getHits(), null);
    assertThat(activity).isNotNull();
    assertThat(activity.message()).isEqualTo(testValue);
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.model.Activity

*/
public class TransitionDirectEditPolicy extends ActivityDirectEditPolicy {

  @Override
  protected Command getDirectEditCommand(DirectEditRequest request) {
    Activity source = (Activity) getHost().getModel();
    RenameTransitionCommand cmd = new RenameTransitionCommand(source.getDiagram().getTextEditor());
    cmd.setSource(source);
    cmd.setOldName(((Activity) getHost().getModel()).getName());
    cmd.setName((String) request.getCellEditor().getValue());
    return cmd;
  }
View Full Code Here

Examples of org.uberfire.client.mvp.Activity

    private View view;

    private PlaceRequest activePlace = null;

    void onWorkbenchPartOnFocus( @Observes PlaceGainFocusEvent event ) {
        final Activity activity = placeManager.getActivity( event.getPlace() );
        if ( activity == null ) {
            return;
        }
        if ( !( activity instanceof WorkbenchActivity ) ) {
            return;
View Full Code Here

Examples of org.uengine.kernel.Activity

          theEventHandler = ehs[i];
          break;
        }
      }
     
      Activity handlerActivity = theEventHandler.getHandlerActivity();
     
      HumanActivity humanActivity = null;
     
      if(handlerActivity instanceof SubProcessActivity){
        SubProcessActivity subProcessActivity = (SubProcessActivity)theEventHandler.getHandlerActivity();
View Full Code Here

Examples of org.uengine.smcp.twister.engine.priv.core.definition.Activity

        // First activities in the activities List are associated with MessageEvent objects.
        Map result = new HashMap(messageEvents.size());

        for (int m = 0; m < getMessageEvents().size(); m++) {
            try {
                Activity activity = (Activity) getActivities().get(m);

                if (messageEvents.get(m) == null) {
                    throw new ProcessStructuralException("An activity in this Pick container is not associated with " +
                            "any MessageEvent, please check that all activities created in this " +
                            "container is properly associated with an event.");
View Full Code Here

Examples of org.wso2.carbon.registry.social.api.activity.Activity

            registry.commitTransaction();
            if (getConfigUserRegistry() instanceof UserRegistry) {
                String userId = ((UserRegistry) getConfigUserRegistry()).getUserName();
                // Recording Activities
                ActivityManager manager = new ActivityManagerImpl();
                Activity activity = new ActivityImpl();
                activity.setTitle("added " + gName + "gadget to the gadget repository");
                activity.setUrl(gUrl);
                activity.setBody(gScreen);
                manager.createActivity(userId, "self", "gs", null, activity);
            }

            return true;
View Full Code Here

Examples of org.zanata.model.Activity

    public void testNewReviewActivityInserted() throws Exception {
        activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
                personId, versionId, documentId, null, new LocaleId("as"),
                textFlowTargetId, ContentState.Approved,
                ContentState.NeedReview));
        Activity activity =
                activityService.findActivity(personId,
                        EntityType.HProjectIteration, projectVersionId,
                        ActivityType.REVIEWED_TRANSLATION, new Date());
        assertThat(activity, not(nullValue()));
        assertThat(activity.getEventCount(), equalTo(1));
    }
View Full Code Here

Examples of projectatlast.tracking.Activity

  @Override
  public void doGet(HttpServletRequest req, HttpServletResponse resp)
      throws IOException {

    Student student = AuthController.getCurrentStudent();
    Activity activity = StudentController.getCurrentActivity(student);

    // Remove current activity in student
    StudentController.setCurrentActivity(student, null);

    // Cancel current activity
View Full Code Here

Examples of rocks.xmpp.extensions.activity.model.Activity

                "    <partying/>\n" +
                "  </relaxing>\n" +
                "  <text xml:lang='en'>My nurse&apos;s birthday!</text>\n" +
                "</activity>";

        Activity activity = unmarshal(xml, Activity.class);
        Assert.assertNotNull(activity);
        Assert.assertEquals(activity.getText(), "My nurse's birthday!");
        Assert.assertEquals(activity.getCategory(), Category.RELAXING);
        Assert.assertTrue(activity.getSpecificActivity() instanceof SpecificActivity.Partying);
    }
View Full Code Here

Examples of uk.org.ogsadai.client.toolkit.Activity

                if (entry.getValue().getStatus() == ActivityStatus.ERROR)
                {
                    ProcessingElementErrorType pe =
                        mObjectFactory.createProcessingElementErrorType();
                    // TODO activity name needs to be mapped to processing element
                    Activity activity = mActivities.get(entry.getKey());
                    if (activity != null)
                    {
                        pe.setType(activity.getActivityName().toString());
                    }
                    else
                    {
                        // if the activity instance can't be mapped then it was
                        // inserted automatically by OGSA-DAI
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.