org.kie.services.client.serialization.jaxb.impl.process
Class JaxbProcessInstanceResponse
java.lang.Object
org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse<org.kie.api.runtime.process.ProcessInstance>
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
| Fields inherited from interface org.kie.api.runtime.process.ProcessInstance |
STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED |
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)
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>
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.