Class ProcessInstanceInfo

  • All Implemented Interfaces:
    org.drools.persistence.api.Transformable, org.jbpm.persistence.api.PersistentProcessInstance

    @Entity
    public class ProcessInstanceInfo
    extends Object
    implements org.jbpm.persistence.api.PersistentProcessInstance
    • Constructor Detail

      • ProcessInstanceInfo

        protected ProcessInstanceInfo()
      • ProcessInstanceInfo

        public ProcessInstanceInfo​(org.kie.api.runtime.process.ProcessInstance processInstance)
      • ProcessInstanceInfo

        public ProcessInstanceInfo​(org.kie.api.runtime.process.ProcessInstance processInstance,
                                   org.kie.api.runtime.Environment env)
    • Method Detail

      • getProcessInstanceId

        public Long getProcessInstanceId()
        Added in order to satisfy Hibernate AND the JBPMorm.xml:
        • Hibernate needs getter/setters for a the field that's mapped.
          • (field access is inefficient/dangerous, and not necessary)
        • The JBPMorm.xml queries reference .processInstanceId as well.
        If we mapped the field using 'name="id"', the queries would thus fail.

        So instead of that, we just add the getters and use 'name="processInstanceId"'.
        Returns:
        The processInstanceId field value.
      • setProcessInstanceId

        public void setProcessInstanceId​(Long processInstanceId)
      • getId

        public Long getId()
        Specified by:
        getId in interface org.jbpm.persistence.api.PersistentProcessInstance
      • setId

        public void setId​(Long processInstanceId)
        Specified by:
        setId in interface org.jbpm.persistence.api.PersistentProcessInstance
      • getProcessId

        public String getProcessId()
      • getStartDate

        public Date getStartDate()
      • getLastModificationDate

        public Date getLastModificationDate()
      • getLastReadDate

        public Date getLastReadDate()
      • updateLastReadDate

        public void updateLastReadDate()
      • getState

        public int getState()
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(org.drools.core.common.InternalKnowledgeRuntime kruntime,
                                                                              org.kie.api.runtime.Environment env)
      • getProcessInstance

        public org.kie.api.runtime.process.ProcessInstance getProcessInstance​(org.drools.core.common.InternalKnowledgeRuntime kruntime,
                                                                              org.kie.api.runtime.Environment env,
                                                                              boolean readOnly)
      • transform

        public void transform()
        Specified by:
        transform in interface org.drools.persistence.api.Transformable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getVersion

        public int getVersion()
      • getEventTypes

        public Set<String> getEventTypes()
        Specified by:
        getEventTypes in interface org.jbpm.persistence.api.PersistentProcessInstance
      • getProcessInstanceByteArray

        public byte[] getProcessInstanceByteArray()
        Specified by:
        getProcessInstanceByteArray in interface org.jbpm.persistence.api.PersistentProcessInstance
      • clearProcessInstance

        public void clearProcessInstance()
      • getEnv

        public org.kie.api.runtime.Environment getEnv()
      • setEnv

        public void setEnv​(org.kie.api.runtime.Environment env)