Package com.axemble.vdoc.sdk.modules
Interface IWorkflowModule
- All Superinterfaces:
IBaseWorkflowModule
,IModule
,Remote
- All Known Implementing Classes:
com.axemble.vdoc.sdk.impl.ProcessWorkflowModule
,ReportProcessWorkflowModule
,WorkflowModuleImpl
The IWorkflowModule interface is the main entry point from where most of the methods to manipulate the full set of work-flow document
objects are made available.
Code sample :
// creation of a workflow module object
IWorkflowModule workflowModule = Modules.getWorkflowModule();
try
{
}
finally
{
// uninitialize the module
Modules.releaseModule(workflowModule);
}
- Author:
- vlygeros
-
Method Summary
Modifier and TypeMethodDescriptiongetController
(IResource resource) Gets the resource controller object.com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory
Gets access to all available definitions.getListLabel
(ICatalog catalog, String listName, String key, String language) get translated value of a listgetResourceController
(IResource resource) Gets the resource controller object.boolean
isLockBySDK
(IContext context, IWorkflowInstance workflowInstance) Checks if a specified workflow instance is locked by the SDKboolean
isLocked
(IContext context, IWorkflowInstance workflowInstance) Checks if a specified workflow instance is lockedvoid
lock
(IContext context, IWorkflowInstance workflowInstance, int delay) Allows to lock workflow instance.lockedBy
(IContext context, IWorkflowInstance workflowInstance) Retrieve the users who locked the workflow instance.void
unlock
(IContext context, IWorkflowInstance workflowInstance) Allows to unlock workflow instance.Methods inherited from interface com.axemble.vdoc.sdk.modules.IBaseWorkflowModule
abort, addAttachment, addAttachment, addAttachment, addAttachment, addChild, addMember, buildMailMessage, buildMailMessage, canDeleteDiscussionMessage, canModifyDiscussionMessage, createCatalog, createCatalog, createDiscussionMessage, createDynamicLocalizationsWrapper, createGenericResource, createLinkedResource, createListOption, createOperatorRole, createProfile, createRole, createStorageResource, createStorageResource, createWorkflow, createWorkflowContainer, createWorkflowInstance, createWorkflowInstance, deleteDiscussionMessage, end, end, evaluatedHtml, evaluatedHtml, execute, execute, findStorageResourceByReference, generateChrono, generateReference, generateReference, generateReference, generateReference, generateReference, getAbortedTaskInstances, getAction, getAction, getActions, getAgent, getAllCatalogs, getArchivingController, getAttachment, getAttachments, getCatalog, getCatalog, getCatalog, getCatalog, getCatalog, getCatalog, getCatalog, getCatalogs, getCatalogs, getCatalogs, getCatalogs, getCatalogViewTransformer, getConfiguration, getDataSourceReference, getDefaultDataSourceReference, getDelegationController, getDiscussionMessagesOrderByCreationDateDesc, getElementByProtocolURI, getEndedTaskInstances, getExternalElements, getExternalFile, getExternalFolder, getExternalGroup, getExternalLibrary, getExternalLocalization, getExternalOrganization, getExternalUser, getForm, getForm, getForm, getForm, getGenericViewTransformer, getGroupByName, getJdbcReference, getJdbcReferences, getLinkedResources, getList, getList, getLists, getMailForm, getMailForms, getMailForms, getManualTaskInstances, getManualTaskInstancesByStatus, getManualTaskInstancesModifiedSince, getOneTaskInstance, getOperator, getOperator, getOperatorByLogin, getOperatorRole, getOperatorRole, getOperatorRoles, getOperators, getParentInstance, getParentInstance, getProfile, getProfile, getProfiles, getProperties, getProperty, getProperty, getResource, getResource, getResource, getResourceDefinition, getResourceDefinition, getResourceDefinitions, getResources, getResources, getResourceViewTransformer, getRole, getRole, getRoles, getSearchController, getSearchController, getSearchController, getSearchController, getSearchViewTransformer, getSecurityController, getStartedTaskInstances, getSubForm, getTask, getTask, getTask, getTaskInstance, getTaskInstance, getTaskInstance, getTaskInstances, getTaskInstances, getTaskInstanceTransformer, getTaskViewTransformer, getTransformer, getUser, getUser, getUserByLogin, getValue, getView, getView, getView, getViewController, getViewController, getViewController, getViewController, getViewController, getViewController, getViews, getViews, getViews, getWorkflow, getWorkflow, getWorkflow, getWorkflow, getWorkflowContainer, getWorkflowContainer, getWorkflowContainer, getWorkflowContainers, getWorkflowContainerViewTransformer, getWorkflowInstance, getWorkflowInstance, getWorkflowInstance, getWorkflowInstances, getWorkflowInstances, getWorkflowInstances, getWorkflowInstances, getWorkflowInstances, getWorkflows, getWorkflows, getWorkflowViewTransformer, hasDiscussionThread, isMemberOf, isMemberOf, remind, remind, send, send, send, send, send, send, send, send, send, setDynamicLocalizationsWrapperMessageForLanguage, setExternalElements, setExternalFile, setExternalFolder, setExternalGroup, setExternalLibrary, setExternalLocalization, setExternalOrganization, setExternalUser, setList, setValue, updateDiscussionMessage
Methods inherited from interface com.axemble.vdoc.sdk.modules.IModule
beginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, findNativeClass, generateSystemName, getAnonymous, getAnonymousContext, getContext, getContext, getContextByLogin, getElementFromExternalElement, getExternalElement, getExternalElement, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getTranslation, getTranslationForLanguage, getTranslationKey, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitialize
-
Method Details
-
getResourceController
Gets the resource controller object.- Parameters:
resource
- The main resource to work on.- Returns:
- A
IResourceController
object. - Throws:
WorkflowModuleException
- default module exception.
-
getController
Gets the resource controller object.- Parameters:
resource
- The main resource to work on.- Returns:
- A
IResourceController
object. - Throws:
WorkflowModuleException
- default module exception.
-
getDefinitionsFactory
com.axemble.vdoc.sdk.interfaces.ui.definitions.IDefinitionsFactory getDefinitionsFactory()Gets access to all available definitions.- Returns:
IDefinitionsFactory
object.
-
lock
void lock(IContext context, IWorkflowInstance workflowInstance, int delay) throws WorkflowModuleException Allows to lock workflow instance.- Parameters:
context
- TheIContext
execution context.workflowInstance
- TheIWorkflowInstance
object.delay
- lock delay in second- Throws:
WorkflowModuleException
- default module exception.
-
unlock
Allows to unlock workflow instance.- Parameters:
context
- TheIContext
execution context.workflowInstance
- TheIWorkflowInstance
object.- Throws:
WorkflowModuleException
- default module exception.
-
isLocked
boolean isLocked(IContext context, IWorkflowInstance workflowInstance) throws WorkflowModuleException Checks if a specified workflow instance is locked- Parameters:
context
- TheIContext
execution context.workflowInstance
- TheIWorkflowInstance
object.- Returns:
- true if the resource has been locked, false otherwise.
- Throws:
WorkflowModuleException
- default module exception.
-
lockedBy
Collection<IUser> lockedBy(IContext context, IWorkflowInstance workflowInstance) throws WorkflowModuleException Retrieve the users who locked the workflow instance.- Parameters:
context
- TheIContext
execution context.workflowInstance
- TheIWorkflowInstance
object.- Returns:
- a list of
IUser
users. - Throws:
WorkflowModuleException
- default module exception.
-
isLockBySDK
boolean isLockBySDK(IContext context, IWorkflowInstance workflowInstance) throws WorkflowModuleException Checks if a specified workflow instance is locked by the SDK- Parameters:
context
- TheIContext
execution context.workflowInstance
- TheIWorkflowInstance
object.- Returns:
- true if the resource has been locked by SDK, false otherwise.
- Throws:
WorkflowModuleException
- default module exception.
-
getListLabel
String getListLabel(ICatalog catalog, String listName, String key, String language) throws WorkflowModuleException get translated value of a list- Parameters:
catalog
- TheICatalog
link to the listlistName
- list namekey
- key of the valuelanguage
- language- Returns:
- String
- Throws:
WorkflowModuleException
- when list is missing
-