@ApplicationScoped public class ProcessRequestBean extends Object
RuntimeResourceImpl and TaskResourceImpl to do the core operations on
the Deployment/Runtime's KieSession and TaskService.
It contains the necessary logic to do the following:
| Constructor and Description |
|---|
ProcessRequestBean() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
doKieSessionOperation(org.kie.api.command.Command<T> cmd,
String deploymentId,
Long processInstanceId)
Executes a command on the
KieSession from the proper RuntimeManager. |
<T> T |
doRestTaskOperation(Long taskId,
String deploymentId,
Long processInstanceId,
org.kie.api.task.model.Task task,
org.jbpm.services.task.commands.TaskCommand<T> cmd) |
org.jbpm.process.audit.AuditLogService |
getAuditLogService() |
Object |
getVariableObjectInstanceFromRuntime(String deploymentId,
long processInstanceId,
String varName)
Returns the actual variable instance from the runtime (as opposed to retrieving the string value of the
variable via the history/audit operations.
|
void |
initAuditLogService() |
void |
processCommand(org.kie.api.command.Command cmd,
JaxbCommandsRequest request,
int i,
JaxbCommandsResponse jaxbResponse) |
void |
setAuditLogService(org.jbpm.process.audit.AuditLogService auditLogService) |
void |
setProcessService(org.jbpm.services.api.ProcessService processService) |
void |
setUserTaskService(org.jbpm.services.api.UserTaskService userTaskService) |
public void setProcessService(org.jbpm.services.api.ProcessService processService)
public void setUserTaskService(org.jbpm.services.api.UserTaskService userTaskService)
public void setAuditLogService(org.jbpm.process.audit.AuditLogService auditLogService)
@PostConstruct public void initAuditLogService()
public org.jbpm.process.audit.AuditLogService getAuditLogService()
public void processCommand(org.kie.api.command.Command cmd,
JaxbCommandsRequest request,
int i,
JaxbCommandsResponse jaxbResponse)
public <T> T doKieSessionOperation(org.kie.api.command.Command<T> cmd,
String deploymentId,
Long processInstanceId)
KieSession from the proper RuntimeManager. This method
ends up synchronizing around the retrieved KieSession in order to avoid race-conditions.cmd - The command to be executed.deploymentId - The id of the runtime.processInstanceId - The process instance id, if available.Command.public Object getVariableObjectInstanceFromRuntime(String deploymentId, long processInstanceId, String varName)
deploymentId - The id of the runtimeprocessInstanceId - The process instance id (required)varName - The name of the variableCopyright © 2001–2015 JBoss by Red Hat. All rights reserved.