org.kie.services.client.serialization.jaxb.impl.process
Class JaxbWorkItem
java.lang.Object
org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
org.kie.services.client.serialization.jaxb.impl.process.JaxbWorkItem
- All Implemented Interfaces:
- org.kie.api.runtime.process.WorkItem, JaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
public class JaxbWorkItem
- extends AbstractJaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
- implements org.kie.api.runtime.process.WorkItem
| Fields inherited from interface org.kie.api.runtime.process.WorkItem |
ABORTED, ACTIVE, COMPLETED, PENDING |
|
Constructor Summary |
JaxbWorkItem()
|
JaxbWorkItem(org.kie.api.runtime.process.WorkItem workItem)
|
JaxbWorkItem(org.kie.api.runtime.process.WorkItem result,
int i,
org.kie.api.command.Command<?> cmd)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaxbWorkItem
public JaxbWorkItem()
JaxbWorkItem
public JaxbWorkItem(org.kie.api.runtime.process.WorkItem workItem)
JaxbWorkItem
public JaxbWorkItem(org.kie.api.runtime.process.WorkItem result,
int i,
org.kie.api.command.Command<?> cmd)
getId
public long getId()
- Specified by:
getId in interface org.kie.api.runtime.process.WorkItem
setId
public void setId(Long id)
getName
public String getName()
- Specified by:
getName in interface org.kie.api.runtime.process.WorkItem
setName
public void setName(String name)
getState
public int getState()
- Specified by:
getState in interface org.kie.api.runtime.process.WorkItem
setState
public void setState(Integer state)
getParameters
public Map<String,Object> getParameters()
- Specified by:
getParameters in interface org.kie.api.runtime.process.WorkItem
setParameters
public void setParameters(Map<String,Object> parameters)
getParameter
public Object getParameter(String name)
- Specified by:
getParameter in interface org.kie.api.runtime.process.WorkItem
getResults
public Map<String,Object> getResults()
- Specified by:
getResults in interface org.kie.api.runtime.process.WorkItem
setResults
public void setResults(Map<String,Object> results)
getProcessInstanceId
public long getProcessInstanceId()
- Specified by:
getProcessInstanceId in interface org.kie.api.runtime.process.WorkItem
setProcessInstanceId
public void setProcessInstanceId(Long processInstanceId)
getResult
public org.kie.api.runtime.process.WorkItem getResult()
- Specified by:
getResult in interface JaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
- Returns:
- The result object generated by the command. If the command does not return an object, null.
setResult
public void setResult(org.kie.api.runtime.process.WorkItem result)
- Description copied from interface:
JaxbCommandResponse
- This method is necessary for the YAML framework (which expects getters *and* setters) to work with these objects.
- Specified by:
setResult in interface JaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
getResult
public Object getResult(String name)
- Specified by:
getResult in interface org.kie.api.runtime.process.WorkItem
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.