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 SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAvailable status for the workflow instance.
- 
Method SummaryModifier 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.IDeletionSupportdeleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElementgetId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.ILockSupportisLockBySDK, isLockBySDK, isLocked, isLocked, lock, lockedBy, lockedBy, unlockMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupportgetProtocolURI, getProtocolURIMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IResourceaddLinkedResource, 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.IUriSupportgetURI
- 
Method Details- 
getEndedDateDate getEndedDate()Gets the ended date.- Returns:
- a Dateobject.
 
- 
getWorkflowIWorkflow getWorkflow()Gets the associated workflow.- Returns:
- a IWorkflowobject.
 
- 
getCatalogICatalog getCatalog()Gets the catalog.- Returns:
- a ICatalogobject.
 
- 
getCurrentTaskInstanceGets the current task instance.- Parameters:
- context- The execution context.
- Returns:
- a ITaskInstanceobject.
 
- 
getParentInstanceIWorkflowInstance getParentInstance()Gets the parent instance.- Returns:
- a IWorkflowInstanceobject.
 
- 
getParentInstanceInFormulaContextIWorkflowInstance getParentInstanceInFormulaContext()Gets the parent instance with the rights of its creator. Is only used in the formulas- Returns:
- a IWorkflowInstanceobject.
 
- 
addLinkedWorkflowInstanceAllows to add a workflow instance object to a linked table field.- Parameters:
- propertyName- The system property of the field.
- linkedWorkflowInstance- The- IWorkflowInstanceto add.
- Returns:
- true if successful, 
} otherwise.invalid @link{@link false
 
- 
addLinkedWorkflowInstancesboolean 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 of- IWorkflowInstanceobjects to add.
- Returns:
- true if successful, 
} otherwise.invalid @link{@link false
 
- 
addLinkedWorkflowInstanceboolean 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- The- IWorkflowInstanceto add.
- withSubscription-} to apply inter-resources subscription rules.- invalid @link- {@link true
- Returns:
- true if successful, 
} otherwise.invalid @link{@link false
 
- 
addLinkedWorkflowInstancesboolean 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 of- IWorkflowInstanceobjects to add.
- withSubscription-} to apply inter-resources subscription rules.- invalid @link- {@link true
- Returns:
- true if successful, 
} otherwise.invalid @link{@link false
 
- 
getLinkedWorkflowInstancesRetrieves all the linked workflow instance of a linked table field.- Parameters:
- propertyName- The system property of the field.
- Returns:
- a collection of  IWorkflowInstanceobjects.
 
- 
deleteLinkedWorkflowInstanceAllows 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- The- IWorkflowInstanceto remove.
 
- 
deleteLinkedWorkflowInstancesvoid 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 of- IWorkflowInstanceobjects.
 
- 
suspendDeprecated.: use lock() method instead.Denies any cross-transition actions.
- 
resumeDeprecated.: use unlock() method instead.Allows cross-transition actions.
- 
getStatusint getStatus()Gets the system status- Returns:
- Returns one of the IWorkflowInstance.IStatusvalues.
 
- 
getParentContainerWorkflowInstanceIWorkflowInstance getParentContainerWorkflowInstance()In embedded workflow, return the parent workflow instance- Returns:
- the parent workflowinstance that started the workflow
 
- 
getEmbeddedWorkflowInstancesCollection<? extends IWorkflowInstance> getEmbeddedWorkflowInstances()In embedded workflow, return all embedded workflow instances- Returns:
- all embedded workflow instances
 
 
-