Knowledge API Legacy5 Adapter 6.0.0.Beta3

org.drools.impl.adapters
Class ProcessInstanceAdapter

java.lang.Object
  extended by org.drools.impl.adapters.ProcessInstanceAdapter
All Implemented Interfaces:
EventListener, ProcessInstance

public class ProcessInstanceAdapter
extends Object
implements ProcessInstance


Field Summary
 
Fields inherited from interface org.drools.runtime.process.ProcessInstance
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED
 
Constructor Summary
ProcessInstanceAdapter(org.kie.api.runtime.process.ProcessInstance delegate)
           
 
Method Summary
static List<ProcessInstance> adaptProcessInstances(Collection<org.kie.api.runtime.process.ProcessInstance> processes)
           
 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.
 void signalEvent(String type, Object event)
          Signals that an event has occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessInstanceAdapter

public ProcessInstanceAdapter(org.kie.api.runtime.process.ProcessInstance delegate)
Method Detail

getProcessId

public String getProcessId()
Description copied from interface: ProcessInstance
The id of the process definition that is related to this process instance.

Specified by:
getProcessId in interface ProcessInstance
Returns:
the id of the process definition that is related to this process instance

getProcess

public Process getProcess()
Specified by:
getProcess in interface ProcessInstance

getId

public long getId()
Description copied from interface: ProcessInstance
The unique id of this process instance.

Specified by:
getId in interface ProcessInstance
Returns:
the unique id of this process instance

getProcessName

public String getProcessName()
Description copied from interface: ProcessInstance
The name of the process definition that is related to this process instance.

Specified by:
getProcessName in interface ProcessInstance
Returns:
the name of the process definition that is related to this process instance

getState

public int getState()
Description copied from interface: ProcessInstance
The state of the process instance.

Specified by:
getState in interface ProcessInstance
Returns:
the state of the process instance

signalEvent

public void signalEvent(String type,
                        Object event)
Description copied from interface: EventListener
Signals that an event has occurred. The type parameter defines which type of event and the event parameter can contain additional information related to the event.

Specified by:
signalEvent in interface EventListener
Parameters:
type - the type of event
event - the data associated with this event

getEventTypes

public String[] getEventTypes()
Description copied from interface: EventListener
Returns the event types this event listener is interested in. May return null if the event types are unknown.

Specified by:
getEventTypes in interface EventListener

adaptProcessInstances

public static List<ProcessInstance> adaptProcessInstances(Collection<org.kie.api.runtime.process.ProcessInstance> processes)

Knowledge API Legacy5 Adapter 6.0.0.Beta3

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.