private boolean hasUserPendingOrAssignedTasks(long userId, Long processInstanceId) throws SExecutionException { return taskInvolvementDelegate.hasUserPendingOrAssignedTasks(userId, processInstanceId); }
private boolean hasUserPendingOrAssignedTasks(long userId, Long processInstanceId) throws SExecutionException { return taskInvolvementDelegate.hasUserPendingOrAssignedTasks(userId, processInstanceId); }
public boolean isInvolvedInProcessInstance(final long userId, final long processInstanceId) throws ProcessInstanceNotFoundException { final TaskInvolvementDelegate taskInvolvementDelegate = new TaskInvolvementDelegate(); // IS_PROCESS_INITIATOR rule if (isProcessOrArchivedProcessInitiator(userId, processInstanceId)) { return true; } try { // IS_TASK_PERFORMER rule if (taskInvolvementDelegate.isExecutorOfArchivedTaskOfProcess(userId, processInstanceId)) { return true; } } catch (SBonitaReadException e) { throw new RetrieveException(e); } try { // IS_INVOLVED_IN_PROCESS_INSTANCE rule if (taskInvolvementDelegate.hasUserPendingOrAssignedTasks(userId, processInstanceId)) { return true; } } catch (SExecutionException e) { throw new RetrieveException(e); } return false; }
public boolean isInvolvedInProcessInstance(final long userId, final long processInstanceId) throws ProcessInstanceNotFoundException { final TaskInvolvementDelegate taskInvolvementDelegate = new TaskInvolvementDelegate(); // IS_PROCESS_INITIATOR rule if (isProcessOrArchivedProcessInitiator(userId, processInstanceId)) { return true; } try { // IS_TASK_PERFORMER rule if (taskInvolvementDelegate.isExecutorOfArchivedTaskOfProcess(userId, processInstanceId)) { return true; } } catch (SBonitaReadException e) { throw new RetrieveException(e); } try { // IS_INVOLVED_IN_PROCESS_INSTANCE rule if (taskInvolvementDelegate.hasUserPendingOrAssignedTasks(userId, processInstanceId)) { return true; } } catch (SExecutionException e) { throw new RetrieveException(e); } return false; }