public class JscriptWorkflowTask extends BaseScopableProcessorExtension implements java.io.Serializable
| Constructor and 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
|
| Modifier and Type | Method and Description |
|---|---|
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)
Deprecated.
pooled state cannot be altered.
|
void |
setProperties(ScriptableQNameMap properties)
Sets the properties on the underlying
WorkflowTask. |
getScope, setScopegetExtensionName, register, setExtensionName, setProcessorpublic JscriptWorkflowTask(WorkflowTask task, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
task - an instance of WorkflowTask from CMR workflow object modelserviceRegistry - Service Registry objectpublic java.lang.String getId()
id propertypublic java.lang.String getName()
name propertypublic java.lang.String getTitle()
title propertypublic java.lang.String getDescription()
description propertypublic org.mozilla.javascript.Scriptable getProperties()
properties propertypublic void setProperties(ScriptableQNameMap properties)
WorkflowTask.properties - the properties to setpublic boolean isComplete()
public boolean isPooled()
@Deprecated public void setPooled(boolean pooled)
public void endTask(java.lang.String transitionId)
transition - transition to end the task forpublic ScriptableHashMap getTransitions()
public org.mozilla.javascript.Scriptable getPackageResources()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.