Class ProcessInstanceImpl

    • Constructor Detail

      • ProcessInstanceImpl

        public ProcessInstanceImpl()
    • Method Detail

      • getId

        public long getId()
        Specified by:
        getId in interface org.kie.api.runtime.process.ProcessInstance
      • setProcess

        public void setProcess​(org.kie.api.definition.process.Process process)
        Specified by:
        setProcess in interface ProcessInstance
      • updateProcess

        public void updateProcess​(org.kie.api.definition.process.Process process)
        This will update the process definition of only this process instance. The new process definition will be stored as part of the binary process instance state. Upon reconnect, the process will be restored from binary state and rebuilt (recompiled). This has some limitations though: - the process definition should roundtrip completely through the XmlProcessDumperFactory - any modification to the process cannot involve any generated rules as only the process itself is updated
        Parameters:
        process - the new process definition
      • getProcessXml

        public String getProcessXml()
      • setProcessXml

        public void setProcessXml​(String processXml)
      • getProcess

        public org.kie.api.definition.process.Process getProcess()
        Specified by:
        getProcess in interface ProcessInstance
        Specified by:
        getProcess in interface org.kie.api.runtime.process.ProcessInstance
      • setProcessId

        public void setProcessId​(String processId)
      • getProcessId

        public String getProcessId()
        Specified by:
        getProcessId in interface org.kie.api.runtime.process.ProcessInstance
      • getProcessName

        public String getProcessName()
        Specified by:
        getProcessName in interface org.kie.api.runtime.process.ProcessInstance
      • internalSetState

        public void internalSetState​(int state)
      • getState

        public int getState()
        Specified by:
        getState in interface org.kie.api.runtime.process.ProcessInstance
      • setKnowledgeRuntime

        public void setKnowledgeRuntime​(org.drools.core.common.InternalKnowledgeRuntime kruntime)
        Specified by:
        setKnowledgeRuntime in interface ProcessInstance
      • getAgenda

        public org.kie.api.runtime.rule.Agenda getAgenda()
      • setContextInstance

        public void setContextInstance​(String contextId,
                                       ContextInstance contextInstance)
      • signalEvent

        public void signalEvent​(String type,
                                Object event)
        Specified by:
        signalEvent in interface org.kie.api.runtime.process.EventListener
      • internalStart

        protected abstract void internalStart​(String trigger)
      • disconnect

        public void disconnect()
      • reconnect

        public void reconnect()
      • getEventTypes

        public String[] getEventTypes()
        Specified by:
        getEventTypes in interface org.kie.api.runtime.process.EventListener
      • setMetaData

        public void setMetaData​(String name,
                                Object data)
      • setOutcome

        public void setOutcome​(String outcome)
      • getParentProcessInstanceId

        public long getParentProcessInstanceId()
        Specified by:
        getParentProcessInstanceId in interface org.kie.api.runtime.process.ProcessInstance
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)