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()
ProcessInstancegetProcessId in interface ProcessInstancepublic Process getProcess()
getProcess in interface ProcessInstancepublic long getId()
ProcessInstancegetId in interface ProcessInstancepublic String getProcessName()
ProcessInstancegetProcessName in interface ProcessInstancepublic int getState()
ProcessInstancegetState in interface ProcessInstancepublic void signalEvent(String type, Object event)
EventListenersignalEvent in interface EventListenertype - the type of eventevent - the data associated with this eventpublic String[] getEventTypes()
EventListenernull if the event types are unknown.getEventTypes in interface EventListenerpublic static List<ProcessInstance> adaptProcessInstances(Collection<org.kie.api.runtime.process.ProcessInstance> processes)
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.