Class RemoteAPIService

java.lang.Object
org.imixs.archive.service.RemoteAPIService

public class RemoteAPIService extends Object
The RemoteService is used to access the remote API from the worklfow instance. All remote clients are based on the Imixs-Rest API.

To access the API the services uses the Imixs-Melman DocumentClient.

Version:
1.0
Author:
rsoika
  • Field Details

  • Constructor Details

    • RemoteAPIService

      public RemoteAPIService()
  • Method Details

    • readSyncData

      public org.imixs.workflow.xml.XMLDataCollection readSyncData(long syncPoint, org.imixs.melman.DocumentClient documentClient) throws ArchiveException
      This method read sync data. The method returns the first workitem from the given syncpoint. If no data is available the method returns null.
      Returns:
      an XMLDataCollection instance representing the data to sync or null if no data form the given syncpoint is available.
      Throws:
      ArchiveException
    • readSnapshotIDByUniqueID

      public String readSnapshotIDByUniqueID(String uniqueid, org.imixs.melman.DocumentClient documentClient) throws ArchiveException
      This method read the current snapshot id for a given UnqiueID. This information can be used to verify the sync status of a single process instance. The method throws a ArchiveException in case the snapshot did not exist
      Returns:
      the current snapshotId
      Throws:
      ArchiveException
    • restoreSnapshot

      public void restoreSnapshot(org.imixs.workflow.ItemCollection snapshot, org.imixs.melman.DocumentClient documentClient) throws ArchiveException
      Throws:
      ArchiveException
    • deleteSnapshot

      public void deleteSnapshot(String id, org.imixs.melman.DocumentClient documentClient) throws ArchiveException
      Throws:
      ArchiveException