public class ProcessInstanceAdapter extends Object implements ProcessInstance
Modifier and Type | Field and Description |
---|---|
org.kie.api.runtime.process.ProcessInstance |
delegate |
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED
Constructor and Description |
---|
ProcessInstanceAdapter(org.kie.api.runtime.process.ProcessInstance delegate) |
Modifier and Type | Method and Description |
---|---|
static List<ProcessInstance> |
adaptProcessInstances(Collection<org.kie.api.runtime.process.ProcessInstance> processes) |
boolean |
equals(Object obj) |
org.kie.api.runtime.process.ProcessInstance |
getDelegate() |
String[] |
getEventTypes()
Returns the event types this event listener is interested in.
|
long |
getId()
The unique id of this process instance.
|
Process |
getProcess() |
String |
getProcessId()
The id of the process definition that is related to this process instance.
|
String |
getProcessName()
The name of the process definition that is related to this process instance.
|
int |
getState()
The state of the process instance.
|
int |
hashCode() |
void |
signalEvent(String type,
Object event)
Signals that an event has occurred.
|
public ProcessInstanceAdapter(org.kie.api.runtime.process.ProcessInstance delegate)
public org.kie.api.runtime.process.ProcessInstance getDelegate()
public String getProcessId()
ProcessInstance
getProcessId
in interface ProcessInstance
public Process getProcess()
getProcess
in interface ProcessInstance
public long getId()
ProcessInstance
getId
in interface ProcessInstance
public String getProcessName()
ProcessInstance
getProcessName
in interface ProcessInstance
public int getState()
ProcessInstance
getState
in interface ProcessInstance
public void signalEvent(String type, Object event)
EventListener
signalEvent
in interface EventListener
type
- the type of eventevent
- the data associated with this eventpublic String[] getEventTypes()
EventListener
null
if the event types are unknown.getEventTypes
in interface EventListener
public static List<ProcessInstance> adaptProcessInstances(Collection<org.kie.api.runtime.process.ProcessInstance> processes)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.