org.jbpm.process.instance.impl

## Class ProcessInstanceImpl

- java.lang.Object
- - org.jbpm.process.instance.impl.ProcessInstanceImpl

- All Implemented Interfaces:
    Serializable, ContextableInstance, ContextInstanceContainer, org.kie.api.runtime.process.EventListener, org.kie.api.runtime.process.ProcessInstance
  Direct Known Subclasses:
    WorkflowProcessInstanceImpl

      public abstract class ProcessInstanceImpl
      extends Object
      implements ProcessInstance, Serializable

  Default implementation of a process instance.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from interface org.kie.api.runtime.process.ProcessInstance

      `SLA_ABORTED, SLA_MET, SLA_NA, SLA_PENDING, SLA_VIOLATED, STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProcessInstanceImpl()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addContextInstance(String contextId, ContextInstance contextInstance)`
    `void` | `disconnect()`
    `org.kie.api.runtime.rule.Agenda` | `getAgenda()`
    `ContextContainer` | `getContextContainer()`
    `ContextInstance` | `getContextInstance(Context context)`
    `ContextInstance` | `getContextInstance(String contextId)`
    `ContextInstance` | `getContextInstance(String contextId, long id)`
    `List<ContextInstance>` | `getContextInstances(String contextId)`
    `String` | `getDescription()`
    `String[]` | `getEventTypes()`
    `long` | `getId()`
    `org.drools.core.common.InternalKnowledgeRuntime` | `getKnowledgeRuntime()`
    `Map<String,Object>` | `getMetaData()`
    `String` | `getOutcome()`
    `long` | `getParentProcessInstanceId()`
    `org.kie.api.definition.process.Process` | `getProcess()`
    `String` | `getProcessId()`
    `String` | `getProcessName()`
    `String` | `getProcessXml()`
    `int` | `getState()`
    `void` | `internalSetState(int state)`
    `protected abstract void` | `internalStart(String trigger)`
    `void` | `reconnect()`
    `void` | `removeContextInstance(String contextId, ContextInstance contextInstance)`
    `void` | `setContextInstance(String contextId, ContextInstance contextInstance)`
    `void` | `setDescription(String description)`
    `void` | `setId(long id)`
    `void` | `setKnowledgeRuntime(org.drools.core.common.InternalKnowledgeRuntime kruntime)`
    `void` | `setMetaData(String name, Object data)`
    `void` | `setOutcome(String outcome)`
    `void` | `setParentProcessInstanceId(long parentProcessInstanceId)`
    `void` | `setProcess(org.kie.api.definition.process.Process process)`
    `void` | `setProcessId(String processId)`
    `void` | `setProcessXml(String processXml)`
    `void` | `setState(int state)`
    `void` | `setState(int state, String outcome)`
    `void` | `signalEvent(String type, Object event)`
    `void` | `start()`
    `void` | `start(String trigger)`
    `String` | `toString()`
    `void` | `updateProcess(org.kie.api.definition.process.Process process)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.jbpm.process.instance.ProcessInstance

      `configureSLA, getDeploymentId, getFaultData, getSlaCompliance, getSlaDueDate, getStartDate, isSignalCompletion, setDeploymentId, setSignalCompletion, setState`

- - ### Constructor Detail

    - #### ProcessInstanceImpl

          public ProcessInstanceImpl()

  - ### Method Detail

    - #### setId

          public void setId(long id)

    - #### 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)

    - #### updateProcess

          public void updateProcess(org.kie.api.definition.process.Process process)

    - #### getProcessXml

          public String getProcessXml()

    - #### setProcessXml

          public void setProcessXml(String processXml)

    - #### getProcess

          public org.kie.api.definition.process.Process getProcess()

      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`

    - #### setState

          public void setState(int state)

    - #### setState

          public void setState(int state,
                               String outcome)

    - #### 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)

    - #### getKnowledgeRuntime

          public org.drools.core.common.InternalKnowledgeRuntime getKnowledgeRuntime()

    - #### getAgenda

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

    - #### getContextContainer

          public ContextContainer getContextContainer()

      Specified by:
        `getContextContainer` in interface `ContextInstanceContainer`

    - #### setContextInstance

          public void setContextInstance(String contextId,
                                         ContextInstance contextInstance)

    - #### getContextInstance

          public ContextInstance getContextInstance(String contextId)

      Specified by:
        `getContextInstance` in interface `ContextableInstance`

    - #### getContextInstances

          public List<ContextInstance> getContextInstances(String contextId)

      Specified by:
        `getContextInstances` in interface `ContextInstanceContainer`

    - #### addContextInstance

          public void addContextInstance(String contextId,
                                         ContextInstance contextInstance)

      Specified by:
        `addContextInstance` in interface `ContextInstanceContainer`

    - #### removeContextInstance

          public void removeContextInstance(String contextId,
                                            ContextInstance contextInstance)

      Specified by:
        `removeContextInstance` in interface `ContextInstanceContainer`

    - #### getContextInstance

          public ContextInstance getContextInstance(String contextId,
                                                    long id)

      Specified by:
        `getContextInstance` in interface `ContextInstanceContainer`

    - #### getContextInstance

          public ContextInstance getContextInstance(Context context)

      Specified by:
        `getContextInstance` in interface `ContextInstanceContainer`

    - #### signalEvent

          public void signalEvent(String type,
                                  Object event)

      Specified by:
        `signalEvent` in interface `org.kie.api.runtime.process.EventListener`

    - #### start

          public void start()

    - #### start

          public void start(String trigger)

    - #### 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`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### getMetaData

          public Map<String,Object> getMetaData()

    - #### setMetaData

          public void setMetaData(String name,
                                  Object data)

    - #### setOutcome

          public void setOutcome(String outcome)

    - #### getOutcome

          public String getOutcome()

    - #### getParentProcessInstanceId

          public long getParentProcessInstanceId()

      Specified by:
        `getParentProcessInstanceId` in interface `org.kie.api.runtime.process.ProcessInstance`

    - #### setParentProcessInstanceId

          public void setParentProcessInstanceId(long parentProcessInstanceId)

    - #### getDescription

          public String getDescription()

    - #### setDescription

          public void setDescription(String description)

Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.