public static ParticipantNotFoundException build(Throwable e) { if (!(e instanceof ParticipantNotFoundException)) { throw new BonitaInternalException("Cannot create a ProcessNotFoundException", e); } return new ParticipantNotFoundException((ParticipantNotFoundException)e); } public String getParticipantId() {
public ParticipantDefinition getProcessParticipant(ProcessDefinitionUUID processUUID, String participantId) throws ProcessNotFoundException, ParticipantNotFoundException { FacadeUtil.checkArgsNotNull(processUUID, participantId); Set<ParticipantDefinition> participants = getProcessParticipants(processUUID); if (participants != null) { for (ParticipantDefinition participant : participants) { if (participant.getParticipantId().equals(participantId)) { return new ParticipantDefinitionImpl(participant); } } } throw new ParticipantNotFoundException(participantId, processUUID); }
@Override public ParticipantDefinition getProcessParticipant(final ProcessDefinitionUUID processUUID, final String participantId) throws ProcessNotFoundException, ParticipantNotFoundException { FacadeUtil.checkArgsNotNull(processUUID, participantId); final Set<ParticipantDefinition> participants = getProcessParticipants(processUUID); if (participants != null) { for (final ParticipantDefinition participant : participants) { if (participant.getName().equals(participantId)) { return new ParticipantDefinitionImpl(participant); } } } throw new ParticipantNotFoundException("bai_QDAPII_10", participantId, processUUID); }
public static ParticipantNotFoundException build(final String id, Throwable e) { if (!(e instanceof ParticipantNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("PartNFE3"); throw new BonitaInternalException(message, e); } return new ParticipantNotFoundException((ParticipantNotFoundException)e); } public String getParticipantId() {
public static ParticipantNotFoundException build(final String id, Throwable e) { if (!(e instanceof ParticipantNotFoundException)) { ExceptionManager manager = ExceptionManager.getInstance(); String message = manager.getIdMessage(id) + manager.getMessage("PartNFE3"); throw new BonitaInternalException(message, e); } return new ParticipantNotFoundException((ParticipantNotFoundException)e); } public String getParticipantId() {