public class CaseServiceImpl extends Object implements CaseService
| Constructor and Description |
|---|
CaseServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCaseComment(String caseId,
String author,
String comment) |
void |
addDataToCaseFile(String caseId,
Map<String,Object> data) |
void |
addDataToCaseFile(String caseId,
String name,
Object value) |
void |
addDynamicSubprocess(Long processInstanceId,
String processId,
Map<String,Object> parameters) |
void |
addDynamicSubprocess(String caseId,
String processId,
Map<String,Object> parameters) |
void |
addDynamicSubprocessToStage(Long processInstanceId,
String stageId,
String processId,
Map<String,Object> parameters) |
void |
addDynamicSubprocessToStage(String caseId,
String stageId,
String processId,
Map<String,Object> parameters) |
void |
addDynamicTask(Long processInstanceId,
TaskSpecification taskSpecification) |
void |
addDynamicTask(String caseId,
TaskSpecification taskSpecification) |
void |
addDynamicTaskToStage(Long processInstanceId,
String stageId,
TaskSpecification taskSpecification) |
void |
addDynamicTaskToStage(String caseId,
String stageId,
TaskSpecification taskSpecification) |
void |
assignToCaseRole(String caseId,
String role,
org.kie.api.task.model.OrganizationalEntity entity) |
void |
cancelCase(String caseId) |
void |
destroyCase(String caseId) |
Collection<CommentInstance> |
getCaseComments(String caseId,
CommentSortBy sortBy,
org.kie.internal.query.QueryContext queryContext) |
Collection<CommentInstance> |
getCaseComments(String caseId,
org.kie.internal.query.QueryContext queryContext) |
protected CaseEventSupport |
getCaseEventSupport(String deploymentId) |
CaseFileInstance |
getCaseFileInstance(String caseId) |
CaseInstance |
getCaseInstance(String caseId) |
CaseInstance |
getCaseInstance(String caseId,
boolean withData,
boolean withRoles,
boolean withMilestones,
boolean withStages) |
Collection<CaseRoleInstance> |
getCaseRoleAssignments(String caseId) |
protected CaseFileInstance |
internalGetCaseFileInstance(String caseId,
org.jbpm.services.api.model.ProcessInstanceDesc pi) |
CaseFileInstance |
newCaseFileInstance(String deploymentId,
String caseDefinition,
Map<String,Object> data) |
CaseFileInstance |
newCaseFileInstance(String deploymentId,
String caseDefinition,
Map<String,Object> data,
Map<String,org.kie.api.task.model.OrganizationalEntity> rolesAssignment) |
TaskSpecification |
newHumanTaskSpec(String taskName,
String description,
String actorIds,
String groupIds,
Map<String,Object> parameters) |
TaskSpecification |
newTaskSpec(String nodeType,
String nodeName,
Map<String,Object> parameters) |
void |
removeCaseComment(String caseId,
String commentId) |
void |
removeDataFromCaseFile(String caseId,
List<String> variableNames) |
void |
removeDataFromCaseFile(String caseId,
String name) |
void |
removeFromCaseRole(String caseId,
String role,
org.kie.api.task.model.OrganizationalEntity entity) |
void |
setCaseIdGenerator(CaseIdGenerator caseIdGenerator) |
void |
setCaseRuntimeDataService(CaseRuntimeDataService caseRuntimeDataService) |
void |
setDeploymentService(org.jbpm.services.api.DeploymentService deploymentService) |
void |
setProcessService(org.jbpm.services.api.ProcessService processService) |
void |
setRuntimeDataService(org.jbpm.services.api.RuntimeDataService runtimeDataService) |
String |
startCase(String deploymentId,
String caseDefinitionId) |
String |
startCase(String deploymentId,
String caseDefinitionId,
CaseFileInstance caseFile) |
void |
triggerAdHocFragment(Long processInstanceId,
String fragmentName,
Object data) |
void |
triggerAdHocFragment(String caseId,
String fragmentName,
Object data) |
void |
updateCaseComment(String caseId,
String commentId,
String author,
String text) |
protected org.jbpm.services.api.model.ProcessInstanceDesc |
verifyCaseIdExists(String caseId) |
public void setProcessService(org.jbpm.services.api.ProcessService processService)
public void setRuntimeDataService(org.jbpm.services.api.RuntimeDataService runtimeDataService)
public void setDeploymentService(org.jbpm.services.api.DeploymentService deploymentService)
public void setCaseRuntimeDataService(CaseRuntimeDataService caseRuntimeDataService)
public void setCaseIdGenerator(CaseIdGenerator caseIdGenerator)
public String startCase(String deploymentId, String caseDefinitionId)
startCase in interface CaseServicepublic String startCase(String deploymentId, String caseDefinitionId, CaseFileInstance caseFile)
startCase in interface CaseServicepublic CaseFileInstance getCaseFileInstance(String caseId) throws CaseNotFoundException
getCaseFileInstance in interface CaseServiceCaseNotFoundExceptionpublic CaseInstance getCaseInstance(String caseId) throws CaseNotFoundException
getCaseInstance in interface CaseServiceCaseNotFoundExceptionpublic CaseInstance getCaseInstance(String caseId, boolean withData, boolean withRoles, boolean withMilestones, boolean withStages) throws CaseNotFoundException
getCaseInstance in interface CaseServiceCaseNotFoundExceptionpublic void cancelCase(String caseId) throws CaseNotFoundException
cancelCase in interface CaseServiceCaseNotFoundExceptionpublic void destroyCase(String caseId) throws CaseNotFoundException
destroyCase in interface CaseServiceCaseNotFoundExceptionpublic void addDynamicTask(String caseId, TaskSpecification taskSpecification) throws CaseNotFoundException
addDynamicTask in interface CaseServiceCaseNotFoundExceptionpublic void addDynamicTask(Long processInstanceId, TaskSpecification taskSpecification) throws org.jbpm.services.api.ProcessInstanceNotFoundException
addDynamicTask in interface CaseServiceorg.jbpm.services.api.ProcessInstanceNotFoundExceptionpublic void addDynamicTaskToStage(String caseId, String stageId, TaskSpecification taskSpecification) throws CaseNotFoundException, StageNotFoundException
addDynamicTaskToStage in interface CaseServiceCaseNotFoundExceptionStageNotFoundExceptionpublic void addDynamicTaskToStage(Long processInstanceId, String stageId, TaskSpecification taskSpecification) throws CaseNotFoundException, StageNotFoundException
addDynamicTaskToStage in interface CaseServiceCaseNotFoundExceptionStageNotFoundExceptionpublic void addDynamicSubprocess(String caseId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocess in interface CaseServiceCaseNotFoundExceptionpublic void addDynamicSubprocess(Long processInstanceId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocess in interface CaseServiceCaseNotFoundExceptionpublic void addDynamicSubprocessToStage(String caseId, String stageId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocessToStage in interface CaseServiceCaseNotFoundExceptionpublic void addDynamicSubprocessToStage(Long processInstanceId, String stageId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocessToStage in interface CaseServiceCaseNotFoundExceptionpublic void triggerAdHocFragment(String caseId, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment in interface CaseServiceCaseNotFoundExceptionpublic void triggerAdHocFragment(Long processInstanceId, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment in interface CaseServiceCaseNotFoundExceptionpublic void addDataToCaseFile(String caseId, String name, Object value) throws CaseNotFoundException
addDataToCaseFile in interface CaseServiceCaseNotFoundExceptionpublic void addDataToCaseFile(String caseId, Map<String,Object> data) throws CaseNotFoundException
addDataToCaseFile in interface CaseServiceCaseNotFoundExceptionpublic void removeDataFromCaseFile(String caseId, String name) throws CaseNotFoundException
removeDataFromCaseFile in interface CaseServiceCaseNotFoundExceptionpublic void removeDataFromCaseFile(String caseId, List<String> variableNames) throws CaseNotFoundException
removeDataFromCaseFile in interface CaseServiceCaseNotFoundExceptionpublic void assignToCaseRole(String caseId, String role, org.kie.api.task.model.OrganizationalEntity entity) throws CaseNotFoundException
assignToCaseRole in interface CaseServiceCaseNotFoundExceptionpublic void removeFromCaseRole(String caseId, String role, org.kie.api.task.model.OrganizationalEntity entity) throws CaseNotFoundException
removeFromCaseRole in interface CaseServiceCaseNotFoundExceptionpublic Collection<CaseRoleInstance> getCaseRoleAssignments(String caseId) throws CaseNotFoundException
getCaseRoleAssignments in interface CaseServiceCaseNotFoundExceptionpublic Collection<CommentInstance> getCaseComments(String caseId, org.kie.internal.query.QueryContext queryContext) throws CaseNotFoundException
getCaseComments in interface CaseServiceCaseNotFoundExceptionpublic Collection<CommentInstance> getCaseComments(String caseId, CommentSortBy sortBy, org.kie.internal.query.QueryContext queryContext) throws CaseNotFoundException
getCaseComments in interface CaseServiceCaseNotFoundExceptionpublic void addCaseComment(String caseId, String author, String comment) throws CaseNotFoundException
addCaseComment in interface CaseServiceCaseNotFoundExceptionpublic void updateCaseComment(String caseId, String commentId, String author, String text) throws CaseNotFoundException
updateCaseComment in interface CaseServiceCaseNotFoundExceptionpublic void removeCaseComment(String caseId, String commentId) throws CaseNotFoundException
removeCaseComment in interface CaseServiceCaseNotFoundExceptionpublic CaseFileInstance newCaseFileInstance(String deploymentId, String caseDefinition, Map<String,Object> data)
newCaseFileInstance in interface CaseServicepublic CaseFileInstance newCaseFileInstance(String deploymentId, String caseDefinition, Map<String,Object> data, Map<String,org.kie.api.task.model.OrganizationalEntity> rolesAssignment)
newCaseFileInstance in interface CaseServicepublic TaskSpecification newHumanTaskSpec(String taskName, String description, String actorIds, String groupIds, Map<String,Object> parameters)
newHumanTaskSpec in interface CaseServicepublic TaskSpecification newTaskSpec(String nodeType, String nodeName, Map<String,Object> parameters)
newTaskSpec in interface CaseServiceprotected CaseFileInstance internalGetCaseFileInstance(String caseId, org.jbpm.services.api.model.ProcessInstanceDesc pi)
protected org.jbpm.services.api.model.ProcessInstanceDesc verifyCaseIdExists(String caseId) throws CaseNotFoundException
CaseNotFoundExceptionprotected CaseEventSupport getCaseEventSupport(String deploymentId)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.