|
Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.impl.adapters.WorkItemAdapter
public class WorkItemAdapter
| Field Summary | |
|---|---|
org.kie.api.runtime.process.WorkItem |
delegate
|
| Fields inherited from interface org.drools.runtime.process.WorkItem |
|---|
ABORTED, ACTIVE, COMPLETED, PENDING |
| Constructor Summary | |
|---|---|
WorkItemAdapter(org.kie.api.runtime.process.WorkItem delegate)
|
|
| Method Summary | |
|---|---|
long |
getId()
The unique id of this work item |
String |
getName()
The name of the work item. |
Object |
getParameter(String name)
Returns the value of the parameter with the given name. |
Map<String,Object> |
getParameters()
Returns the map of parameters of this work item. |
long |
getProcessInstanceId()
The id of the process instance that requested the execution of this work item |
Object |
getResult(String name)
Returns the value of the result parameter with the given name. |
Map<String,Object> |
getResults()
Returns the map of result parameters of this work item. |
int |
getState()
The state of the work item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public org.kie.api.runtime.process.WorkItem delegate
| Constructor Detail |
|---|
public WorkItemAdapter(org.kie.api.runtime.process.WorkItem delegate)
| Method Detail |
|---|
public long getId()
WorkItem
getId in interface WorkItempublic String getName()
WorkItem
getName in interface WorkItempublic int getState()
WorkItem
getState in interface WorkItempublic Object getParameter(String name)
WorkItemnull if the parameter cannot be found.
getParameter in interface WorkItemname - the name of the parameter
public Map<String,Object> getParameters()
WorkItem
getParameters in interface WorkItempublic Object getResult(String name)
WorkItemnull if the result cannot be found.
getResult in interface WorkItemname - the name of the result parameter
public Map<String,Object> getResults()
WorkItem
getResults in interface WorkItempublic long getProcessInstanceId()
WorkItem
getProcessInstanceId in interface WorkItem
|
Knowledge API Legacy5 Adapter 6.0.0.CR4-Pre1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||