Package com.axemble.vdoc.sdk.interfaces
Interface IWorkflowInstance
- All Superinterfaces:
IDelegationSupport
,IDeletionSupport
,IElement
,ILocalizationScope
,ILockSupport
,IProtocolSupport
,IResource
,ISearchSupport
,ISecuritySupport
,IUriSupport
,Serializable
- All Known Implementing Classes:
ProcessWorkflowInstance
public interface IWorkflowInstance
extends IResource, IDeletionSupport, ISearchSupport, IUriSupport, IDelegationSupport, ILocalizationScope, ILockSupport
This class represents a process document.
- Since:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Available status for the workflow instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
addLinkedWorkflowInstance
(String propertyName, IWorkflowInstance linkedWorkflowInstance) Allows to add a workflow instance object to a linked table field.boolean
addLinkedWorkflowInstance
(String propertyName, IWorkflowInstance linkedWorkflowInstance, boolean withSubscription) Allows to add a workflow instance object to a linked table field.boolean
addLinkedWorkflowInstances
(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Allows to add an association between a workflow instance object and a linked table field.boolean
addLinkedWorkflowInstances
(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances, boolean withSubscription) Allows to add an association between a workflow instance object and a linked table field.void
deleteLinkedWorkflowInstance
(String propertyName, IWorkflowInstance linkedWorkflowInstance) Allows to remove the association between a workflow instance object and a linked table field.void
deleteLinkedWorkflowInstances
(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Allows to remove the associations between a collection ofIWorkflowInstance
objects and a linked table field.Gets the catalog.getCurrentTaskInstance
(IContext context) Gets the current task instance.Collection
<? extends IWorkflowInstance> In embedded workflow, return all embedded workflow instancesGets the ended date.Collection
<? extends IWorkflowInstance> getLinkedWorkflowInstances
(String propertyName) Retrieves all the linked workflow instance of a linked table field.In embedded workflow, return the parent workflow instanceGets the parent instance.Gets the parent instance with the rights of its creator.int
Gets the system statusGets the associated workflow.void
resume()
Deprecated.: use unlock() method instead.void
suspend()
Deprecated.: use lock() method instead.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
delete
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.ILockSupport
isLockBySDK, isLockBySDK, isLocked, isLocked, lock, lockedBy, lockedBy, unlock
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IResource
addLinkedResource, addLinkedResources, allowEvents, createLinkedResource, deleteLinkedResource, deleteLinkedResources, denyEvents, exists, getCreatedBy, getCreatedDate, getDefinition, getHistory, getLinkedResources, getList, getModifiedBy, getModifiedDate, getName, getText, getValue, refresh, refresh, save, save, setCreatedBy, setCreatedDate, setList, setModifiedBy, setModifiedDate, setValue, setValueNoEvents
Methods inherited from interface com.axemble.vdoc.sdk.supports.IUriSupport
getURI
-
Method Details
-
getEndedDate
Date getEndedDate()Gets the ended date.- Returns:
- a
Date
object.
-
getWorkflow
IWorkflow getWorkflow()Gets the associated workflow.- Returns:
- a
IWorkflow
object.
-
getCatalog
ICatalog getCatalog()Gets the catalog.- Returns:
- a
ICatalog
object.
-
getCurrentTaskInstance
Gets the current task instance.- Parameters:
context
- The execution context.- Returns:
- a
ITaskInstance
object.
-
getParentInstance
IWorkflowInstance getParentInstance()Gets the parent instance.- Returns:
- a
IWorkflowInstance
object.
-
getParentInstanceInFormulaContext
IWorkflowInstance getParentInstanceInFormulaContext()Gets the parent instance with the rights of its creator. Is only used in the formulas- Returns:
- a
IWorkflowInstance
object.
-
addLinkedWorkflowInstance
Allows to add a workflow instance object to a linked table field.- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstance
- TheIWorkflowInstance
to add.- Returns:
- true if successful,
invalid @link
{@link false
-
addLinkedWorkflowInstances
boolean addLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Allows to add an association between a workflow instance object and a linked table field.- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstances
- A collection ofIWorkflowInstance
objects to add.- Returns:
- true if successful,
invalid @link
{@link false
-
addLinkedWorkflowInstance
boolean addLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance, boolean withSubscription) Allows to add a workflow instance object to a linked table field.- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstance
- TheIWorkflowInstance
to add.withSubscription
-invalid @link
{@link true
- Returns:
- true if successful,
invalid @link
{@link false
-
addLinkedWorkflowInstances
boolean addLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances, boolean withSubscription) Allows to add an association between a workflow instance object and a linked table field.- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstances
- A collection ofIWorkflowInstance
objects to add.withSubscription
-invalid @link
{@link true
- Returns:
- true if successful,
invalid @link
{@link false
-
getLinkedWorkflowInstances
Retrieves all the linked workflow instance of a linked table field.- Parameters:
propertyName
- The system property of the field.- Returns:
- a collection of
IWorkflowInstance
objects.
-
deleteLinkedWorkflowInstance
Allows to remove the association between a workflow instance object and a linked table field. Warning, unlinking a child with a strong link with the parent document will delete it permanently.- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstance
- TheIWorkflowInstance
to remove.
-
deleteLinkedWorkflowInstances
void deleteLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Allows to remove the associations between a collection ofIWorkflowInstance
objects and a linked table field. Warning, unlinking a child with a strong link with the parent document will delete it permanently.- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstances
- The collection ofIWorkflowInstance
objects.
-
suspend
Deprecated.: use lock() method instead.Denies any cross-transition actions. -
resume
Deprecated.: use unlock() method instead.Allows cross-transition actions. -
getStatus
int getStatus()Gets the system status- Returns:
- Returns one of the
IWorkflowInstance.IStatus
values.
-
getParentContainerWorkflowInstance
IWorkflowInstance getParentContainerWorkflowInstance()In embedded workflow, return the parent workflow instance- Returns:
- the parent workflowinstance that started the workflow
-
getEmbeddedWorkflowInstances
Collection<? extends IWorkflowInstance> getEmbeddedWorkflowInstances()In embedded workflow, return all embedded workflow instances- Returns:
- all embedded workflow instances
-