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 CaseService
public String startCase(String deploymentId, String caseDefinitionId, CaseFileInstance caseFile)
startCase
in interface CaseService
public CaseFileInstance getCaseFileInstance(String caseId) throws CaseNotFoundException
getCaseFileInstance
in interface CaseService
CaseNotFoundException
public CaseInstance getCaseInstance(String caseId) throws CaseNotFoundException
getCaseInstance
in interface CaseService
CaseNotFoundException
public CaseInstance getCaseInstance(String caseId, boolean withData, boolean withRoles, boolean withMilestones, boolean withStages) throws CaseNotFoundException
getCaseInstance
in interface CaseService
CaseNotFoundException
public void closeCase(String caseId, String comment) throws CaseNotFoundException
closeCase
in interface CaseService
CaseNotFoundException
public void cancelCase(String caseId) throws CaseNotFoundException
cancelCase
in interface CaseService
CaseNotFoundException
public void destroyCase(String caseId) throws CaseNotFoundException
destroyCase
in interface CaseService
CaseNotFoundException
public void reopenCase(String caseId, String deploymentId, String caseDefinitionId) throws CaseNotFoundException
reopenCase
in interface CaseService
CaseNotFoundException
public void reopenCase(String caseId, String deploymentId, String caseDefinitionId, Map<String,Object> data) throws CaseNotFoundException
reopenCase
in interface CaseService
CaseNotFoundException
public void addDynamicTask(String caseId, TaskSpecification taskSpecification) throws CaseNotFoundException
addDynamicTask
in interface CaseService
CaseNotFoundException
public void addDynamicTask(Long processInstanceId, TaskSpecification taskSpecification) throws org.jbpm.services.api.ProcessInstanceNotFoundException
addDynamicTask
in interface CaseService
org.jbpm.services.api.ProcessInstanceNotFoundException
public void addDynamicTaskToStage(String caseId, String stage, TaskSpecification taskSpecification) throws CaseNotFoundException, StageNotFoundException
addDynamicTaskToStage
in interface CaseService
CaseNotFoundException
StageNotFoundException
public void addDynamicTaskToStage(Long processInstanceId, String stage, TaskSpecification taskSpecification) throws CaseNotFoundException, StageNotFoundException
addDynamicTaskToStage
in interface CaseService
CaseNotFoundException
StageNotFoundException
public Long addDynamicSubprocess(String caseId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocess
in interface CaseService
CaseNotFoundException
public Long addDynamicSubprocess(Long processInstanceId, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocess
in interface CaseService
CaseNotFoundException
public Long addDynamicSubprocessToStage(String caseId, String stage, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocessToStage
in interface CaseService
CaseNotFoundException
public Long addDynamicSubprocessToStage(Long processInstanceId, String stage, String processId, Map<String,Object> parameters) throws CaseNotFoundException
addDynamicSubprocessToStage
in interface CaseService
CaseNotFoundException
public void triggerAdHocFragment(String caseId, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment
in interface CaseService
CaseNotFoundException
public void triggerAdHocFragment(Long processInstanceId, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment
in interface CaseService
CaseNotFoundException
public void triggerAdHocFragment(String caseId, String stage, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment
in interface CaseService
CaseNotFoundException
public void triggerAdHocFragment(Long processInstanceId, String stage, String fragmentName, Object data) throws CaseNotFoundException
triggerAdHocFragment
in interface CaseService
CaseNotFoundException
public void addDataToCaseFile(String caseId, String name, Object value, String... restrictedTo) throws CaseNotFoundException
addDataToCaseFile
in interface CaseService
CaseNotFoundException
public void addDataToCaseFile(String caseId, Map<String,Object> data, String... restrictedTo) throws CaseNotFoundException
addDataToCaseFile
in interface CaseService
CaseNotFoundException
public void removeDataFromCaseFile(String caseId, String name) throws CaseNotFoundException
removeDataFromCaseFile
in interface CaseService
CaseNotFoundException
public void removeDataFromCaseFile(String caseId, List<String> variableNames) throws CaseNotFoundException
removeDataFromCaseFile
in interface CaseService
CaseNotFoundException
public void assignToCaseRole(String caseId, String role, org.kie.api.task.model.OrganizationalEntity entity) throws CaseNotFoundException
assignToCaseRole
in interface CaseService
CaseNotFoundException
public void removeFromCaseRole(String caseId, String role, org.kie.api.task.model.OrganizationalEntity entity) throws CaseNotFoundException
removeFromCaseRole
in interface CaseService
CaseNotFoundException
public Collection<CaseRoleInstance> getCaseRoleAssignments(String caseId) throws CaseNotFoundException
getCaseRoleAssignments
in interface CaseService
CaseNotFoundException
public Collection<CommentInstance> getCaseComments(String caseId, org.kie.api.runtime.query.QueryContext queryContext) throws CaseNotFoundException
getCaseComments
in interface CaseService
CaseNotFoundException
public Collection<CommentInstance> getCaseComments(String caseId, CommentSortBy sortBy, org.kie.api.runtime.query.QueryContext queryContext) throws CaseNotFoundException
getCaseComments
in interface CaseService
CaseNotFoundException
public String addCaseComment(String caseId, String author, String comment, String... restrictedTo) throws CaseNotFoundException
addCaseComment
in interface CaseService
CaseNotFoundException
public void updateCaseComment(String caseId, String commentId, String author, String text, String... restrictedTo) throws CaseNotFoundException
updateCaseComment
in interface CaseService
CaseNotFoundException
public void removeCaseComment(String caseId, String commentId) throws CaseNotFoundException
removeCaseComment
in interface CaseService
CaseNotFoundException
public CaseFileInstance newCaseFileInstance(String deploymentId, String caseDefinition, Map<String,Object> data)
newCaseFileInstance
in interface CaseService
public CaseFileInstance newCaseFileInstanceWithRestrictions(String deploymentId, String caseDefinition, Map<String,Object> data, Map<String,List<String>> accessRestrictions)
newCaseFileInstanceWithRestrictions
in interface CaseService
public CaseFileInstance newCaseFileInstance(String deploymentId, String caseDefinition, Map<String,Object> data, Map<String,org.kie.api.task.model.OrganizationalEntity> rolesAssignment)
newCaseFileInstance
in interface CaseService
public 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 CaseService
public TaskSpecification newHumanTaskSpec(String taskName, String description, String actorIds, String groupIds, Map<String,Object> parameters)
newHumanTaskSpec
in interface CaseService
public TaskSpecification newTaskSpec(String nodeType, String nodeName, Map<String,Object> parameters)
newTaskSpec
in interface CaseService
public org.kie.api.task.model.User newUser(String userId)
newUser
in interface CaseService
public org.kie.api.task.model.Group newGroup(String groupId)
newGroup
in interface CaseService
protected CaseFileInstance internalGetCaseFileInstance(String caseId, String deploymentId)
protected void internalTriggerAdHocFragment(org.jbpm.services.api.model.ProcessInstanceDesc pi, String fragmentName, Object data) throws CaseNotFoundException
CaseNotFoundException
protected org.jbpm.services.api.model.ProcessInstanceDesc verifyCaseIdExists(String caseId) throws CaseNotFoundException
CaseNotFoundException
protected org.jbpm.services.api.model.ProcessInstanceDesc verifyCaseIdExisted(String caseId) throws CaseNotFoundException
CaseNotFoundException
protected CaseEventSupport getCaseEventSupport(String deploymentId)
protected boolean isEmpty(Collection<?> data)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.