public class JaxbWorkItemResponse extends AbstractJaxbCommandResponse<org.kie.api.runtime.process.WorkItem> implements org.kie.api.runtime.process.WorkItem
commandName
status, url
Constructor and Description |
---|
JaxbWorkItemResponse() |
JaxbWorkItemResponse(org.kie.api.runtime.process.WorkItem workItem) |
JaxbWorkItemResponse(org.kie.api.runtime.process.WorkItem result,
int i,
org.kie.api.command.Command<?> cmd) |
Modifier and Type | Method and Description |
---|---|
long |
getId() |
String |
getName() |
Object |
getParameter(String name) |
Map<String,Object> |
getParameters() |
long |
getProcessInstanceId() |
org.kie.api.runtime.process.WorkItem |
getResult() |
Object |
getResult(String name) |
Map<String,Object> |
getResults() |
int |
getState() |
void |
setId(Long id) |
void |
setName(String name) |
void |
setParameters(Map<String,Object> parameters) |
void |
setProcessInstanceId(Long processInstanceId) |
void |
setResult(org.kie.api.runtime.process.WorkItem result)
This method is necessary for the YAML framework (which expects getters *and* setters) to work with these objects.
|
void |
setResults(Map<String,Object> results) |
void |
setState(Integer state) |
getCommandName, getIndex, setCommandName, setIndex
getStatus, getUrl, prettyPrint, setStatus, setUrl
public JaxbWorkItemResponse()
public JaxbWorkItemResponse(org.kie.api.runtime.process.WorkItem workItem)
public JaxbWorkItemResponse(org.kie.api.runtime.process.WorkItem result, int i, org.kie.api.command.Command<?> cmd)
public long getId()
getId
in interface org.kie.api.runtime.process.WorkItem
public void setId(Long id)
public String getName()
getName
in interface org.kie.api.runtime.process.WorkItem
public void setName(String name)
public int getState()
getState
in interface org.kie.api.runtime.process.WorkItem
public void setState(Integer state)
public Map<String,Object> getParameters()
getParameters
in interface org.kie.api.runtime.process.WorkItem
public Object getParameter(String name)
getParameter
in interface org.kie.api.runtime.process.WorkItem
public Map<String,Object> getResults()
getResults
in interface org.kie.api.runtime.process.WorkItem
public long getProcessInstanceId()
getProcessInstanceId
in interface org.kie.api.runtime.process.WorkItem
public void setProcessInstanceId(Long processInstanceId)
public org.kie.api.runtime.process.WorkItem getResult()
getResult
in interface JaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
public void setResult(org.kie.api.runtime.process.WorkItem result)
JaxbCommandResponse
setResult
in interface JaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.