Package org.wso2.carbon.bam.common.clients

Examples of org.wso2.carbon.bam.common.clients.BAMConfigurationDSClient.updateActivity()


      public void updateActivity(String name, String description, int activityKeyId)
              throws BAMException {
          BAMConfigurationDSClient client = null;
          try {
              client = BAMUtil.getBAMConfigurationDSClient();
              client.updateActivity(name, description, activityKeyId);
          } catch (BAMException e) {
              throw e;
          } finally {
              if (client != null) {
                  client.cleanup();
View Full Code Here


        Activity activity2 = manager.getActivity("userX", "self", "5", null, "4");
        assertNotNull(activity2);
        assertEquals("userX", activity2.getUserId());
        assertEquals("Adding Gadget", activity2.getTitle());
        activity1.setTitle("New Comment added");
        manager.updateActivity("userX", activity1);
        activity2 = manager.getActivity("userX", "self", "5", null, "4");
        assertNotNull(activity2);
        assertEquals("userX", activity2.getUserId());
        assertEquals("New Comment added", activity2.getTitle());
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.