Package org.ametys.plugins.bpm
Interface Workflow
- All Known Implementing Classes:
JCRWorkflow
public interface Workflow
Common interface for a Workflow in the Business Process Management
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of groups allowed to create a process from this workflowGet the list of users allowed to create a process from this workflowGet the workflow descriptiongetOwner()
Get the owner of the workflowRetrieves the attachments root nodegetTitle()
Get the workflow titlegetVariable
(String variableName) Get the value of a variable of the workflowGet the workflow definition linked to this workflowvoid
setAllowedGroups
(GroupIdentity[] allowedGroups) Set the list of groups allowed to create a process from this workflowvoid
setAllowedUsers
(UserIdentity[] allowedUsers) Set the list of users allowed to create a process from this workflowvoid
setDescription
(String description) Set the workflow descriptionvoid
setOwner
(UserIdentity owner) Set the owner of the workflowvoid
Set the workflow titlevoid
setVariable
(String variableName, Object value) Set the value of a variable of the workflowvoid
setWorkflowDefinition
(String workflowDefId) Set the workflow definition linked to this workflow
-
Method Details
-
getTitle
Get the workflow title- Returns:
- The workflow title
- Throws:
AmetysRepositoryException
- If a repository error occurred
-
setTitle
Set the workflow title- Parameters:
title
- The title- Throws:
AmetysRepositoryException
- If a repository error occurred
-
getWorkflowDefinition
Get the workflow definition linked to this workflow- Returns:
- The workflow definition id
- Throws:
AmetysRepositoryException
- If a repository error occurred
-
setWorkflowDefinition
Set the workflow definition linked to this workflow- Parameters:
workflowDefId
- The workflow definition id- Throws:
AmetysRepositoryException
- If a repository error occurred
-
getDescription
Get the workflow description- Returns:
- The description
- Throws:
AmetysRepositoryException
- If a repository error occurred
-
setDescription
Set the workflow description- Parameters:
description
- The description- Throws:
AmetysRepositoryException
- If a repository error occurred
-
getVariable
Get the value of a variable of the workflow- Parameters:
variableName
- The name of the variable to retrieve- Returns:
- The value of the variable
- Throws:
AmetysRepositoryException
- If a repository error occurred
-
setVariable
Set the value of a variable of the workflow- Parameters:
variableName
- The name of the variable to setvalue
- The value to set- Throws:
AmetysRepositoryException
- If a repository error occurred
-
getOwner
Get the owner of the workflow- Returns:
- The owner
- Throws:
AmetysRepositoryException
- If a repository error occurred
-
setOwner
Set the owner of the workflow- Parameters:
owner
- The owner- Throws:
AmetysRepositoryException
- If a repository error occurred
-
getAllowedUsers
Get the list of users allowed to create a process from this workflow- Returns:
- The list of allowed users
- Throws:
AmetysRepositoryException
- If a repository error occurred
-
setAllowedUsers
Set the list of users allowed to create a process from this workflow- Parameters:
allowedUsers
- The list of allowed users- Throws:
AmetysRepositoryException
- If a repository error occurred
-
getAllowedGroups
Get the list of groups allowed to create a process from this workflow- Returns:
- The list of allowed groups
- Throws:
AmetysRepositoryException
- If a repository error occurred
-
setAllowedGroups
Set the list of groups allowed to create a process from this workflow- Parameters:
allowedGroups
- The list of allowed groups- Throws:
AmetysRepositoryException
- If a repository error occurred
-
getRootAttachments
Retrieves the attachments root node- Returns:
- The the attachments root node
- Throws:
AmetysRepositoryException
- if an error occurs.
-