|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.workflow.jscript.JscriptWorkflowTask
public class JscriptWorkflowTask
This class represents a workflow task (an instance of a workflow task definition)
Constructor Summary | |
---|---|
JscriptWorkflowTask(java.lang.String id,
java.lang.String name,
java.lang.String title,
java.lang.String description,
ServiceRegistry serviceRegistry,
ScriptableQNameMap properties,
ScriptableHashMap transitions,
org.mozilla.javascript.Scriptable packageResources,
org.mozilla.javascript.Scriptable scope)
Creates a new instance of a workflow task (instance of a workflow task definition) |
|
JscriptWorkflowTask(WorkflowTask cmrWorkflowTask,
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 | |
---|---|
void |
endTask(java.lang.String transitionId)
End the task |
java.lang.String |
getDescription()
Gets the value of the description property |
java.lang.String |
getId()
Gets the value of the id property |
java.lang.String |
getName()
Gets the value of the name property |
org.mozilla.javascript.Scriptable |
getPackageResources()
Get the packe resources (array of noderefs) |
org.mozilla.javascript.Scriptable |
getProperties()
Gets the value of the properties property |
java.lang.String |
getTitle()
Gets the value of the title property |
ScriptableHashMap |
getTransitions()
Get the available transition ids. |
boolean |
isComplete()
Returns whether the task is complete 'true':complete, 'false':in-progress |
boolean |
isPooled()
Returns whether this task is pooled or not |
void |
setPooled(boolean pooled)
Sets whether task is pooled('true') or not('false') |
void |
setProperties(ScriptableQNameMap properties)
Sets the value of the properties property |
Methods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension |
---|
getScope, setScope |
Methods inherited from class org.alfresco.repo.processor.BaseProcessorExtension |
---|
getExtensionName, register, setExtensionName, setProcessor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JscriptWorkflowTask(java.lang.String id, java.lang.String name, java.lang.String title, java.lang.String description, ServiceRegistry serviceRegistry, ScriptableQNameMap properties, ScriptableHashMap transitions, org.mozilla.javascript.Scriptable packageResources, org.mozilla.javascript.Scriptable scope)
id
- workflow task IDname
- workflow task nametitle
- workflow task titledescription
- workflow task descriptionserviceRegistry
- Service Registry objectproperties
- transitions
- packageResources
- public JscriptWorkflowTask(WorkflowTask cmrWorkflowTask, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
cmrWorkflowTask
- an instance of WorkflowTask from CMR workflow object modelserviceRegistry
- Service Registry objectMethod Detail |
---|
public java.lang.String getId()
id
property
public java.lang.String getName()
name
property
public java.lang.String getTitle()
title
property
public java.lang.String getDescription()
description
property
public org.mozilla.javascript.Scriptable getProperties()
properties
property
public void setProperties(ScriptableQNameMap properties)
properties
property
properties
- the properties to setpublic boolean isComplete()
public boolean isPooled()
public void setPooled(boolean pooled)
pooled
- the pooled to setpublic void endTask(java.lang.String transitionId)
transition
- transition to end the task forpublic ScriptableHashMap getTransitions()
public org.mozilla.javascript.Scriptable getPackageResources()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |