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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAvailable status for the workflow instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance) Allows to add a workflow instance object to a linked table field.booleanaddLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance, boolean withSubscription) Allows to add a workflow instance object to a linked table field.booleanaddLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Allows to add an association between a workflow instance object and a linked table field.booleanaddLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances, boolean withSubscription) Allows to add an association between a workflow instance object and a linked table field.voiddeleteLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance) Allows to remove the association between a workflow instance object and a linked table field.voiddeleteLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Allows to remove the associations between a collection ofIWorkflowInstanceobjects 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.intGets the system statusGets the associated workflow.voidresume()Deprecated.: use unlock() method instead.voidsuspend()Deprecated.: use lock() method instead.Methods inherited from interface com.axemble.vdoc.sdk.supports.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.ILockSupport
isLockBySDK, isLockBySDK, isLocked, isLocked, lock, lockedBy, lockedBy, unlockMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURIMethods 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, setValueNoEventsMethods inherited from interface com.axemble.vdoc.sdk.supports.IUriSupport
getURI
-
Method Details
-
getEndedDate
Date getEndedDate()Gets the ended date.- Returns:
- a
Dateobject.
-
getWorkflow
IWorkflow getWorkflow()Gets the associated workflow.- Returns:
- a
IWorkflowobject.
-
getCatalog
ICatalog getCatalog()Gets the catalog.- Returns:
- a
ICatalogobject.
-
getCurrentTaskInstance
Gets the current task instance.- Parameters:
context- The execution context.- Returns:
- a
ITaskInstanceobject.
-
getParentInstance
IWorkflowInstance getParentInstance()Gets the parent instance.- Returns:
- a
IWorkflowInstanceobject.
-
getParentInstanceInFormulaContext
IWorkflowInstance getParentInstanceInFormulaContext()Gets the parent instance with the rights of its creator. Is only used in the formulas- Returns:
- a
IWorkflowInstanceobject.
-
addLinkedWorkflowInstance
Allows to add a workflow instance object to a linked table field.- Parameters:
propertyName- The system property of the field.linkedWorkflowInstance- TheIWorkflowInstanceto add.- Returns:
- true if successful,
} otherwise.
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 ofIWorkflowInstanceobjects to add.- Returns:
- true if successful,
} otherwise.
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- TheIWorkflowInstanceto add.withSubscription-} to apply inter-resources subscription rules.invalid @link
{@link true- Returns:
- true if successful,
} otherwise.
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 ofIWorkflowInstanceobjects to add.withSubscription-} to apply inter-resources subscription rules.invalid @link
{@link true- Returns:
- true if successful,
} otherwise.
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
IWorkflowInstanceobjects.
-
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- TheIWorkflowInstanceto remove.
-
deleteLinkedWorkflowInstances
void deleteLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Allows to remove the associations between a collection ofIWorkflowInstanceobjects 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 ofIWorkflowInstanceobjects.
-
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.IStatusvalues.
-
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
-