KIE Remote Services :: JAXB classes 6.1.0.Final

org.kie.services.client.serialization.jaxb.impl.process
Class JaxbWorkItem

java.lang.Object
  extended by org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
      extended by org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse<org.kie.api.runtime.process.WorkItem>
          extended by 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


Field Summary
 
Fields inherited from class org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse
commandName
 
Fields inherited from class org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
status, url
 
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)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse
getCommandName, getIndex, setCommandName, setIndex
 
Methods inherited from class org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
getStatus, getUrl, prettyPrint, setStatus, setUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

KIE Remote Services :: JAXB classes 6.1.0.Final

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