Package com.axemble.vdoc.sdk.impl
Class ProcessWorkflowInstance
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.ProcessElement
com.axemble.vdoc.sdk.impl.ProcessResource
com.axemble.vdoc.sdk.impl.ProcessWorkflowInstance
- All Implemented Interfaces:
- IElement,- ILocalizationScope,- IResource,- IWorkflowInstance,- SDKWrapper,- IDelegationSupport,- IDeletionSupport,- ILockSupport,- IProtocolSupport,- ISearchSupport,- ISecuritySupport,- IUriSupport,- com.axemble.vdp.resource.interfaces.InternalResource,- Serializable
Workflow instance for Process SDK
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.axemble.vdoc.sdk.interfaces.IWorkflowInstanceIWorkflowInstance.IStatus
- 
Field SummaryFields inherited from class com.axemble.vdoc.sdk.impl.ProcessResourcedocumentFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElementmodule
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedProcessWorkflowInstance(IModule module, com.axemble.vdp.ui.core.document.CoreDocument document) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaddLinkedWorkflowInstance(String propertyName, IWorkflowInstance workflowInstance) 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.voidDeletes theIElementobject.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 creator of the resource.Gets the created date.getCurrentTaskInstance(IContext context) Gets the current task instance.Collection<? extends IWorkflowInstance> In embedded workflow, return all embedded workflow instancesGets the ended date.getId()Gets the identifier object.Collection<? extends IWorkflowInstance> getLinkedWorkflowInstances(String propertyName) Retrieves all the linked workflow instance of a linked table field.Gets the last user who modified the resource.com.axemble.vdoc.core.domain.BaseDomainGets the native object underneath.In embedded workflow, return the parent workflow instanceGets the parent instance.Gets the parent instance with the rights of its creator.intGets the system statusgetURI()Gets the URI of the object supporting this interfaceGets the associated workflow.booleanisLockBySDK(IContext context) Is resource SDK by lockbooleanisLockBySDK(IContext context, boolean cleanSessionLock) Is resource SDK by lock ( try to unlock resource before).booleanIs resource lockedbooleanIs resource locked ( try to unlock resource before ).voidLock a resourceRetrieve the users who locked the resource.Retrieve the users who locked the resource ( try to unlock resource before).voidresume()Allows cross-transition actions.voidsetCreatedBy(IUser user) Sets the creator of the resource.voidsetCreatedDate(Date date) Sets the created date.voidsetEndedDate(Date date) voidsetModifiedBy(IUser user) Sets last user who modified the resource.voidsuspend()Denies any cross-transition actions.voidUnlock a resourceMethods inherited from class com.axemble.vdoc.sdk.impl.ProcessResourceaddLinkedResource, addLinkedResources, allowEvents, createLinkedResource, deleteLinkedResource, deleteLinkedResources, denyEvents, exists, getCatalog, getDefinition, getDocument, getFields, getHistory, getLinkedResources, getList, getModifiedDate, getName, getText, getValue, getValues, refresh, refresh, save, save, save, saveNoEvents, setList, setModifiedDate, setValue, setValueNoEventsMethods inherited from class com.axemble.vdoc.sdk.impl.ProcessElementgetPath, getProtocolURI, getProtocolURI, getWorkflowModuleMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElementgetModuleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, getDefinition, getHistory, getLinkedResources, getList, getModifiedDate, getName, getText, getValue, refresh, refresh, save, save, setList, setModifiedDate, setValue, setValueNoEventsMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IWorkflowInstancegetCatalog
- 
Constructor Details- 
ProcessWorkflowInstanceprotected ProcessWorkflowInstance(IModule module, com.axemble.vdp.ui.core.document.CoreDocument document) 
 
- 
- 
Method Details- 
getIdDescription copied from interface:IElementGets the identifier object.- Specified by:
- getIdin interface- IElement
- Overrides:
- getIdin class- ProcessResource
- Returns:
- a IStorageKeyobject.
 
- 
getNativeObjectDescription copied from interface:IElementGets the native object underneath.- Specified by:
- getNativeObjectin interface- IElement
- Overrides:
- getNativeObjectin class- ProcessResource
- Returns:
- an object.
 
- 
getNativeDomainpublic com.axemble.vdoc.core.domain.BaseDomain getNativeDomain()- Specified by:
- getNativeDomainin interface- SDKWrapper
- Overrides:
- getNativeDomainin class- ProcessResource
 
- 
getURIDescription copied from interface:IUriSupportGets the URI of the object supporting this interface- Specified by:
- getURIin interface- IUriSupport
- Returns:
- A String object.
 
- 
getCreatedDateDescription copied from interface:IResourceGets the created date.- Specified by:
- getCreatedDatein interface- IResource
- Overrides:
- getCreatedDatein class- ProcessResource
- Returns:
- a Dateobject.
 
- 
setCreatedDateDescription copied from interface:IResourceSets the created date.- Specified by:
- setCreatedDatein interface- IResource
- Overrides:
- setCreatedDatein class- ProcessResource
- Parameters:
- date- The- Dateto set.
 
- 
getEndedDateDescription copied from interface:IWorkflowInstanceGets the ended date.- Specified by:
- getEndedDatein interface- IWorkflowInstance
- Returns:
- a Dateobject.
 
- 
setEndedDate
- 
setCreatedByDescription copied from interface:IResourceSets the creator of the resource. Can only be set if the resource has not been created yet- Specified by:
- setCreatedByin interface- IResource
- Overrides:
- setCreatedByin class- ProcessResource
- Parameters:
- user- The creator- IUserof the resource.
 
- 
getCreatedByDescription copied from interface:IResourceGets the creator of the resource.- Specified by:
- getCreatedByin interface- IResource
- Overrides:
- getCreatedByin class- ProcessResource
- Returns:
- a IUserobject.
 
- 
setModifiedByDescription copied from interface:IResourceSets last user who modified the resource.- Specified by:
- setModifiedByin interface- IResource
- Overrides:
- setModifiedByin class- ProcessResource
- Parameters:
- user- The last- IUserwho modified the resource.
 
- 
getModifiedByDescription copied from interface:IResourceGets the last user who modified the resource.- Specified by:
- getModifiedByin interface- IResource
- Overrides:
- getModifiedByin class- ProcessResource
- Returns:
- a IUserobject.
 
- 
getWorkflowDescription copied from interface:IWorkflowInstanceGets the associated workflow.- Specified by:
- getWorkflowin interface- IWorkflowInstance
- Returns:
- a IWorkflowobject.
 
- 
getCurrentTaskInstanceDescription copied from interface:IWorkflowInstanceGets the current task instance.- Specified by:
- getCurrentTaskInstancein interface- IWorkflowInstance
- Parameters:
- context- The execution context.
- Returns:
- a ITaskInstanceobject.
 
- 
getParentInstanceDescription copied from interface:IWorkflowInstanceGets the parent instance.- Specified by:
- getParentInstancein interface- IWorkflowInstance
- Returns:
- a IWorkflowInstanceobject.
 
- 
getParentInstanceInFormulaContextDescription copied from interface:IWorkflowInstanceGets the parent instance with the rights of its creator. Is only used in the formulas- Specified by:
- getParentInstanceInFormulaContextin interface- IWorkflowInstance
- Returns:
- a IWorkflowInstanceobject.
 
- 
deleteDescription copied from interface:IDeletionSupportDeletes theIElementobject.- Specified by:
- deletein interface- IDeletionSupport
- Overrides:
- deletein class- ProcessResource
- Parameters:
- context- The Execution context.
 
- 
addLinkedWorkflowInstanceDescription copied from interface:IWorkflowInstanceAllows to add a workflow instance object to a linked table field.- Specified by:
- addLinkedWorkflowInstancein interface- IWorkflowInstance
- Parameters:
- propertyName- The system property of the field.
- workflowInstance- The- IWorkflowInstanceto add.
- Returns:
- true if successful, 
} otherwise.invalid @link{@link false
 
- 
addLinkedWorkflowInstancespublic boolean addLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Description copied from interface:IWorkflowInstanceAllows to add an association between a workflow instance object and a linked table field.- Specified by:
- addLinkedWorkflowInstancesin interface- IWorkflowInstance
- Parameters:
- propertyName- The system property of the field.
- linkedWorkflowInstances- A collection of- IWorkflowInstanceobjects to add.
- Returns:
- true if successful, 
} otherwise.invalid @link{@link false
 
- 
addLinkedWorkflowInstancepublic boolean addLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance, boolean withSubscription) Description copied from interface:IWorkflowInstanceAllows to add a workflow instance object to a linked table field.- Specified by:
- addLinkedWorkflowInstancein interface- IWorkflowInstance
- 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
 
- 
addLinkedWorkflowInstancespublic boolean addLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances, boolean withSubscription) Description copied from interface:IWorkflowInstanceAllows to add an association between a workflow instance object and a linked table field.- Specified by:
- addLinkedWorkflowInstancesin interface- IWorkflowInstance
- 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
 
- 
getLinkedWorkflowInstancesDescription copied from interface:IWorkflowInstanceRetrieves all the linked workflow instance of a linked table field.- Specified by:
- getLinkedWorkflowInstancesin interface- IWorkflowInstance
- Parameters:
- propertyName- The system property of the field.
- Returns:
- a collection of  IWorkflowInstanceobjects.
 
- 
deleteLinkedWorkflowInstancepublic void deleteLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance) Description copied from interface:IWorkflowInstanceAllows 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.- Specified by:
- deleteLinkedWorkflowInstancein interface- IWorkflowInstance
- Parameters:
- propertyName- The system property of the field.
- linkedWorkflowInstance- The- IWorkflowInstanceto remove.
 
- 
deleteLinkedWorkflowInstancespublic void deleteLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Description copied from interface:IWorkflowInstanceAllows 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.- Specified by:
- deleteLinkedWorkflowInstancesin interface- IWorkflowInstance
- Parameters:
- propertyName- The system property of the field.
- linkedWorkflowInstances- The collection of- IWorkflowInstanceobjects.
 
- 
resumepublic void resume()Description copied from interface:IWorkflowInstanceAllows cross-transition actions.- Specified by:
- resumein interface- IWorkflowInstance
 
- 
suspendpublic void suspend()Description copied from interface:IWorkflowInstanceDenies any cross-transition actions.- Specified by:
- suspendin interface- IWorkflowInstance
 
- 
getStatuspublic int getStatus()Description copied from interface:IWorkflowInstanceGets the system status- Specified by:
- getStatusin interface- IWorkflowInstance
- Returns:
- Returns one of the IWorkflowInstance.IStatusvalues.
 
- 
getParentContainerWorkflowInstanceDescription copied from interface:IWorkflowInstanceIn embedded workflow, return the parent workflow instance- Specified by:
- getParentContainerWorkflowInstancein interface- IWorkflowInstance
- Returns:
- the parent workflowinstance that started the workflow
 
- 
getEmbeddedWorkflowInstancesDescription copied from interface:IWorkflowInstanceIn embedded workflow, return all embedded workflow instances- Specified by:
- getEmbeddedWorkflowInstancesin interface- IWorkflowInstance
- Returns:
- all embedded workflow instances
 
- 
lockDescription copied from interface:ILockSupportLock a resource- Specified by:
- lockin interface- ILockSupport
- Parameters:
- context- The execution context.
- delay- lock delay in second
 
- 
unlockDescription copied from interface:ILockSupportUnlock a resource- Specified by:
- unlockin interface- ILockSupport
- Parameters:
- context- The execution context.
 
- 
isLockedDescription copied from interface:ILockSupportIs resource locked- Specified by:
- isLockedin interface- ILockSupport
- Parameters:
- context- The execution context.
- Returns:
- true if the resource has been locked, false otherwise.
 
- 
lockedByDescription copied from interface:ILockSupportRetrieve the users who locked the resource.- Specified by:
- lockedByin interface- ILockSupport
- Parameters:
- context- The execution context.
- Returns:
- a list of IUserusers.
 
- 
isLockBySDKDescription copied from interface:ILockSupportIs resource SDK by lock- Specified by:
- isLockBySDKin interface- ILockSupport
- Parameters:
- context- The execution context.
- Returns:
- true if the resource has been locked by SDK, false otherwise.
 
- 
isLockedDescription copied from interface:ILockSupportIs resource locked ( try to unlock resource before ).- Specified by:
- isLockedin interface- ILockSupport
- Parameters:
- context- The execution context.
- cleanSessionLock- try to unlock resource before
- Returns:
- true if the resource has been locked, false otherwise.
 
- 
lockedByDescription copied from interface:ILockSupportRetrieve the users who locked the resource ( try to unlock resource before).- Specified by:
- lockedByin interface- ILockSupport
- Parameters:
- context- The execution context.
- cleanSessionLock- try to unlock resource before
- Returns:
- a list of IUserusers.
 
- 
isLockBySDKDescription copied from interface:ILockSupportIs resource SDK by lock ( try to unlock resource before).- Specified by:
- isLockBySDKin interface- ILockSupport
- Parameters:
- context- The execution context.
- cleanSessionLock- try to unlock resource before
- Returns:
- true if the resource has been locked by SDK, false otherwise.
 
 
-