use of org.wso2.carbon.identity.workflow.mgt.dao.RequestEntityRelationshipDAO in project carbon-identity-framework by wso2.
the class WorkFlowExecutorManager method updateDBAtWorkflowCompletion.
/**
* Update the state and delete relationships of request at workflow completion.
*
* @param requestId
* @param status
* @throws InternalWorkflowException
*/
private void updateDBAtWorkflowCompletion(String requestId, String status) throws InternalWorkflowException {
RequestEntityRelationshipDAO requestEntityRelationshipDAO = new RequestEntityRelationshipDAO();
WorkflowRequestDAO workflowRequestDAO = new WorkflowRequestDAO();
requestEntityRelationshipDAO.deleteRelationshipsOfRequest(requestId);
workflowRequestDAO.updateStatusOfRequest(requestId, status);
}
Aggregations