## Uses of Interface
org.kie.api.runtime.process.ProcessInstance

- Packages that use ProcessInstance
  Package | Description
  --- | ---
  org.kie.api.event.process | Events emitted while process instances are executing.
  org.kie.api.runtime.process | The process runtime classes.

- - ### Uses of ProcessInstance in org.kie.api.event.process

    Methods in org.kie.api.event.process that return ProcessInstance
    Modifier and Type | Method and Description
    --- | ---
    `ProcessInstance` | ProcessEvent.`getProcessInstance()` The ProcessInstance this event relates to.

  - ### Uses of ProcessInstance in org.kie.api.runtime.process

    Subinterfaces of ProcessInstance in org.kie.api.runtime.process
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `WorkflowProcessInstance` A workflow process instance represents one specific instance of a workflow process that is currently executing.

    Methods in org.kie.api.runtime.process that return ProcessInstance
    Modifier and Type | Method and Description
    --- | ---
    `ProcessInstance` | ProcessRuntime.`createProcessInstance(String processId, Map<String,Object> parameters)` Creates a new process instance (but does not yet start it).
    `ProcessInstance` | ProcessContext.`getProcessInstance()` Returns the process instance that is currently being executed in this context.
    `ProcessInstance` | ProcessRuntime.`getProcessInstance(long processInstanceId)` Returns the process instance with the given id.
    `ProcessInstance` | ProcessRuntime.`getProcessInstance(long processInstanceId, boolean readonly)` Returns the process instance with the given id.
    `ProcessInstance` | ProcessRuntime.`startProcess(String processId)` Start a new process instance.
    `ProcessInstance` | ProcessRuntime.`startProcess(String processId, Map<String,Object> parameters)` Start a new process instance.
    `ProcessInstance` | ProcessRuntime.`startProcessInstance(long processInstanceId)` Starts the given process instance (which was created by using createProcesInstance but not yet started).

    Methods in org.kie.api.runtime.process that return types with arguments of type ProcessInstance
    Modifier and Type | Method and Description
    --- | ---
    `Collection<ProcessInstance>` | ProcessRuntime.`getProcessInstances()` Returns a collection of currently active process instances.

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