Interface ActivitiDataService
-
- All Known Implementing Classes:
ActivitiDataServiceImpl
public interface ActivitiDataService
Interface to handle common request operations
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description List<String>
getApproverUserIds(List<String> associationIds, String targetUserId)
String
getProcessInstanceIdByExecutionId(String executionId)
Object
getTaskVariable(String taskId, String variableName)
boolean
hasAccessToExecutionId(String userId, String executionId)
check does given user has access to view given ExecutionIdboolean
hasCommentViewAccess(String processInstanceId, String userId)
Checks if the specified user has access to view comments associated with a task.boolean
hasMakeDecisionAccess(String userId, String taskId)
check does given user has access to make decision for given TaskIdboolean
hasViewAccess(String userId, String taskId)
check does given user has access to view given TaskIdBasicWorkflowResponse
initiateWorkflow(GenericWorkflowRequest request)
boolean
isResourceOfTaskExist(String executionId)
Deprecated.void
setTaskVariable(String taskId, String variableName, Object variableValue)
-
-
-
Method Detail
-
initiateWorkflow
BasicWorkflowResponse initiateWorkflow(GenericWorkflowRequest request) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getProcessInstanceIdByExecutionId
String getProcessInstanceIdByExecutionId(String executionId) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
getApproverUserIds
List<String> getApproverUserIds(List<String> associationIds, String targetUserId)
-
isResourceOfTaskExist
@Deprecated(since="4.2.0") boolean isResourceOfTaskExist(String executionId)
Deprecated.
-
getTaskVariable
Object getTaskVariable(String taskId, String variableName) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
setTaskVariable
void setTaskVariable(String taskId, String variableName, Object variableValue) throws BasicDataServiceException
- Throws:
BasicDataServiceException
-
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
- - id of requestor usertaskId
- - 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
-
hasAccessToExecutionId
boolean hasAccessToExecutionId(String userId, String executionId)
check does given user has access to view given ExecutionId- Parameters:
userId
- - id of requestor userexecutionId
- - 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
-
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.
-
-