Package org.openiam.srvc.activiti
Interface ActivitiService
-
- All Known Implementing Classes:
ActivitiServiceImpl
public interface ActivitiService
-
-
Method Summary
-
-
-
Method Detail
-
initiateWorkflow
BasicWorkflowResponse initiateWorkflow(GenericWorkflowRequest request)
-
revokeAccess
Response revokeAccess(RevokeAccessRequestModel request)
-
terminateUser
Response terminateUser(TerminateUserRequestModel request)
-
initiateEditUserWorkflow
SaveTemplateProfileResponse initiateEditUserWorkflow(UserProfileRequestModel request)
-
initiateUserAcceptedInviteWorkflow
SaveTemplateProfileResponse initiateUserAcceptedInviteWorkflow(UserProfileRequestModel request)
-
addUserAndInvite
Response addUserAndInvite(NewUserProfileRequestModel request)
-
initiateCreateUserRequestWorkflow
@Deprecated SaveTemplateProfileResponse initiateCreateUserRequestWorkflow(CreateAccessRequestModel request)
Deprecated.
-
initiateCreatePrivilegedAccessRequestWorkflow
SaveTemplateProfileResponse initiateCreatePrivilegedAccessRequestWorkflow(CreateAccessRequestModel request)
-
initiateCreateUserRequestWorkflowApprovers
SaveTemplateProfileResponse initiateCreateUserRequestWorkflowApprovers(CreateAccessRequestModel request)
-
initiateCertificationWorkflow
BasicWorkflowResponse initiateCertificationWorkflow(CreateCertificateRequestModel request)
-
initiateNewHireRequest
SaveTemplateProfileResponse initiateNewHireRequest(NewUserProfileRequestModel newHireRequest)
-
claimRequest
Response claimRequest(ActivitiClaimRequest newHireRequest)
-
delegateTask
Response delegateTask(DelegateRequestModel request)
-
escalateTask
Response escalateTask(EscalateRequestModel request)
-
delegateTaskToAlternate
Response delegateTaskToAlternate(DelegateRequestModel request)
-
makeDecision
Response makeDecision(ActivitiRequestDecision newHireRequest)
-
makeManualDecision
Response makeManualDecision(ActivitiRequestDecision newHireRequest)
-
getTasksForCandidateUserWithFilter
TaskListWrapper getTasksForCandidateUserWithFilter(String userId, int from, int size, String description, Date fromDate, Date toDate)
-
getTasksForAssignedUserWithFilter
TaskListWrapper getTasksForAssignedUserWithFilter(String userId, int from, int size, String description, Date fromDate, Date toDate)
-
makeAccessReviewDecision
Response makeAccessReviewDecision(ActivitiRequestDecision request)
-
makeAccessReviewDecisionBulk
void makeAccessReviewDecisionBulk(AccessReviewDecisionListRequest request)
Bulk complete for batch of requests in async mode
-
getNumOfAssignedTasks
@Deprecated int getNumOfAssignedTasks(String userId)
Deprecated.
-
getNumOfCandidateTasks
@Deprecated int getNumOfCandidateTasks(String userId)
Deprecated.
-
getNumOfAssignedTasksWithFilter
int getNumOfAssignedTasksWithFilter(String userId, String description, Date fromDate, Date toDate)
-
getNumOfCandidateTasksWithFilter
int getNumOfCandidateTasksWithFilter(String userId, String description, Date fromDate, Date toDate)
-
getTask
TaskWrapper getTask(String taskId)
-
getTasksByInvolvedUser
TaskListWrapper getTasksByInvolvedUser(String involvedUserId, int from, int size)
-
getTaskFromHistory
TaskWrapper getTaskFromHistory(String executionId, String taskId)
-
getTaskInLastState
TaskWrapper getTaskInLastState(String taskId)
-
getHistory
TaskListResponse getHistory(HistorySearchBean searchBean, int from, int size)
-
getHistoryForInstance
List<TaskHistoryWrapper> getHistoryForInstance(String instanceId)
-
countAccessCertificationTasks
IntResponse countAccessCertificationTasks(HistorySearchBean searchBean)
-
getAccessCertificationTasks
TaskListResponse getAccessCertificationTasks(HistorySearchBean searchBean, int from, int size)
-
getPivotViewData
TaskListResponse getPivotViewData(HistorySearchBean searchBean, int from, int size)
Provides data only for Pivot view. Don't reuse it if any changes are required.- Parameters:
searchBean
- - search bean for filteringfrom
- - 1st resultsize
- - number of entities to return- Returns:
- list of entities wrapped by
TaskListWrapper
-
count
int count(HistorySearchBean searchBean)
-
deleteTasksByCertId
void deleteTasksByCertId(String certId, String deleteReason)
Method is used when certification config is deleted. after that we need to clean up hanged tasks - completed or not doesn't matter.- Parameters:
certId
-deleteReason
-
-
cancelTask
Response cancelTask(ActivitiRequestDecision request)
-
getTaskRequestedRes
TaskResRequestedWrapper getTaskRequestedRes(String taskId, Map<String,String> blockedRoleIds, Map<String,String> blockedGroupIds)
-
findTasks
TaskListResponse findTasks(TaskSearchBean searchBean, int from, int size)
-
getHistoryOfApproval
TaskListWrapper getHistoryOfApproval(HistorySearchBean searchBean, int from, int size)
-
getHistoryOfProcessInstances
TaskListWrapper getHistoryOfProcessInstances(HistorySearchBean historySearchBean, int from, int size)
-
countTasks
int countTasks(TaskSearchBean searchBean)
-
getApproverUserIds
List<String> getApproverUserIds(List<String> associationIds, String targetUserId)
-
doesUserHaveAccessToRevocation
Boolean doesUserHaveAccessToRevocation(RevokeAccessRequestModel requestModel)
-
getCompletedProcessInstanceIds
List<String> getCompletedProcessInstanceIds(Date completedBefore, Date completedAfter)
-
hasMakeDecisionAccess
Boolean hasMakeDecisionAccess(String userId, String taskId)
check does given user has access to make decision for given TaskId- Parameters:
userId
- - id of requestor usertaskId
- - id of Task to check- Returns:
- true if user has access to make decision (he is assignee user or CANDIDATE user), false - otherwise
-
hasViewAccess
Boolean hasViewAccess(String userId, String taskId)
check does given user has access to view given TaskId- Parameters:
userId
- - user id of requestertaskId
- - id of task to check- Returns:
- true if user has access to view task (he is assignee user or CANDIDATE user or Owner of the task), false - otherwise
-
hasAccessToExecution
Boolean hasAccessToExecution(String userId, String executionId)
check does given user has access to view given ExecutionId- Parameters:
userId
- - user id of requesterexecutionId
- - id of execution to check- Returns:
- true if user has access to execution (he is assignee user or CANDIDATE user or Owner of the task), false - otherwise
-
uploadAttachment
String uploadAttachment(UploadAttachmentRequest request)
UploadAttachmentRequest#taskId - associated Task (optional) UploadAttachmentRequest#processInstanceId - associated Process instanceId (optional) UploadAttachmentRequest#fileName - original file name UploadAttachmentRequest#f - file content in Base64 encoded format UploadAttachmentRequest#referenceId - reference Id - if of reference forCommentTo.ROLE
orCommentTo.GROUP
orCommentTo.TASK
UploadAttachmentRequest#referenceType - type of attachmentCommentTo
- Returns:
- - Id of new attachment, null if any errors happen
-
addComment
String addComment(AccessCertificationTaskCommentRequest request)
-
getProcessInstanceComments
List<AccessCertificationTaskComment> getProcessInstanceComments(GetAccessCertificationCommentsRequest request)
-
getAttachmentBody
UploadAttachment getAttachmentBody(String id)
-
getAttachments
List<UploadAttachment> getAttachments(String processInstanceId)
-
getProcessInstancesRequestedRes
List<TaskResRequestedWithProcessInstanceIdWrapper> getProcessInstancesRequestedRes(TaskSearchBean searchBean)
no another choice, have to select this data for the set of active tasks by process instance Id.- Parameters:
searchBean
-- Returns:
-
getRequestedResForOpenAndCompletedTasks
List<TaskResRequestedWithProcessInstanceIdWrapper> getRequestedResForOpenAndCompletedTasks(TaskSearchBean searchBean)
-
getProcessInstancesComments
List<ProcessInstanceComment> getProcessInstancesComments(TaskSearchBean searchBean)
Get multiple comments for multiple process instance ids- Parameters:
searchBean
-- Returns:
-
getAccessCertificationHistoryForUser
List<AccessCertificationHistoryObject> getAccessCertificationHistoryForUser(String userId, int from, int size)
get history of user's certification- Parameters:
userId
- - id of required userfrom
- - 1st resultsize
- - size of the result- Returns:
- List of
AccessCertificationHistoryObject
-
findCampaignTasks
CampaignTaskListResponse findCampaignTasks(AccessCertificationCampaignSearchBean searchBean, int from, int size)
-
findCampaignsFullStat
CampaignStatsResponse findCampaignsFullStat(AccessCertificationCampaignSearchBean searchBean)
-
getRequestedResourcesUserRelated
TaskResRequestedWrapper getRequestedResourcesUserRelated(String taskId)
-
hasCommentViewAccess
boolean hasCommentViewAccess(String processInstanceId, String userId)
Checks if the specified user has access to view comments associated with a task.- Parameters:
processInstanceId
- The ID of the process instance.userId
- The ID of the user whose access is being checked.- Returns:
true
if the user has access to view comments,false
otherwise.
-
initiateAsyncCreateUserRequestWorkflowApprovers
void initiateAsyncCreateUserRequestWorkflowApprovers(CreateAccessRequestModel request)
Calls ActivitiAPI.CreateUserRequestWorkflowApprovers using rabbitMQSender.send (i.e., w/o waiting for the response)- Parameters:
request
- CreateAccessRequestModel
-
-