Interface Workflow
- All Superinterfaces:
Comparable<StoreElement>
,GomSourceProvider
,HistoryProvider
,IDProvider
,PackagePoolItem
,StoreElement
,TemplateStoreElement
,Workflowable
@NonExtendable
public interface Workflow
extends IDProvider, GomSourceProvider, PackagePoolItem, TemplateStoreElement
Definition of a workflow element.
- Since:
- 3.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.storage.HistoryProvider
HistoryProvider.RevisionProvider
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.IDProvider
IDProvider.DependentReleaseType, IDProvider.RevertType, IDProvider.UidType
-
Field Summary
Fields inherited from interface de.espirit.firstspirit.storage.HistoryProvider
ALL_REVISIONS, EVER_SINCE, UNTIL_NOW
Fields inherited from interface de.espirit.firstspirit.access.store.IDProvider
CHANGED, NEVER_RELEASED, RELEASED
Fields inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
BLOCKED, MODIFIED, UNMODIFIED
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated, for removal: This API element is subject to removal in a future version.Get the view script.Get view script executable.long
Returns the workflow id of this workflow.Provides the workflow model as defined for this workflow.boolean
Indicates whether this Workflow is always active (true
).boolean
Indicates this workflow to operate context free.boolean
Returnstrue
if this workflow is an webedit workflow,false
otherwise.void
setAlwaysActive
(boolean alwaysActive) Set always active parameter.void
setContextFree
(boolean contextFree) Defines this workflow to operate context free.void
setViewScript
(String script) Set view script.void
setWebedit
(boolean webedit) Usetrue
to mark this workflow as a webedit workflow.void
setWorkflowModel
(Workflow workflowModel) Defines the workflow model for this workflow.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.GomSourceProvider
getDefaults, getFormDefaults, getGomProvider, getGomSource, setDefaults, setFormDefaults, setGomProvider, setGomSource
Methods inherited from interface de.espirit.firstspirit.storage.HistoryProvider
asRevisionProvider, getHistory, getHistory
Methods inherited from interface de.espirit.firstspirit.access.store.IDProvider
contrastWith, getDisplayName, getId, getInRevision, getLanguageInfo, getLongID, getMeta, getMetaFormData, getParent, getReleasedBy, getReleaseRevision, getReleaseStatus, getRevision, getUid, getUidType, hasMeta, hasUid, isInReleaseStore, isReleased, isReleaseSupported, moveChild, moveChild, release, release, revert, setDisplayName, setMeta, setMetaFormData, setUid
Methods inherited from interface de.espirit.firstspirit.access.store.PackagePoolItem
addToPackage, getChangeState, getPackage, getPackageName, isAddable, isChangeable, isPackageItem, isSubscribedItem, removeFromPackage, setChangeState
Methods inherited from interface de.espirit.firstspirit.access.store.StoreElement
appendChild, appendChildBefore, delete, exportStoreElement, getChildCount, getChildIndex, getChildren, getChildren, getChildren, getChildren, getCreateWorkflowPermission, getDefinedPrincipalPermissions, getEditor, getElementType, getFirstChild, getIncomingReferences, getInheritedPrincipalPermissions, getLastChanged, getName, getNextSibling, getOutgoingReferences, getPermission, getPermission, getPermission, getPreviousSibling, getProject, getReferenceName, getReferences, getStore, getTreePermission, getWorkflowPermission, getWorkflowPermissions, getWriteLock, hasIncomingReferences, hasPermissions, importStoreElement, importStoreElements, inheritWorkflowPermission, isDeleted, isExportSupported, isFolder, isImportSupported, isLocked, isLockedOnServer, isLockSupported, isPermissionSupported, isWorkflowAllowed, isWorkflowSupported, refresh, removeAllWorkflowPermissions, removeChild, removePermission, removePermission, removePermission, removeWorkflowPermission, replaceChild, save, save, save, setInheritWorkflowPermission, setLock, setLock, setPermission, setPermission, setPermission, setWorkflowPermission, setWorkflowPermissions, setWriteLock, toXml, toXml, toXml
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.TemplateStoreElement
getSubRootInStore
Methods inherited from interface de.espirit.firstspirit.access.Workflowable
getColor, getTask, hasTask, removeTask, setColor, setTask
-
Field Details
-
UID_TYPE
The workflow's UID type.- Since:
- 4.1.10
-
-
Method Details
-
getWorkflowModel
Workflow getWorkflowModel()Provides the workflow model as defined for this workflow.- Returns:
- The workflow model.
- Since:
- 3.0
-
setWorkflowModel
Defines the workflow model for this workflow.- Parameters:
workflowModel
- The workflow model.- Since:
- 3.0
-
getWorkflowId
long getWorkflowId()Returns the workflow id of this workflow. The workflow id is an id which is distinct within the project of this workflow and not to confuse with theelement id
which is distinct on the whole server.- Returns:
- workflow id
- Since:
- 3.0
-
isWebedit
boolean isWebedit()Returnstrue
if this workflow is an webedit workflow,false
otherwise.- Since:
- 3.1.186
-
setWebedit
void setWebedit(boolean webedit) Usetrue
to mark this workflow as a webedit workflow.- Since:
- 3.1.186
-
isContextFree
boolean isContextFree()Indicates this workflow to operate context free.- Returns:
true
, if context free.- Since:
- 3.1.186
-
setContextFree
void setContextFree(boolean contextFree) Defines this workflow to operate context free.- Parameters:
contextFree
-true
, to mark this workflow context free.- Since:
- 3.1.186
-
getAlwaysActive
Deprecated, for removal: This API element is subject to removal in a future version.since 5.1.32 useisAlwaysActive()
Is this Workflow always active or should a view script be executed.- Since:
- 4.0.120
-
isAlwaysActive
boolean isAlwaysActive()Indicates whether this Workflow is always active (true
). In this case a definedview script
will be ignored. Iffalse
theview script
will be executed if there is one.- Returns:
true
if this workflow is always active, ignoring theview script
- Since:
- 5.1.32
- See Also:
-
setAlwaysActive
void setAlwaysActive(boolean alwaysActive) Set always active parameter.- Since:
- 4.0.120
-
getViewScript
String getViewScript()Get the view script.- Since:
- 4.0.120
-
getViewScriptExecutable
Executable getViewScriptExecutable()Get view script executable.- Since:
- 4.0.120
-
setViewScript
Set view script.- Since:
- 4.0.120
-
isAlwaysActive()