org.jbpm.persistence.processinstance
Class ProcessInstanceInfo

java.lang.Object
  extended by org.jbpm.persistence.processinstance.ProcessInstanceInfo

public class ProcessInstanceInfo
extends Object


Constructor Summary
protected ProcessInstanceInfo()
           
  ProcessInstanceInfo(ProcessInstance processInstance)
           
  ProcessInstanceInfo(ProcessInstance processInstance, Environment env)
           
 
Method Summary
 void clearProcessInstance()
           
 boolean equals(Object obj)
           
 Set<String> getEventTypes()
           
 Long getId()
           
 Date getLastModificationDate()
           
 Date getLastReadDate()
           
 String getProcessId()
           
 ProcessInstance getProcessInstance(org.drools.common.InternalKnowledgeRuntime kruntime, Environment env)
           
 byte[] getProcessInstanceByteArray()
           
 Date getStartDate()
           
 int getState()
           
 int getVersion()
           
 int hashCode()
           
 void setId(Long processInstanceId)
           
 void update()
          Adding @PrePersist breaks things, because: We retrieve/generate the marshaller (see below).
 void updateLastReadDate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessInstanceInfo

protected ProcessInstanceInfo()

ProcessInstanceInfo

public ProcessInstanceInfo(ProcessInstance processInstance)

ProcessInstanceInfo

public ProcessInstanceInfo(ProcessInstance processInstance,
                           Environment env)
Method Detail

getId

public Long getId()

setId

public void setId(Long processInstanceId)

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 ProcessInstance getProcessInstance(org.drools.common.InternalKnowledgeRuntime kruntime,
                                          Environment env)

update

public void update()
Adding @PrePersist breaks things, because:

Normally, the variable change is logged after the following method has completed.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getVersion

public int getVersion()

getEventTypes

public Set<String> getEventTypes()

getProcessInstanceByteArray

public byte[] getProcessInstanceByteArray()

clearProcessInstance

public void clearProcessInstance()


Copyright © 2001-2011 JBoss by Red Hat. All Rights Reserved.