Class JscriptWorkflowInstance

    • Constructor Detail

      • JscriptWorkflowInstance

        public JscriptWorkflowInstance​(String id,
                                       String description,
                                       Date startDate,
                                       ServiceRegistry serviceRegistry,
                                       org.mozilla.javascript.Scriptable scope)
        Creates a new instance of WorkflowInstance from scratch
        Parameters:
        id - ID of new workflow instance object
        description - Description of new workflow instance object
        startDate - Start Date of new workflow instance object
        serviceRegistry - Service Registry instance
        scope - the root scripting scope for this object
      • JscriptWorkflowInstance

        public JscriptWorkflowInstance​(WorkflowInstance cmrWorkflowInstance,
                                       ServiceRegistry serviceRegistry,
                                       org.mozilla.javascript.Scriptable scope)
        Create a new instance of WorkflowInstance from a WorkflowInstance object from the CMR workflow object model
        Parameters:
        cmrWorkflowInstance - CMR workflow instance
        serviceRegistry - Service Registry instance
        scope - the root scripting scope for this object
    • Method Detail

      • getPaths

        public org.mozilla.javascript.Scriptable getPaths()
        Get all paths for the specified workflow instance
      • getId

        public String getId()
        Getter for id property
        Returns:
        the id
      • getDescription

        public String getDescription()
        Getter for description property
        Returns:
        the description
      • isActive

        public boolean isActive()
        Get state for active property
        Returns:
        the active
      • getStartDate

        public org.mozilla.javascript.Scriptable getStartDate()
        Getter for startDate property
        Returns:
        the startDate
      • getEndDate

        public org.mozilla.javascript.Scriptable getEndDate()
        Getter for endDate property
        Returns:
        the endDate
      • cancel

        public void cancel()
        Cancel workflow instance
      • delete

        public void delete()
        Deprecated.
        as 'delete' is a JavaScript reserved word and so is unusable. Use remove() instead.
        Delete workflow instance
      • remove

        public void remove()
        Deletes workflow instance.
        Since:
        3.4.9