Package com.axemble.vdoc.sdk.impl
Class ProcessResourceHistory
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.ProcessResourceHistory
- All Implemented Interfaces:
IResourceHistory
,Serializable
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axemble.vdoc.sdk.interfaces.IResourceHistory
IResourceHistory.IEvent, IResourceHistory.ISnapshot
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.axemble.vdp.workflow.domain.WorkflowInstance
Fields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProcessResourceHistory
(IModule module, IWorkflowInstance workflowInstance) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEvent
(IResourceHistory.IEvent event) Allows to add a custom event the the history of the document.void
addEvent
(String name, String source, IUser fulfiller, IUser addressee, String description, String doneBy) Allows to create and add a custom event.void
addSnapshot
(IResourceHistory.ISnapshot snapshot) Allows to add a snapshot to a document.void
addSnapshot
(String description, IUser fulfiller) Allows to create a snapshot and add it to a document.Collection
<? extends IResourceHistory.IEvent> Gets the list ofIResourceHistory.IEvent
objects.Collection
<? extends IResourceHistory.ISnapshot> Gets the list of snapshots.Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
-
Field Details
-
workflowInstance
protected com.axemble.vdp.workflow.domain.WorkflowInstance workflowInstance
-
-
Constructor Details
-
ProcessResourceHistory
-
-
Method Details
-
addEvent
public void addEvent(String name, String source, IUser fulfiller, IUser addressee, String description, String doneBy) Description copied from interface:IResourceHistory
Allows to create and add a custom event.- Specified by:
addEvent
in interfaceIResourceHistory
- Parameters:
name
- The system name of the performed action.source
- The system name of the current task.fulfiller
- The person who performed the action.addressee
- The person for whom the action was performed.description
- The comment of the fulfiller.doneBy
- The role of the fulfiller.
-
addEvent
Description copied from interface:IResourceHistory
Allows to add a custom event the the history of the document.- Specified by:
addEvent
in interfaceIResourceHistory
- Parameters:
event
- TheIResourceHistory.IEvent
object to add.
-
getEvents
Description copied from interface:IResourceHistory
Gets the list ofIResourceHistory.IEvent
objects.- Specified by:
getEvents
in interfaceIResourceHistory
- Returns:
- A java.util.Collection of
IResourceHistory.IEvent
objects.
-
addSnapshot
Description copied from interface:IResourceHistory
Allows to add a snapshot to a document.- Specified by:
addSnapshot
in interfaceIResourceHistory
- Parameters:
snapshot
- TheIResourceHistory.ISnapshot
object to add.
-
addSnapshot
Description copied from interface:IResourceHistory
Allows to create a snapshot and add it to a document.- Specified by:
addSnapshot
in interfaceIResourceHistory
- Parameters:
description
- The description of the snapshot.fulfiller
- The person who create the snapshot.
-
getSnapshots
Description copied from interface:IResourceHistory
Gets the list of snapshots.- Specified by:
getSnapshots
in interfaceIResourceHistory
- Returns:
- A java.util.Collection of
IResourceHistory.ISnapshot
objects.
-