Package com.axemble.vdoc.sdk.interfaces
Interface ITask
- All Superinterfaces:
IConnectorParentContextSupport
,IDelegationSupport
,IElement
,ILocalizationScope
,IProtocolSupport
,ISearchSupport
,Serializable
- All Known Subinterfaces:
IActionTask
,IApplicationTask
,IDecisionTask
,IManualTask
public interface ITask
extends IElement, ISearchSupport, IDelegationSupport, ILocalizationScope, IConnectorParentContextSupport
This class represents the definition of a class.
- Since:
- v1.0
- Version:
- 1.0, 15/04/2008
- Author:
- vlygeros
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Defines the treatment available types. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves an action by its name.Collection
<? extends IAction> Retrieves a the actions of a task.long
getDelay()
Gets the available delay to execute the task.Retrieves theIAction
to execute if late.getForm()
Gets theIForm
associated with the task.getLabel()
Gets the label of the task.Gets the label of the task.getMailForm
(int type) Gets theIMailForm
associated with the task.getName()
Gets the system name of the task.Gets the associatedIOperatorRole
if the task is manual.getRole()
Deprecated.use getOperatorRole() method instead.Gets the frequency to send a warning emailRetrieves the workflow of the task.boolean
Checks if the current task allows abort operation.boolean
Checks if the current task allows delegation operation.boolean
Checks if the current task allows remind operation.void
setDelay
(long delay) Sets the delay of the task.void
setSendWarningFrequency
(String frequency) Sets the frequency to send a warning emailMethods inherited from interface com.axemble.vdoc.sdk.supports.IConnectorParentContextSupport
getParentContext
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, save
Methods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Method Details
-
getName
String getName()Gets the system name of the task.- Returns:
- A java.lang.String value.
-
getLabel
String getLabel()Gets the label of the task.- Returns:
- A java.lang.String value.
-
getLabel
Gets the label of the task.- Returns:
- A java.lang.String value.
-
getDescription
String getDescription()- Returns:
- The description of the task
-
getSendWarningFrequency
String getSendWarningFrequency()Gets the frequency to send a warning email- Returns:
- The frequency.
-
setSendWarningFrequency
Sets the frequency to send a warning email- Parameters:
frequency
- The frequency (DAY, MONDAY, TUESDAY, ...).
-
getDelay
long getDelay()Gets the available delay to execute the task.- Returns:
- The delay in seconds.
-
setDelay
void setDelay(long delay) Sets the delay of the task.- Parameters:
delay
- The delay in seconds.
-
getDelayAction
IAction getDelayAction()Retrieves theIAction
to execute if late.- Returns:
- A
IAction
object.
-
getAction
Retrieves an action by its name.- Parameters:
name
- The system name of the action.- Returns:
- A
IAction
object.
-
getActions
Collection<? extends IAction> getActions()Retrieves a the actions of a task.- Returns:
- A collection of
IAction
objects.
-
getWorkflow
IWorkflow getWorkflow()Retrieves the workflow of the task.- Returns:
- A
IWorkflow
object.
-
getRole
Deprecated.use getOperatorRole() method instead.Gets the associatedIOperatorRole
if the task is manual.- Returns:
- A
IRole
object.
-
getOperatorRole
IOperatorRole getOperatorRole()Gets the associatedIOperatorRole
if the task is manual.- Returns:
- A
IOperatorRole
object.
-
getForm
IForm getForm()Gets theIForm
associated with the task.- Returns:
- A
IForm
object.
-
getMailForm
Gets theIMailForm
associated with the task.- Parameters:
type
- The type of the mail form.- Returns:
- A
IMailForm
object.
-
isAbortAllowed
boolean isAbortAllowed()Checks if the current task allows abort operation.- Returns:
- true if the task allows abort operation, false otherwise.
-
isReminderAllowed
boolean isReminderAllowed()Checks if the current task allows remind operation.- Returns:
- true if the task allows remind operation, false otherwise.
-
isDelegationAllowed
boolean isDelegationAllowed()Checks if the current task allows delegation operation.- Returns:
- true if the task allows delegation operation, false otherwise.
-