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
document
Fields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProcessWorkflowInstance
(IModule module, com.axemble.vdp.ui.core.document.CoreDocument document) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addLinkedWorkflowInstance
(String propertyName, IWorkflowInstance workflowInstance) 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
Deletes theIElement
object.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 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.BaseDomain
Gets 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.int
Gets the system statusgetURI()
Gets the URI of the object supporting this interfaceGets the associated workflow.boolean
isLockBySDK
(IContext context) Is resource SDK by lockboolean
isLockBySDK
(IContext context, boolean cleanSessionLock) Is resource SDK by lock ( try to unlock resource before).boolean
Is resource lockedboolean
Is resource locked ( try to unlock resource before ).void
Lock a resourceRetrieve the users who locked the resource.Retrieve the users who locked the resource ( try to unlock resource before).void
resume()
Allows cross-transition actions.void
setCreatedBy
(IUser user) Sets the creator of the resource.void
setCreatedDate
(Date date) Sets the created date.void
setEndedDate
(Date date) void
setModifiedBy
(IUser user) Sets last user who modified the resource.void
suspend()
Denies any cross-transition actions.void
Unlock 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, setValueNoEvents
Methods inherited from class com.axemble.vdoc.sdk.impl.ProcessElement
getPath, getProtocolURI, getProtocolURI, getWorkflowModule
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, getDefinition, getHistory, getLinkedResources, getList, getModifiedDate, getName, getText, getValue, refresh, refresh, save, save, setList, setModifiedDate, setValue, setValueNoEvents
Methods 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:IElement
Gets the identifier object.- Specified by:
getId
in interfaceIElement
- Overrides:
getId
in classProcessResource
- Returns:
- a
IStorageKey
object.
-
getNativeObject
Description copied from interface:IElement
Gets the native object underneath.- Specified by:
getNativeObject
in interfaceIElement
- Overrides:
getNativeObject
in classProcessResource
- Returns:
- an object.
-
getNativeDomain
public com.axemble.vdoc.core.domain.BaseDomain getNativeDomain()- Specified by:
getNativeDomain
in interfaceSDKWrapper
- Overrides:
getNativeDomain
in classProcessResource
-
getURI
Description copied from interface:IUriSupport
Gets the URI of the object supporting this interface- Specified by:
getURI
in interfaceIUriSupport
- Returns:
- A String object.
-
getCreatedDate
Description copied from interface:IResource
Gets the created date.- Specified by:
getCreatedDate
in interfaceIResource
- Overrides:
getCreatedDate
in classProcessResource
- Returns:
- a
Date
object.
-
setCreatedDate
Description copied from interface:IResource
Sets the created date.- Specified by:
setCreatedDate
in interfaceIResource
- Overrides:
setCreatedDate
in classProcessResource
- Parameters:
date
- TheDate
to set.
-
getEndedDate
Description copied from interface:IWorkflowInstance
Gets the ended date.- Specified by:
getEndedDate
in interfaceIWorkflowInstance
- Returns:
- a
Date
object.
-
setEndedDate
-
setCreatedBy
Description copied from interface:IResource
Sets the creator of the resource. Can only be set if the resource has not been created yet- Specified by:
setCreatedBy
in interfaceIResource
- Overrides:
setCreatedBy
in classProcessResource
- Parameters:
user
- The creatorIUser
of the resource.
-
getCreatedBy
Description copied from interface:IResource
Gets the creator of the resource.- Specified by:
getCreatedBy
in interfaceIResource
- Overrides:
getCreatedBy
in classProcessResource
- Returns:
- a
IUser
object.
-
setModifiedBy
Description copied from interface:IResource
Sets last user who modified the resource.- Specified by:
setModifiedBy
in interfaceIResource
- Overrides:
setModifiedBy
in classProcessResource
- Parameters:
user
- The lastIUser
who modified the resource.
-
getModifiedBy
Description copied from interface:IResource
Gets the last user who modified the resource.- Specified by:
getModifiedBy
in interfaceIResource
- Overrides:
getModifiedBy
in classProcessResource
- Returns:
- a
IUser
object.
-
getWorkflow
Description copied from interface:IWorkflowInstance
Gets the associated workflow.- Specified by:
getWorkflow
in interfaceIWorkflowInstance
- Returns:
- a
IWorkflow
object.
-
getCurrentTaskInstance
Description copied from interface:IWorkflowInstance
Gets the current task instance.- Specified by:
getCurrentTaskInstance
in interfaceIWorkflowInstance
- Parameters:
context
- The execution context.- Returns:
- a
ITaskInstance
object.
-
getParentInstance
Description copied from interface:IWorkflowInstance
Gets the parent instance.- Specified by:
getParentInstance
in interfaceIWorkflowInstance
- Returns:
- a
IWorkflowInstance
object.
-
getParentInstanceInFormulaContext
Description copied from interface:IWorkflowInstance
Gets the parent instance with the rights of its creator. Is only used in the formulas- Specified by:
getParentInstanceInFormulaContext
in interfaceIWorkflowInstance
- Returns:
- a
IWorkflowInstance
object.
-
delete
Description copied from interface:IDeletionSupport
Deletes theIElement
object.- Specified by:
delete
in interfaceIDeletionSupport
- Overrides:
delete
in classProcessResource
- Parameters:
context
- The Execution context.
-
addLinkedWorkflowInstance
Description copied from interface:IWorkflowInstance
Allows to add a workflow instance object to a linked table field.- Specified by:
addLinkedWorkflowInstance
in interfaceIWorkflowInstance
- Parameters:
propertyName
- The system property of the field.workflowInstance
- TheIWorkflowInstance
to add.- Returns:
- true if successful,
invalid @link
{@link false
-
addLinkedWorkflowInstances
public boolean addLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Description copied from interface:IWorkflowInstance
Allows to add an association between a workflow instance object and a linked table field.- Specified by:
addLinkedWorkflowInstances
in interfaceIWorkflowInstance
- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstances
- A collection ofIWorkflowInstance
objects to add.- Returns:
- true if successful,
invalid @link
{@link false
-
addLinkedWorkflowInstance
public boolean addLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance, boolean withSubscription) Description copied from interface:IWorkflowInstance
Allows to add a workflow instance object to a linked table field.- Specified by:
addLinkedWorkflowInstance
in interfaceIWorkflowInstance
- 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
public boolean addLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances, boolean withSubscription) Description copied from interface:IWorkflowInstance
Allows to add an association between a workflow instance object and a linked table field.- Specified by:
addLinkedWorkflowInstances
in interfaceIWorkflowInstance
- 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
Description copied from interface:IWorkflowInstance
Retrieves all the linked workflow instance of a linked table field.- Specified by:
getLinkedWorkflowInstances
in interfaceIWorkflowInstance
- Parameters:
propertyName
- The system property of the field.- Returns:
- a collection of
IWorkflowInstance
objects.
-
deleteLinkedWorkflowInstance
public void deleteLinkedWorkflowInstance(String propertyName, IWorkflowInstance linkedWorkflowInstance) Description copied from interface:IWorkflowInstance
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.- Specified by:
deleteLinkedWorkflowInstance
in interfaceIWorkflowInstance
- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstance
- TheIWorkflowInstance
to remove.
-
deleteLinkedWorkflowInstances
public void deleteLinkedWorkflowInstances(String propertyName, Collection<? extends IWorkflowInstance> linkedWorkflowInstances) Description copied from interface:IWorkflowInstance
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.- Specified by:
deleteLinkedWorkflowInstances
in interfaceIWorkflowInstance
- Parameters:
propertyName
- The system property of the field.linkedWorkflowInstances
- The collection ofIWorkflowInstance
objects.
-
resume
public void resume()Description copied from interface:IWorkflowInstance
Allows cross-transition actions.- Specified by:
resume
in interfaceIWorkflowInstance
-
suspend
public void suspend()Description copied from interface:IWorkflowInstance
Denies any cross-transition actions.- Specified by:
suspend
in interfaceIWorkflowInstance
-
getStatus
public int getStatus()Description copied from interface:IWorkflowInstance
Gets the system status- Specified by:
getStatus
in interfaceIWorkflowInstance
- Returns:
- Returns one of the
IWorkflowInstance.IStatus
values.
-
getParentContainerWorkflowInstance
Description copied from interface:IWorkflowInstance
In embedded workflow, return the parent workflow instance- Specified by:
getParentContainerWorkflowInstance
in interfaceIWorkflowInstance
- Returns:
- the parent workflowinstance that started the workflow
-
getEmbeddedWorkflowInstances
Description copied from interface:IWorkflowInstance
In embedded workflow, return all embedded workflow instances- Specified by:
getEmbeddedWorkflowInstances
in interfaceIWorkflowInstance
- Returns:
- all embedded workflow instances
-
lock
Description copied from interface:ILockSupport
Lock a resource- Specified by:
lock
in interfaceILockSupport
- Parameters:
context
- The execution context.delay
- lock delay in second
-
unlock
Description copied from interface:ILockSupport
Unlock a resource- Specified by:
unlock
in interfaceILockSupport
- Parameters:
context
- The execution context.
-
isLocked
Description copied from interface:ILockSupport
Is resource locked- Specified by:
isLocked
in interfaceILockSupport
- Parameters:
context
- The execution context.- Returns:
- true if the resource has been locked, false otherwise.
-
lockedBy
Description copied from interface:ILockSupport
Retrieve the users who locked the resource.- Specified by:
lockedBy
in interfaceILockSupport
- Parameters:
context
- The execution context.- Returns:
- a list of
IUser
users.
-
isLockBySDK
Description copied from interface:ILockSupport
Is resource SDK by lock- Specified by:
isLockBySDK
in interfaceILockSupport
- Parameters:
context
- The execution context.- Returns:
- true if the resource has been locked by SDK, false otherwise.
-
isLocked
Description copied from interface:ILockSupport
Is resource locked ( try to unlock resource before ).- Specified by:
isLocked
in 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:ILockSupport
Retrieve the users who locked the resource ( try to unlock resource before).- Specified by:
lockedBy
in interfaceILockSupport
- Parameters:
context
- The execution context.cleanSessionLock
- try to unlock resource before- Returns:
- a list of
IUser
users.
-
isLockBySDK
Description copied from interface:ILockSupport
Is resource SDK by lock ( try to unlock resource before).- Specified by:
isLockBySDK
in interfaceILockSupport
- Parameters:
context
- The execution context.cleanSessionLock
- try to unlock resource before- Returns:
- true if the resource has been locked by SDK, false otherwise.
-