Class ProcessInstanceView

  • All Implemented Interfaces:
    Serializable, InstanceView<org.kie.api.runtime.process.ProcessInstance>

    public class ProcessInstanceView
    extends Object
    implements InstanceView<org.kie.api.runtime.process.ProcessInstance>
    InstanceView dedicated for org.kie.api.runtime.process.ProcessInstance copeFromSource is performed just before the delivery
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessInstanceView

        public ProcessInstanceView()
      • ProcessInstanceView

        public ProcessInstanceView​(org.kie.api.runtime.process.ProcessInstance source)
    • Method Detail

      • getCompositeId

        public String getCompositeId()
        Description copied from interface: InstanceView
        Returns the id of the view. Might be used by implementors to determine if two views are representations of the same underlying object
        Specified by:
        getCompositeId in interface InstanceView<org.kie.api.runtime.process.ProcessInstance>
      • setCompositeId

        public void setCompositeId​(String compositeId)
      • getId

        public Long getId()
      • setId

        public void setId​(Long id)
      • getProcessId

        public String getProcessId()
      • setProcessId

        public void setProcessId​(String processId)
      • getProcessName

        public String getProcessName()
      • setProcessName

        public void setProcessName​(String processName)
      • getProcessVersion

        public String getProcessVersion()
      • setProcessVersion

        public void setProcessVersion​(String processVersion)
      • getState

        public Integer getState()
      • setState

        public void setState​(Integer state)
      • getContainerId

        public String getContainerId()
      • setContainerId

        public void setContainerId​(String containerId)
      • getInitiator

        public String getInitiator()
      • setInitiator

        public void setInitiator​(String initiator)
      • getDate

        public Date getDate()
      • setDate

        public void setDate​(Date date)
      • getProcessInstanceDescription

        public String getProcessInstanceDescription()
      • setProcessInstanceDescription

        public void setProcessInstanceDescription​(String processInstanceDescription)
      • getCorrelationKey

        public String getCorrelationKey()
      • setCorrelationKey

        public void setCorrelationKey​(String correlationKey)
      • getParentId

        public Long getParentId()
      • setParentId

        public void setParentId​(Long parentId)
      • setVariables

        public void setVariables​(Map<String,​Object> variables)
      • getSource

        public org.kie.api.runtime.process.ProcessInstance getSource()
        Description copied from interface: InstanceView
        Returns "raw" object instance for this view
        Specified by:
        getSource in interface InstanceView<org.kie.api.runtime.process.ProcessInstance>
        Returns:
        source of this view
      • copyFromSource

        public void copyFromSource()
        Description copied from interface: InstanceView
        Triggers to copy data from source to view. Different implementations of the view might have different needs on when this would happen. PersistentEventManager will invoke it before delivering if it was not done before.
        Specified by:
        copyFromSource in interface InstanceView<org.kie.api.runtime.process.ProcessInstance>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object