Modifier and Type | Field and Description |
---|---|
org.kie.api.runtime.process.WorkItem |
delegate |
Constructor and Description |
---|
WorkItemAdapter(org.kie.api.runtime.process.WorkItem delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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.
|
int |
hashCode() |
public WorkItemAdapter(org.kie.api.runtime.process.WorkItem delegate)
public long getId()
WorkItem
public String getName()
WorkItem
public int getState()
WorkItem
public Object getParameter(String name)
WorkItem
null
if the parameter cannot be found.getParameter
in interface WorkItem
name
- the name of the parameterpublic Map<String,Object> getParameters()
WorkItem
getParameters
in interface WorkItem
public Object getResult(String name)
WorkItem
null
if the result cannot be found.public Map<String,Object> getResults()
WorkItem
getResults
in interface WorkItem
public long getProcessInstanceId()
WorkItem
getProcessInstanceId
in interface WorkItem
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.