Class ActivityApi

java.lang.Object
com.mayam.wf.ws.client.ActivityApi

public class ActivityApi extends Object
Provides access to server activities. This class is accessed using TasksClient.activityApi().
  • Constructor Details

    • ActivityApi

      public ActivityApi(com.mayam.wf.ws.client.internal.ActivitiesRestClient client)
  • Method Details

    • performSiteActivity

      public AttributeMap performSiteActivity(AttributeMap subject) throws RemoteException
      Performs site activity on provided subject which must contain SITE_ACTIVITY_ID.
      Parameters:
      subject - the subject of the activity, i.e. a task or an asset.
      Returns:
      the updated subject after having the activity performed on it.
      Throws:
      RemoteException - if an error occurred on the server side.
    • performSiteFunction

      public AttributeMap performSiteFunction(String name, AttributeMap subject) throws RemoteException
      Performs named site function on provided subject.
      Parameters:
      subject - the subject of the function, i.e. a task or an asset.
      Returns:
      the resulting AttributeMap.
      Throws:
      RemoteException - if an error occurred on the server side.