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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDefines the treatment available types. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves an action by its name.Collection<? extends IAction> Retrieves a the actions of a task.longgetDelay()Gets the available delay to execute the task.Retrieves theIActionto execute if late.getForm()Gets theIFormassociated with the task.getLabel()Gets the label of the task.Gets the label of the task.getMailForm(int type) Gets theIMailFormassociated with the task.getName()Gets the system name of the task.Gets the associatedIOperatorRoleif the task is manual.getRole()Deprecated.use getOperatorRole() method instead.Gets the frequency to send a warning emailRetrieves the workflow of the task.booleanChecks if the current task allows abort operation.booleanChecks if the current task allows delegation operation.booleanChecks if the current task allows remind operation.voidsetDelay(long delay) Sets the delay of the task.voidsetSendWarningFrequency(String frequency) Sets the frequency to send a warning emailMethods inherited from interface com.axemble.vdoc.sdk.supports.IConnectorParentContextSupport
getParentContextMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods 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 theIActionto execute if late.- Returns:
- A
IActionobject.
-
getAction
Retrieves an action by its name.- Parameters:
name- The system name of the action.- Returns:
- A
IActionobject.
-
getActions
Collection<? extends IAction> getActions()Retrieves a the actions of a task.- Returns:
- A collection of
IActionobjects.
-
getWorkflow
IWorkflow getWorkflow()Retrieves the workflow of the task.- Returns:
- A
IWorkflowobject.
-
getRole
Deprecated.use getOperatorRole() method instead.Gets the associatedIOperatorRoleif the task is manual.- Returns:
- A
IRoleobject.
-
getOperatorRole
IOperatorRole getOperatorRole()Gets the associatedIOperatorRoleif the task is manual.- Returns:
- A
IOperatorRoleobject.
-
getForm
IForm getForm()Gets theIFormassociated with the task.- Returns:
- A
IFormobject.
-
getMailForm
Gets theIMailFormassociated with the task.- Parameters:
type- The type of the mail form.- Returns:
- A
IMailFormobject.
-
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.
-