Class JscriptWorkflowTask

    • 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 String getId()
        Gets the value of the id property
        Returns:
        the id
      • getName

        public String getName()
        Gets the value of the name property
        Returns:
        the name
      • getTitle

        public String getTitle()
        Gets the value of the title property
        Returns:
        the title
      • getDescription

        public 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
      • 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​(String transitionId)
        End the task
        Parameters:
        transitionId - transition to end the task for
      • getPackageResources

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