Interface CaseEngineClient
public interface CaseEngineClient
Note that this file has a template for .NET Conversion
-
Method Summary
Modifier and TypeMethodDescriptionvoid
abortTaskAsync
(IUserData userData, String caseId, long taskId) Updates the case aggregates after a task has been aborted.void
abortTaskWithoutUnlockingSync
(IUserData userData, String caseId, long taskId) reverts the status of the task in the case engine back to open without removing the case lock.void
assignTaskAsync
(IUserData userData, String caseId, long taskId, Set<String> userIdsToAssign, Set<String> rolesToAssign, Set<String> teamsToAssign) Assigns a taskvoid
completeTaskAsync
(IUserData userData, AggregateModels aggregateModels, String caseId, long taskId, String taskName, String taskExitType, String taskExitLabel) Updates the case aggregates after a task has been completed.void
createCaseAsync
(IUserData userData, ILanguage language, ApplicationID applicationId, ModuleID moduleId, String createMessageEventName, com.blueriq.customerdata.api.v1.model.AggregateModel dossierAggregateModel, com.blueriq.customerdata.api.v1.model.AggregateModel metadataAggregateModel, String processMapping, String reference) Creates a new case by firing the defined message event and creating case aggregates.getCaseInfoSync
(String caseId, String languageCode) Get the case infogetTaskInfoSync
(String caseId, long taskId, String languageCode, List<String> customFieldKeys) Get the task infoRetrieves the Case Dossier for a specific casestartTaskSync
(IUserData userData, String caseId, long taskId, String languageCode) Starts a task in the Case Enginevoid
throwMessageEventAsync
(IUserData userData, ApplicationID applicationId, String messageEventName, Map<String, Object> messageEventFields, Set<String> specificCaseIds) Throws a message event to the process engine without waiting for any resultthrowMessageEventSync
(IUserData userData, ApplicationID applicationId, String messageEventName, Map<String, Object> messageEventFields, Set<String> specificCaseIds) Throws a message event to the process engine and gets the cases that are affected returned.
-
Method Details
-
createCaseAsync
void createCaseAsync(IUserData userData, ILanguage language, ApplicationID applicationId, ModuleID moduleId, String createMessageEventName, com.blueriq.customerdata.api.v1.model.AggregateModel dossierAggregateModel, com.blueriq.customerdata.api.v1.model.AggregateModel metadataAggregateModel, String processMapping, String reference) Creates a new case by firing the defined message event and creating case aggregates.- Parameters:
userData
- Object containing information about the current userlanguage
- Object containing information about the current languageapplicationId
- The ID of the applicationmoduleId
- The ID of the modulecreateMessageEventName
- The name of the message event used to create the case in the process enginedossierAggregateModel
- An AggregateModel that contains the Case Data AggregatemetadataAggregateModel
- An AggregateModel that contains the Case AggregateprocessMapping
- The process mapping to execute after case creationreference
- The functional reference for the case
-
startTaskSync
StartTaskResultModel startTaskSync(IUserData userData, String caseId, long taskId, String languageCode) Starts a task in the Case Engine- Parameters:
userData
- Object containing information about the current usercaseId
- The ID of the case for which the task will be startedtaskId
- the ID of the task that will be startedlanguageCode
- the language code of the current session- Returns:
- responseModel Object containing the response data from the Case Engine
-
completeTaskAsync
void completeTaskAsync(IUserData userData, AggregateModels aggregateModels, String caseId, long taskId, String taskName, String taskExitType, String taskExitLabel) Updates the case aggregates after a task has been completed.- Parameters:
userData
- Object containing information about the current useraggregateModels
- The process case data aggregatescaseId
- The ID of the case for which the task has been completedtaskId
- the ID of the task that has been completedtaskName
- the name of the tasktaskExitType
- the exit-type of the task exittaskExitLabel
- the label of the task exit
-
abortTaskAsync
Updates the case aggregates after a task has been aborted.- Parameters:
userData
- Object containing information about the current usercaseId
- The ID of the case for which the task has been abortedtaskId
- the ID of the task that has been aborted
-
abortTaskWithoutUnlockingSync
reverts the status of the task in the case engine back to open without removing the case lock.- Parameters:
userData
- Object containing information about the current usercaseId
- The ID of the case for which the task has to be revertedtaskId
- the ID of the task that has to be reverted
-
assignTaskAsync
void assignTaskAsync(IUserData userData, String caseId, long taskId, Set<String> userIdsToAssign, Set<String> rolesToAssign, Set<String> teamsToAssign) Assigns a task- Parameters:
userData
- the data of the current usercaseId
- the case idtaskId
- the task iduserIdsToAssign
- the userIds to assign, if this is set then rolesToAssign and teamsToAssign should be emptyrolesToAssign
- the roles to assign if this is set, the userIdsToAssign should be emptyteamsToAssign
- the teams to assign if this is set, the userIdsToAssign should be empty
-
throwMessageEventSync
Set<String> throwMessageEventSync(IUserData userData, ApplicationID applicationId, String messageEventName, Map<String, Object> messageEventFields, Set<String> specificCaseIds) Throws a message event to the process engine and gets the cases that are affected returned.- Parameters:
userData
- Object containing information about the current userapplicationId
- The ID of the applicationmessageEventName
- The name of the message event which is thrownmessageEventFields
- the fields of the message eventspecificCaseIds
- The case ids this message event is for (optional)- Returns:
- the case ids which are affected by this message event
-
throwMessageEventAsync
void throwMessageEventAsync(IUserData userData, ApplicationID applicationId, String messageEventName, Map<String, Object> messageEventFields, Set<String> specificCaseIds) Throws a message event to the process engine without waiting for any result- Parameters:
userData
- Object containing information about the current userapplicationId
- The ID of the applicationmessageEventName
- The name of the message event which is thrownmessageEventFields
- the fields of the message eventspecificCaseIds
- The case ids this message event if for (optional)
-
getCaseInfoSync
Get the case info- Parameters:
caseId
- The ID of the caselanguageCode
- the language code of the current session- Returns:
- the info of the case with the displayName in the language of the current session
-
getTaskInfoSync
GetTaskInfoResultModel getTaskInfoSync(String caseId, long taskId, String languageCode, List<String> customFieldKeys) Get the task info- Parameters:
caseId
- the ID of the casetaskId
- The ID of the tasklanguageCode
- the language code of the current sessioncustomFieldKeys
- the names of the additional custom defined fields for a task- Returns:
- the info of the task with the displayName in the language of the current session
-
readCase
Retrieves the Case Dossier for a specific case- Parameters:
caseId
- the ID of the case- Returns:
- The metadata and dossier aggregates that belong to the case.
-