Class 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 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 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<java.lang.String,​java.io.Serializable> properties)
        Sets the properties on the underlying WorkflowTask.
        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