org.alfresco.repo.workflow.jscript
Class JscriptWorkflowTask

java.lang.Object
  extended by org.alfresco.repo.processor.BaseProcessorExtension
      extended by org.alfresco.repo.jscript.BaseScopableProcessorExtension
          extended by 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)

See Also:
Serialized Form

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

JscriptWorkflowTask

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)
Creates a new instance of a workflow task (instance of a workflow task definition)

Parameters:
id - workflow task ID
name - workflow task name
title - workflow task title
description - workflow task description
serviceRegistry - Service Registry object
properties -
transitions -
packageResources -

JscriptWorkflowTask

public 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

Parameters:
cmrWorkflowTask - an instance of WorkflowTask from CMR workflow object model
serviceRegistry - Service Registry object
Method Detail

getId

public java.lang.String getId()
Gets the value of the id property

Returns:
the id

getName

public java.lang.String getName()
Gets the value of the name property

Returns:
the name

getTitle

public java.lang.String getTitle()
Gets the value of the title property

Returns:
the title

getDescription

public java.lang.String getDescription()
Gets the value of the description property

Returns:
the description

getProperties

public org.mozilla.javascript.Scriptable getProperties()
Gets the value of the properties property

Returns:
the properties

setProperties

public void setProperties(ScriptableQNameMap properties)
Sets the value of the properties property

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

public void setPooled(boolean pooled)
Sets whether task is pooled('true') or not('false')

Parameters:
pooled - the pooled to set

endTask

public void endTask(java.lang.String transitionId)
End the task

Parameters:
transition - transition to end the task for

getTransitions

public ScriptableHashMap getTransitions()
Get the available transition ids.

Returns:

getPackageResources

public org.mozilla.javascript.Scriptable getPackageResources()
Get the packe resources (array of noderefs)

Returns:


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.