Package de.espirit.firstspirit.access
Interface Workflowable
- All Known Subinterfaces:
Allowed,Body,ChannelSourceProvider,Content2,Content2Params,Content2Section,ContentFolder,ContentProducer,ContentStoreRoot,ContentWorkflowable,DataProvider,Dataset,DocLink,DocumentGroup,File,FolderLangSpec,FormatTemplate,FormatTemplateChannel,FormatTemplateContainer,FormatTemplateFolder,FormatTemplates,GCABody,GCAFolder,GCAPage,GCASection,GlobalContentArea,GlobalStoreRoot,GomSourceProvider,IDProvider,LanguageInfo,LinkTemplate,LinkTemplates,MasterTemplate,Media,MediaElement,MediaFolder,MediaStoreRoot,PackagePoolItem,Page,PageFolder,PageGroup,PageLangSpec,PageRef,PageRefFolder,PageStoreRoot,PageTemplate,PageTemplates,Picture,PictureResolution,Previewable,PreviewImageProvider,ProjectProperties,Query,Referenceable,Schema,SchemaContainer,SchemaFolder,Schemes,Script,ScriptContainer,ScriptFolder,Scripts,Section<T>,SectionReference<T>,SectionTemplate,SectionTemplates,SiteStoreFolder,SiteStoreRoot,StartNode,Store,StoreElement,StyleTemplate,StyleTemplateLink,TableFormatTemplate,TableTemplate,Template,TemplateBody,TemplateContainer<T>,TemplateContentProvider,TemplateExtension,TemplateFolder<T>,TemplateProvider<T>,TemplateStoreElement,TemplateStoreRoot,URLProperties,UserProperties,Workflow,WorkflowContainer,WorkflowFolder,Workflows
public interface Workflowable
Implementors are FirstSpirit elements which allows starting a workflow.
- Since:
- 3.1.168
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Deletes this Workflowable.@Nullable ColorgetColor()Get the color of the current state.@Nullable TaskgetTask()Get the possible assignedTaskor null.booleanhasTask()Does this elements has aTaskassigned?voidRemoves a already set Task.voidSet a new color.voidSet the givenTask.
-
Method Details
-
hasTask
Does this elements has aTaskassigned?- Since:
- 3.1.168
- See Also:
-
getTask
@ApiDoc(comment="Get the possible assigned Task or null.", since="3.1.168") @Nullable @Nullable Task getTask()Get the possible assignedTaskor null.- Returns:
- the Task or null
- Since:
- 3.1.168
- See Also:
-
setTask
Set the givenTask. -
removeTask
Removes a already set Task.- Since:
- 3.1.168
-
getColor
@ApiDoc(comment="Get the color of the current state.", since="3.1.168") @Nullable @Nullable Color getColor()Get the color of the current state.- Returns:
- the color or null
- Since:
- 3.1.168
- See Also:
-
setColor
Set a new color.- Since:
- 3.1.168
- See Also:
-
delete
Deletes this Workflowable.- Throws:
LockException- if the direct parent is locked in a different session- Since:
- 4.0.122
-