Package org.imixs.archive.service
Class RemoteAPIService
java.lang.Object
org.imixs.archive.service.RemoteAPIService
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteSnapshot(String id) readSnapshotIDByUniqueID(String uniqueid) This method read the current snapshot id for a given UnqiueID.org.imixs.workflow.xml.XMLDataCollectionreadSyncData(long syncPoint) This method read sync data.voidrestoreSnapshot(org.imixs.workflow.ItemCollection snapshot)
-
Field Details
-
SNAPSHOT_RESOURCE
- See Also:
-
DOCUMENTS_RESOURCE
- See Also:
-
SNAPSHOT_SYNCPOINT_RESOURCE
- See Also:
-
-
Constructor Details
-
RemoteAPIService
public RemoteAPIService()
-
-
Method Details
-
readSyncData
public org.imixs.workflow.xml.XMLDataCollection readSyncData(long syncPoint) 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
This method read the current snapshot id for a given UnqiueID. This information can be used to verify the sync satus of a single process instance.- Returns:
- the current snapshotid
- Throws:
ArchiveException
-
restoreSnapshot
- Throws:
ArchiveException
-
deleteSnapshot
- Throws:
ArchiveException
-