|
KIE Remote Services :: Services 6.1.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kie.services.remote.cdi.ProcessRequestBean
@RequestScoped public class ProcessRequestBean
This class is used by both the RuntimeResource and TaskResource to do the core operations on
the Deployment/Runtime's KieSession and TaskService.
| Constructor Summary | |
|---|---|
ProcessRequestBean()
|
|
| Method Summary | |
|---|---|
Object |
doKieSessionOperation(org.kie.api.command.Command<?> cmd,
String deploymentId,
Long processInstanceId,
String errorMsg)
Executes a command on the KieSession from the proper RuntimeManager. |
Object |
doRestTaskOperation(Long taskId,
String deploymentId,
Long processInstanceId,
org.kie.api.task.model.Task task,
org.jbpm.services.task.commands.TaskCommand<?> cmd)
|
Object |
doTaskOperation(Long taskId,
String deploymentId,
Long processInstanceId,
org.kie.api.task.model.Task task,
org.jbpm.services.task.commands.TaskCommand<?> cmd)
There are 3 possibilities here: This is an operation that should be done on a deployment if possible, but it's an independent task. |
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 |
setAuditLogService(org.jbpm.process.audit.AuditLogService auditLogService)
|
void |
setInjectedTaskService(org.kie.api.task.TaskService taskService)
|
void |
setRuntimeMgrMgr(DeploymentInfoBean runtimeMgrMgr)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessRequestBean()
| Method Detail |
|---|
public void setRuntimeMgrMgr(DeploymentInfoBean runtimeMgrMgr)
public void setInjectedTaskService(org.kie.api.task.TaskService taskService)
public void setAuditLogService(org.jbpm.process.audit.AuditLogService auditLogService)
public Object doKieSessionOperation(org.kie.api.command.Command<?> cmd,
String deploymentId,
Long processInstanceId,
String errorMsg)
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 variable
public Object doTaskOperation(Long taskId,
String deploymentId,
Long processInstanceId,
org.kie.api.task.model.Task task,
org.jbpm.services.task.commands.TaskCommand<?> cmd)
KieSession and should be done via the injected TaskService.
taskId - deploymentId - processInstanceId - cmd - onDeployment - errorMsg -
public Object doRestTaskOperation(Long taskId,
String deploymentId,
Long processInstanceId,
org.kie.api.task.model.Task task,
org.jbpm.services.task.commands.TaskCommand<?> cmd)
@PostConstruct public void initAuditLogService()
public org.jbpm.process.audit.AuditLogService getAuditLogService()
|
KIE Remote Services :: Services 6.1.0.Beta2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||