public class JscriptWorkflowTask extends BaseScopableProcessorExtension implements 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(String transitionId)
End the task
|
String |
getDescription()
Gets the value of the
description property |
String |
getId()
Gets the value of the
id property |
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 |
String |
getTitle()
Gets the value of the
title property |
ScriptableHashMap<String,String> |
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<String,Serializable> properties)
Sets the properties on the underlying
WorkflowTask . |
getScope, setScope
getExtensionName, register, setExtensionName, setProcessor
public JscriptWorkflowTask(WorkflowTask task, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
task
- an instance of WorkflowTask from CMR workflow object modelserviceRegistry
- Service Registry objectpublic String getId()
id
propertypublic String getName()
name
propertypublic String getTitle()
title
propertypublic String getDescription()
description
propertypublic org.mozilla.javascript.Scriptable getProperties()
properties
propertypublic void setProperties(ScriptableQNameMap<String,Serializable> properties)
WorkflowTask
.properties
- the properties to setpublic boolean isComplete()
public boolean isPooled()
@Deprecated public void setPooled(boolean pooled)
public void endTask(String transitionId)
transitionId
- transition to end the task forpublic ScriptableHashMap<String,String> getTransitions()
public org.mozilla.javascript.Scriptable getPackageResources()
Copyright © 2005–2017 Alfresco Software. All rights reserved.