public class CaseServiceImpl extends Object implements CaseService
| Constructor and Description |
|---|
CaseServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
addCaseComment(String caseId,
String author,
String comment,
String... restrictedTo) |
void |
addDataToCaseFile(String caseId,
Map<String,Object> data,
String... restrictedTo) |
void |
addDataToCaseFile(String caseId,
String name,
Object value,
String... restrictedTo) |
Long |
addDynamicSubprocess(Long processInstanceId,
String processId,
Map<String,Object> parameters) |
Long |
addDynamicSubprocess(String caseId,
String processId,
Map<String,Object> parameters) |
Long |
addDynamicSubprocessToStage(Long processInstanceId,
String stage,
String processId,
Map<String,Object> parameters) |
Long |
addDynamicSubprocessToStage(String caseId,
String stage,
String processId,
Map<String,Object> parameters) |
void |
addDynamicTask(Long processInstanceId,
TaskSpecification taskSpecification) |
void |
addDynamicTask(String caseId,
TaskSpecification taskSpecification) |
void |
addDynamicTaskToStage(Long processInstanceId,
String stage,
TaskSpecification taskSpecification) |
void |
addDynamicTaskToStage(String caseId,
String stage,
TaskSpecification taskSpecification) |
void |
assignToCaseRole(String caseId,
String role,
org.kie.api.task.model.OrganizationalEntity entity) |
void |
cancelCase(String caseId) |
void |
closeCase(String caseId,
String comment) |
void |
destroyCase(String caseId) |
Collection<CommentInstance> |
getCaseComments(String caseId,
CommentSortBy sortBy,
org.kie.api.runtime.query.QueryContext queryContext) |
Collection<CommentInstance> |
getCaseComments(String caseId,
org.kie.api.runtime.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,
String deploymentId) |
protected void |
internalTriggerAdHocFragment(org.jbpm.services.api.model.ProcessInstanceDesc pi,
String fragmentName,
Object data) |
protected boolean |
isEmpty(Collection<?> data) |
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) |
CaseFileInstance |
newCaseFileInstanceWithRestrictions(String deploymentId,
String caseDefinition,
Map<String,Object> data,
Map<String,List<String>> accessRestrictions) |
CaseFileInstance |
newCaseFileInstanceWithRestrictions(String deploymentId,
String caseDefinition,
Map<String,Object> data,
Map<String,org.kie.api.task.model.OrganizationalEntity> rolesAssignment,
Map<String,List<String>> accessRestrictions) |
org.kie.api.task.model.Group |
newGroup(String groupId) |
TaskSpecification |
newHumanTaskSpec(String taskName,
String description,
String actorIds,
String groupIds,
Map<String,Object> parameters) |
TaskSpecification |
newTaskSpec(String nodeType,
String nodeName,
Map<String,Object> parameters) |
org.kie.api.task.model.User |
newUser(String userId) |
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 |
reopenCase(String caseId,
String deploymentId,
String caseDefinitionId) |
void |
reopenCase(String caseId,
String deploymentId,
String caseDefinitionId,
Map<String,Object> data) |
void |
setAuthorizationManager(AuthorizationManager authorizationManager) |
void |
setCaseIdGenerator(CaseIdGenerator caseIdGenerator) |
void |
setCaseRuntimeDataService(CaseRuntimeDataService caseRuntimeDataService) |
void |
setCommandService(org.jbpm.shared.services.impl.TransactionalCommandService commandService) |
void |
setDeploymentService(org.jbpm.services.api.DeploymentService deploymentService) |
void |
setIdentityProvider(org.kie.internal.identity.IdentityProvider identityProvider) |
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(Long processInstanceId,
String stage,
String fragmentName,
Object data) |
void |
triggerAdHocFragment(String caseId,
String fragmentName,
Object data) |
void |
triggerAdHocFragment(String caseId,
String stage,
String fragmentName,
Object data) |
void |
updateCaseComment(String caseId,
String commentId,
String author,
String text,
String... restrictedTo) |
protected org.jbpm.services.api.model.ProcessInstanceDesc |
verifyCaseIdExisted(String caseId) |
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 void setCommandService(org.jbpm.shared.services.impl.TransactionalCommandService commandService)
public void setAuthorizationManager(AuthorizationManager authorizationManager)
public void setIdentityProvider(org.kie.internal.identity.IdentityProvider identityProvider)
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 closeCase(String caseId, String comment) throws CaseNotFoundException
closeCase in interface CaseServiceCaseNotFoundExceptionpublic void cancelCase(String caseId) throws CaseNotFoundException
cancelCase in interface CaseServiceCaseNotFoundExceptionpublic void destroyCase(String caseId) throws CaseNotFoundException
destroyCase in interface CaseServiceCaseNotFoundExceptionpublic void reopenCase(String caseId, String deploymentId, String caseDefinitionId) throws CaseNotFoundException
reopenCase in interface CaseServiceCaseNotFoundExceptionpublic void reopenCase(String caseId, String deploymentId, String caseDefinitionId, Map<String,Object> data) throws CaseNotFoundException
reopenCase 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 stage, TaskSpecification taskSpecification) throws CaseNotFoundException, StageNotFoundException
addDynamicTaskToStage in interface CaseServiceCaseNotFoundExceptionStageNotFoundExceptionpublic void addDynamicTaskToStage(Long processInstanceId, String stage, TaskSpecification taskSpecification) throws CaseNotFoundException, StageNotFoundException
addDynamicTaskToStage in interface CaseServiceCaseNotFoundExceptionStageNotFoundExceptionpublic Long addDynamicSubprocess(String caseId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocess in interface CaseServiceCaseNotFoundExceptionpublic Long addDynamicSubprocess(Long processInstanceId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocess in interface CaseServiceCaseNotFoundExceptionpublic Long addDynamicSubprocessToStage(String caseId, String stage, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocessToStage in interface CaseServiceCaseNotFoundExceptionpublic Long addDynamicSubprocessToStage(Long processInstanceId, String stage, 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 triggerAdHocFragment(String caseId, String stage, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment in interface CaseServiceCaseNotFoundExceptionpublic void triggerAdHocFragment(Long processInstanceId, String stage, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment in interface CaseServiceCaseNotFoundExceptionpublic void addDataToCaseFile(String caseId, String name, Object value, String... restrictedTo) throws CaseNotFoundException
addDataToCaseFile in interface CaseServiceCaseNotFoundExceptionpublic void addDataToCaseFile(String caseId, Map<String,Object> data, String... restrictedTo) 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.api.runtime.query.QueryContext queryContext) throws CaseNotFoundException
getCaseComments in interface CaseServiceCaseNotFoundExceptionpublic Collection<CommentInstance> getCaseComments(String caseId, CommentSortBy sortBy, org.kie.api.runtime.query.QueryContext queryContext) throws CaseNotFoundException
getCaseComments in interface CaseServiceCaseNotFoundExceptionpublic String addCaseComment(String caseId, String author, String comment, String... restrictedTo) throws CaseNotFoundException
addCaseComment in interface CaseServiceCaseNotFoundExceptionpublic void updateCaseComment(String caseId, String commentId, String author, String text, String... restrictedTo) 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 newCaseFileInstanceWithRestrictions(String deploymentId, String caseDefinition, Map<String,Object> data, Map<String,List<String>> accessRestrictions)
newCaseFileInstanceWithRestrictions 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 CaseFileInstance newCaseFileInstanceWithRestrictions(String deploymentId, String caseDefinition, Map<String,Object> data, Map<String,org.kie.api.task.model.OrganizationalEntity> rolesAssignment, Map<String,List<String>> accessRestrictions)
newCaseFileInstanceWithRestrictions 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 CaseServicepublic org.kie.api.task.model.User newUser(String userId)
newUser in interface CaseServicepublic org.kie.api.task.model.Group newGroup(String groupId)
newGroup in interface CaseServiceprotected CaseFileInstance internalGetCaseFileInstance(String caseId, String deploymentId)
protected void internalTriggerAdHocFragment(org.jbpm.services.api.model.ProcessInstanceDesc pi,
String fragmentName,
Object data)
throws CaseNotFoundException
CaseNotFoundExceptionprotected org.jbpm.services.api.model.ProcessInstanceDesc verifyCaseIdExists(String caseId) throws CaseNotFoundException
CaseNotFoundExceptionprotected org.jbpm.services.api.model.ProcessInstanceDesc verifyCaseIdExisted(String caseId) throws CaseNotFoundException
CaseNotFoundExceptionprotected CaseEventSupport getCaseEventSupport(String deploymentId)
protected boolean isEmpty(Collection<?> data)
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.