Class JscriptWorkflowTask
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.workflow.jscript.JscriptWorkflowTask
- All Implemented Interfaces:
Serializable,org.alfresco.processor.ProcessorExtension,Scopeable
This class represents a workflow task (an instance of a workflow task definition)
- Author:
- glenj, Nick Smith
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJscriptWorkflowTask(WorkflowTask task, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Creates a new instance of a workflow task from a WorkflowTask from the CMR workflow object model -
Method Summary
Modifier and TypeMethodDescriptionvoidEnd the taskGets the value of thedescriptionpropertygetId()Gets the value of theidpropertygetName()Gets the value of thenamepropertyorg.mozilla.javascript.ScriptableGet the packe resources (array of noderefs)org.mozilla.javascript.ScriptableGets the value of thepropertiespropertygetTitle()Gets the value of thetitlepropertyGet the available transition ids.booleanReturns whether the task is complete 'true':complete, 'false':in-progressbooleanisPooled()Returns whether this task is pooled or notvoidsetPooled(boolean pooled) Deprecated.pooled state cannot be altered.voidsetProperties(ScriptableQNameMap<String, Serializable> properties) Sets the properties on the underlyingWorkflowTask.Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
JscriptWorkflowTask
public JscriptWorkflowTask(WorkflowTask task, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Creates a new instance of a workflow task from a WorkflowTask from the CMR workflow object model- Parameters:
task- an instance of WorkflowTask from CMR workflow object modelserviceRegistry- Service Registry object
-
-
Method Details
-
getId
Gets the value of theidproperty- Returns:
- the id
-
getName
Gets the value of thenameproperty- Returns:
- the name
-
getTitle
Gets the value of thetitleproperty- Returns:
- the title
-
getDescription
Gets the value of thedescriptionproperty- Returns:
- the description
-
getProperties
public org.mozilla.javascript.Scriptable getProperties()Gets the value of thepropertiesproperty- Returns:
- the properties
-
setProperties
Sets the properties on the underlyingWorkflowTask.- Parameters:
properties- the properties to set
-
isComplete
public boolean isComplete()Returns whether the task is complete 'true':complete, 'false':in-progress- Returns:
- the complete
-
isPooled
public boolean isPooled()Returns whether this task is pooled or not- Returns:
- 'true': task is pooled, 'false': task is not pooled
-
setPooled
Deprecated.pooled state cannot be altered. -
endTask
End the task- Parameters:
transitionId- transition to end the task for
-
getTransitions
Get the available transition ids.- Returns:
- ScriptableHashMap
-
getPackageResources
public org.mozilla.javascript.Scriptable getPackageResources()Get the packe resources (array of noderefs)- Returns:
- Scriptable
-