Class JscriptWorkflowTask
- java.lang.Object
-
- org.alfresco.repo.processor.BaseProcessorExtension
-
- org.alfresco.repo.jscript.BaseScopableProcessorExtension
-
- org.alfresco.repo.workflow.jscript.JscriptWorkflowTask
-
- All Implemented Interfaces:
java.io.Serializable,org.alfresco.processor.ProcessorExtension,Scopeable
public class JscriptWorkflowTask extends BaseScopableProcessorExtension implements java.io.Serializable
This class represents a workflow task (an instance of a workflow task definition)- Author:
- glenj, Nick Smith
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidendTask(java.lang.String transitionId)End the taskjava.lang.StringgetDescription()Gets the value of thedescriptionpropertyjava.lang.StringgetId()Gets the value of theidpropertyjava.lang.StringgetName()Gets the value of thenamepropertyorg.mozilla.javascript.ScriptablegetPackageResources()Get the packe resources (array of noderefs)org.mozilla.javascript.ScriptablegetProperties()Gets the value of thepropertiespropertyjava.lang.StringgetTitle()Gets the value of thetitlepropertyScriptableHashMap<java.lang.String,java.lang.String>getTransitions()Get the available transition ids.booleanisComplete()Returns 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<java.lang.String,java.io.Serializable> properties)Sets the properties on the underlyingWorkflowTask.-
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScope
-
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
-
-
-
Constructor Detail
-
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 Detail
-
getId
public java.lang.String getId()
Gets the value of theidproperty- Returns:
- the id
-
getName
public java.lang.String getName()
Gets the value of thenameproperty- Returns:
- the name
-
getTitle
public java.lang.String getTitle()
Gets the value of thetitleproperty- Returns:
- the title
-
getDescription
public java.lang.String 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
public void setProperties(ScriptableQNameMap<java.lang.String,java.io.Serializable> properties)
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 public void setPooled(boolean pooled)
Deprecated.pooled state cannot be altered.
-
endTask
public void endTask(java.lang.String transitionId)
End the task- Parameters:
transitionId- transition to end the task for
-
getTransitions
public ScriptableHashMap<java.lang.String,java.lang.String> getTransitions()
Get the available transition ids.- Returns:
- ScriptableHashMap
-
getPackageResources
public org.mozilla.javascript.Scriptable getPackageResources()
Get the packe resources (array of noderefs)- Returns:
- Scriptable
-
-