KIE Remote Services :: JAXB classes 6.1.0.Final

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

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.ProcessInstance>
          extended by org.kie.services.client.serialization.jaxb.impl.process.JaxbProcessInstanceResponse
All Implemented Interfaces:
org.kie.api.runtime.process.EventListener, org.kie.api.runtime.process.ProcessInstance, JaxbCommandResponse<org.kie.api.runtime.process.ProcessInstance>

public class JaxbProcessInstanceResponse
extends AbstractJaxbCommandResponse<org.kie.api.runtime.process.ProcessInstance>
implements org.kie.api.runtime.process.ProcessInstance


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.ProcessInstance
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED
 
Constructor Summary
JaxbProcessInstanceResponse()
           
JaxbProcessInstanceResponse(org.kie.api.runtime.process.ProcessInstance processInstance)
           
JaxbProcessInstanceResponse(org.kie.api.runtime.process.ProcessInstance processInstance, int i, org.kie.api.command.Command<?> cmd)
           
JaxbProcessInstanceResponse(org.kie.api.runtime.process.ProcessInstance processInstance, String requestUrl)
           
 
Method Summary
 String[] getEventTypes()
           
 long getId()
           
 org.kie.api.definition.process.Process getProcess()
           
 String getProcessId()
           
 String getProcessName()
           
 org.kie.api.runtime.process.ProcessInstance getResult()
           
 int getState()
           
protected  void initialize(org.kie.api.runtime.process.ProcessInstance processInstance)
           
 void setEventTypes(List<String> eventTypes)
           
 void setId(Long id)
           
 void setProcessId(String processId)
           
 void setResult(org.kie.api.runtime.process.ProcessInstance result)
          This method is necessary for the YAML framework (which expects getters *and* setters) to work with these objects.
 void setState(Integer state)
           
 void signalEvent(String type, Object event)
           
 String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

JaxbProcessInstanceResponse

public JaxbProcessInstanceResponse()

JaxbProcessInstanceResponse

public JaxbProcessInstanceResponse(org.kie.api.runtime.process.ProcessInstance processInstance,
                                   int i,
                                   org.kie.api.command.Command<?> cmd)

JaxbProcessInstanceResponse

public JaxbProcessInstanceResponse(org.kie.api.runtime.process.ProcessInstance processInstance)

JaxbProcessInstanceResponse

public JaxbProcessInstanceResponse(org.kie.api.runtime.process.ProcessInstance processInstance,
                                   String requestUrl)
Method Detail

initialize

protected void initialize(org.kie.api.runtime.process.ProcessInstance processInstance)

getProcessId

public String getProcessId()
Specified by:
getProcessId in interface org.kie.api.runtime.process.ProcessInstance

setProcessId

public void setProcessId(String processId)

getId

public long getId()
Specified by:
getId in interface org.kie.api.runtime.process.ProcessInstance

setId

public void setId(Long id)

getState

public int getState()
Specified by:
getState in interface org.kie.api.runtime.process.ProcessInstance

setState

public void setState(Integer state)

setEventTypes

public void setEventTypes(List<String> eventTypes)

getProcessName

public String getProcessName()
Specified by:
getProcessName in interface org.kie.api.runtime.process.ProcessInstance

getProcess

public org.kie.api.definition.process.Process getProcess()
Specified by:
getProcess in interface org.kie.api.runtime.process.ProcessInstance

getEventTypes

public String[] getEventTypes()
Specified by:
getEventTypes in interface org.kie.api.runtime.process.EventListener

signalEvent

public void signalEvent(String type,
                        Object event)
Specified by:
signalEvent in interface org.kie.api.runtime.process.EventListener

getResult

public org.kie.api.runtime.process.ProcessInstance getResult()
Specified by:
getResult in interface JaxbCommandResponse<org.kie.api.runtime.process.ProcessInstance>
Returns:
The result object generated by the command. If the command does not return an object, null.

toString

public String toString()
Overrides:
toString in class Object

setResult

public void setResult(org.kie.api.runtime.process.ProcessInstance 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.ProcessInstance>

KIE Remote Services :: JAXB classes 6.1.0.Final

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