Search in sources :

Example 1 with RequestEntityRelationshipDAO

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);
}
Also used : WorkflowRequestDAO(org.wso2.carbon.identity.workflow.mgt.dao.WorkflowRequestDAO) RequestEntityRelationshipDAO(org.wso2.carbon.identity.workflow.mgt.dao.RequestEntityRelationshipDAO)

Aggregations

RequestEntityRelationshipDAO (org.wso2.carbon.identity.workflow.mgt.dao.RequestEntityRelationshipDAO)1 WorkflowRequestDAO (org.wso2.carbon.identity.workflow.mgt.dao.WorkflowRequestDAO)1