Interface WorkflowProcessInstance

    • Method Detail

      • getVariable

        Object getVariable​(String name)
        Returns the value of the variable with the given name. Note that only variables in the process-level scope will be searched. Returns null if the value of the variable is null or if the variable cannot be found.
        Parameters:
        name - the name of the variable
        Returns:
        the value of the variable, or null if it cannot be found
      • setVariable

        void setVariable​(String name,
                         Object value)
        Sets process variable with given value under given name
        Parameters:
        name - name of the variable
        value - value of the variable
      • getStartDate

        Date getStartDate()
        Returns start date of this process instance
        Returns:
        actual start date
      • getEndDate

        Date getEndDate()
        Returns end date (either completed or aborted) of this process instance
        Returns:
        actual end date
      • getNodeIdInError

        String getNodeIdInError()
        Returns node definition id associated with node instance that failed in case this process instance is in an error
        Returns:
        node definition id of the failed node instance
      • getErrorMessage

        String getErrorMessage()
        Returns error message associated with this process instance in case it is in an error state. It will consists of
        • unique error id (uuid)
        • fully qualified class name of the root cause
        • error message of the root cause
        Returns:
        error message
      • getCorrelationKey

        String getCorrelationKey()
        Returns optional correlation key assigned to process instance
        Specified by:
        getCorrelationKey in interface ProcessInstance
        Returns:
        correlation key if present otherwise null
      • milestones

        Collection<Milestone> milestones()
        Returns the list of Milestones and their status in the current process instances
        Returns:
        Milestones defined in the process
      • getTags

        Collection<Tag> getTags()
        Returns current collection of tags.
        Returns:
        collection of tags
      • evaluateTags

        Collection<Tag> evaluateTags()
        Evaluates all tags to apply any changes of the variables
        Returns:
        collection of tags
      • addTag

        void addTag​(String value)
        Adds new tag
        Parameters:
        tag - new tag to be added
      • removedTag

        boolean removedTag​(String id)
        Removes the tag associated with given id
        Parameters:
        id - identifier of the tag