Class JscriptWorkflowDefinition

  • All Implemented Interfaces:
    java.io.Serializable

    public class JscriptWorkflowDefinition
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JscriptWorkflowDefinition​(java.lang.String id, java.lang.String name, java.lang.String version, java.lang.String title, java.lang.String description, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
      Creates a new instance of WorkflowDefinition from scratch
      JscriptWorkflowDefinition​(WorkflowDefinition cmrWorkflowDefinition, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
      Create a new instance of WorkflowDefinition from a CMR workflow object model WorkflowDefinition instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.mozilla.javascript.Scriptable getActiveInstances()
      Get active workflow instances of this workflow definition
      java.lang.String getDescription()
      Get value of description property
      java.lang.String getId()
      Get value of id property
      java.lang.String getName()
      Get value of name property
      java.lang.String getTitle()
      Get value of title property
      protected ValueConverter getValueConverter()
      Gets the value converter
      java.lang.String getVersion()
      Get value of version property
      JscriptWorkflowPath startWorkflow​(java.lang.Object properties)
      Start workflow instance from workflow definition without attaching any package node to the workflow
      JscriptWorkflowPath startWorkflow​(ScriptNode workflowPackage, java.lang.Object properties)
      Start workflow instance from workflow definition
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JscriptWorkflowDefinition

        public JscriptWorkflowDefinition​(WorkflowDefinition cmrWorkflowDefinition,
                                         ServiceRegistry serviceRegistry,
                                         org.mozilla.javascript.Scriptable scope)
        Create a new instance of WorkflowDefinition from a CMR workflow object model WorkflowDefinition instance
        Parameters:
        cmrWorkflowDefinition - an instance of WorkflowDefinition from the CMR workflow object model
        serviceRegistry - reference to the Service Registry
        scope - the root scripting scope for this object
      • JscriptWorkflowDefinition

        public JscriptWorkflowDefinition​(java.lang.String id,
                                         java.lang.String name,
                                         java.lang.String version,
                                         java.lang.String title,
                                         java.lang.String description,
                                         ServiceRegistry serviceRegistry,
                                         org.mozilla.javascript.Scriptable scope)
        Creates a new instance of WorkflowDefinition from scratch
        Parameters:
        id - workflow definition ID
        name - name of workflow definition
        version - version of workflow definition
        title - title of workflow definition
        description - description of workflow definition
        serviceRegistry - reference to the Service Registry
        scope - root scripting scope for this object
    • Method Detail

      • getId

        public java.lang.String getId()
        Get value of id property
        Returns:
        the id
      • getName

        public java.lang.String getName()
        Get value of name property
        Returns:
        the name
      • getVersion

        public java.lang.String getVersion()
        Get value of version property
        Returns:
        the version
      • getTitle

        public java.lang.String getTitle()
        Get value of title property
        Returns:
        the title
      • getValueConverter

        protected ValueConverter getValueConverter()
        Gets the value converter
        Returns:
        the value converter
      • getDescription

        public java.lang.String getDescription()
        Get value of description property
        Returns:
        the description
      • startWorkflow

        public JscriptWorkflowPath startWorkflow​(java.lang.Object properties)
        Start workflow instance from workflow definition without attaching any package node to the workflow
        Parameters:
        properties - Associative array of properties used to populate the start task properties
        Returns:
        the initial workflow path
      • startWorkflow

        public JscriptWorkflowPath startWorkflow​(ScriptNode workflowPackage,
                                                 java.lang.Object properties)
        Start workflow instance from workflow definition
        Parameters:
        workflowPackage - workflow package node to 'attach' to the new workflow instance
        properties - Associative array of properties used to populate the start task properties
        Returns:
        the initial workflow path
      • getActiveInstances

        public org.mozilla.javascript.Scriptable getActiveInstances()
        Get active workflow instances of this workflow definition
        Returns:
        the active workflow instances spawned from this workflow definition