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 Summary
Nested classes/interfaces inherited from interface com.axemble.vdoc.sdk.interfaces.IWorkflowInstance
IWorkflowInstance.IStatus -
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.impl.ProcessResource
documentFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProcessWorkflowInstance(IModule module, com.axemble.vdp.ui.core.document.CoreDocument document) -
Method Summary
Modifier 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.ProcessResource
addLinkedResource, 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.ProcessElement
getPath, getProtocolURI, getProtocolURI, getWorkflowModuleMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModuleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, getDefinition, getHistory, getLinkedResources, getList, getModifiedDate, getName, getText, getValue, refresh, refresh, save, save, setList, setModifiedDate, setValue, setValueNoEventsMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IWorkflowInstance
getCatalog
-
Constructor Details
-
ProcessWorkflowInstance
protected ProcessWorkflowInstance(IModule module, com.axemble.vdp.ui.core.document.CoreDocument document)
-
-
Method Details
-
getId
Description copied from interface:IElementGets the identifier object.- Specified by:
getIdin interfaceIElement- Overrides:
getIdin classProcessResource- Returns:
- a
IStorageKeyobject.
-
getNativeObject
Description copied from interface:IElementGets the native object underneath.- Specified by:
getNativeObjectin interfaceIElement- Overrides:
getNativeObjectin classProcessResource- Returns:
- an object.
-
getNativeDomain
public com.axemble.vdoc.core.domain.BaseDomain getNativeDomain()- Specified by:
getNativeDomainin interfaceSDKWrapper- Overrides:
getNativeDomainin classProcessResource
-
getURI
Description copied from interface:IUriSupportGets the URI of the object supporting this interface- Specified by:
getURIin interfaceIUriSupport- Returns:
- A String object.
-
getCreatedDate
Description copied from interface:IResourceGets the created date.- Specified by:
getCreatedDatein interfaceIResource- Overrides:
getCreatedDatein classProcessResource- Returns:
- a
Dateobject.
-
setCreatedDate
Description copied from interface:IResourceSets the created date.- Specified by:
setCreatedDatein interfaceIResource- Overrides:
setCreatedDatein classProcessResource- Parameters:
date- TheDateto set.
-
getEndedDate
Description copied from interface:IWorkflowInstanceGets the ended date.- Specified by:
getEndedDatein interfaceIWorkflowInstance- Returns:
- a
Dateobject.
-
setEndedDate
-
setCreatedBy
Description copied from interface:IResourceSets the creator of the resource. Can only be set if the resource has not been created yet- Specified by:
setCreatedByin interfaceIResource- Overrides:
setCreatedByin classProcessResource- Parameters:
user- The creatorIUserof the resource.
-
getCreatedBy
Description copied from interface:IResourceGets the creator of the resource.- Specified by:
getCreatedByin interfaceIResource- Overrides:
getCreatedByin classProcessResource- Returns:
- a
IUserobject.
-
setModifiedBy
Description copied from interface:IResourceSets last user who modified the resource.- Specified by:
setModifiedByin interfaceIResource- Overrides:
setModifiedByin classProcessResource- Parameters:
user- The lastIUserwho modified the resource.
-
getModifiedBy
Description copied from interface:IResourceGets the last user who modified the resource.- Specified by:
getModifiedByin interfaceIResource- Overrides:
getModifiedByin classProcessResource- Returns:
- a
IUserobject.
-
getWorkflow
Description copied from interface:IWorkflowInstanceGets the associated workflow.- Specified by:
getWorkflowin interfaceIWorkflowInstance- Returns:
- a
IWorkflowobject.
-
getCurrentTaskInstance
Description copied from interface:IWorkflowInstanceGets the current task instance.- Specified by:
getCurrentTaskInstancein interfaceIWorkflowInstance- Parameters:
context- The execution context.- Returns:
- a
ITaskInstanceobject.
-
getParentInstance
Description copied from interface:IWorkflowInstanceGets the parent instance.- Specified by:
getParentInstancein interfaceIWorkflowInstance- Returns:
- a
IWorkflowInstanceobject.
-
getParentInstanceInFormulaContext
Description copied from interface:IWorkflowInstanceGets the parent instance with the rights of its creator. Is only used in the formulas- Specified by:
getParentInstanceInFormulaContextin interfaceIWorkflowInstance- Returns:
- a
IWorkflowInstanceobject.
-
delete
Description copied from interface:IDeletionSupportDeletes theIElementobject.- Specified by:
deletein interfaceIDeletionSupport- Overrides:
deletein classProcessResource- Parameters:
context- The Execution context.
-
addLinkedWorkflowInstance
Description copied from interface:IWorkflowInstanceAllows to add a workflow instance object to a linked table field.- Specified by:
addLinkedWorkflowInstancein interfaceIWorkflowInstance- Parameters:
propertyName- The system property of the field.workflowInstance- TheIWorkflowInstanceto add.- Returns:
- true if successful,
} otherwise.
invalid @link
{@link false
-
addLinkedWorkflowInstances
public 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 interfaceIWorkflowInstance- Parameters:
propertyName- The system property of the field.linkedWorkflowInstances- A collection ofIWorkflowInstanceobjects to add.- Returns:
- true if successful,
} otherwise.
invalid @link
{@link false
-
addLinkedWorkflowInstance
public 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 interfaceIWorkflowInstance- 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
public 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 interfaceIWorkflowInstance- 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
Description copied from interface:IWorkflowInstanceRetrieves all the linked workflow instance of a linked table field.- Specified by:
getLinkedWorkflowInstancesin interfaceIWorkflowInstance- Parameters:
propertyName- The system property of the field.- Returns:
- a collection of
IWorkflowInstanceobjects.
-
deleteLinkedWorkflowInstance
public 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 interfaceIWorkflowInstance- Parameters:
propertyName- The system property of the field.linkedWorkflowInstance- TheIWorkflowInstanceto remove.
-
deleteLinkedWorkflowInstances
public 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 interfaceIWorkflowInstance- Parameters:
propertyName- The system property of the field.linkedWorkflowInstances- The collection ofIWorkflowInstanceobjects.
-
resume
public void resume()Description copied from interface:IWorkflowInstanceAllows cross-transition actions.- Specified by:
resumein interfaceIWorkflowInstance
-
suspend
public void suspend()Description copied from interface:IWorkflowInstanceDenies any cross-transition actions.- Specified by:
suspendin interfaceIWorkflowInstance
-
getStatus
public int getStatus()Description copied from interface:IWorkflowInstanceGets the system status- Specified by:
getStatusin interfaceIWorkflowInstance- Returns:
- Returns one of the
IWorkflowInstance.IStatusvalues.
-
getParentContainerWorkflowInstance
Description copied from interface:IWorkflowInstanceIn embedded workflow, return the parent workflow instance- Specified by:
getParentContainerWorkflowInstancein interfaceIWorkflowInstance- Returns:
- the parent workflowinstance that started the workflow
-
getEmbeddedWorkflowInstances
Description copied from interface:IWorkflowInstanceIn embedded workflow, return all embedded workflow instances- Specified by:
getEmbeddedWorkflowInstancesin interfaceIWorkflowInstance- Returns:
- all embedded workflow instances
-
lock
Description copied from interface:ILockSupportLock a resource- Specified by:
lockin interfaceILockSupport- Parameters:
context- The execution context.delay- lock delay in second
-
unlock
Description copied from interface:ILockSupportUnlock a resource- Specified by:
unlockin interfaceILockSupport- Parameters:
context- The execution context.
-
isLocked
Description copied from interface:ILockSupportIs resource locked- Specified by:
isLockedin interfaceILockSupport- Parameters:
context- The execution context.- Returns:
- true if the resource has been locked, false otherwise.
-
lockedBy
Description copied from interface:ILockSupportRetrieve the users who locked the resource.- Specified by:
lockedByin interfaceILockSupport- Parameters:
context- The execution context.- Returns:
- a list of
IUserusers.
-
isLockBySDK
Description copied from interface:ILockSupportIs resource SDK by lock- Specified by:
isLockBySDKin interfaceILockSupport- Parameters:
context- The execution context.- Returns:
- true if the resource has been locked by SDK, false otherwise.
-
isLocked
Description copied from interface:ILockSupportIs resource locked ( try to unlock resource before ).- Specified by:
isLockedin interfaceILockSupport- Parameters:
context- The execution context.cleanSessionLock- try to unlock resource before- Returns:
- true if the resource has been locked, false otherwise.
-
lockedBy
Description copied from interface:ILockSupportRetrieve the users who locked the resource ( try to unlock resource before).- Specified by:
lockedByin interfaceILockSupport- Parameters:
context- The execution context.cleanSessionLock- try to unlock resource before- Returns:
- a list of
IUserusers.
-
isLockBySDK
Description copied from interface:ILockSupportIs resource SDK by lock ( try to unlock resource before).- Specified by:
isLockBySDKin interfaceILockSupport- Parameters:
context- The execution context.cleanSessionLock- try to unlock resource before- Returns:
- true if the resource has been locked by SDK, false otherwise.
-