@Override public FormMapping getFormMapping(long formMappingId) throws FormMappingNotFoundException { return processConfigurationAPI.getFormMapping(formMappingId); } }
@Override public SearchResult<FormMapping> searchFormMappings(SearchOptions searchOptions) throws SearchException { return processConfigurationAPI.searchFormMappings(searchOptions); }
public FormMapping getFormMapping(long formMappingId) throws FormMappingNotFoundException { final FormMappingService formMappingService = getTenantAccessor().getFormMappingService(); try { return ModelConvertor.toFormMapping(formMappingService.get(formMappingId), new FormRequiredAnalyzer(getTenantAccessor() .getProcessDefinitionService())); } catch (SBonitaReadException e) { throw new RetrieveException(e); } catch (SObjectNotFoundException e) { throw new FormMappingNotFoundException("no form mapping found with id" + formMappingId); } } }
public ProcessAPIImpl() { this(new ProcessManagementAPIImplDelegate(), new DocumentAPIImpl(), new ProcessConfigurationAPIImpl(), new TaskInvolvementDelegate(), new ProcessInvolvementDelegate()); }
public FormMapping getFormMapping(long formMappingId) throws FormMappingNotFoundException { final FormMappingService formMappingService = getTenantAccessor().getFormMappingService(); try { return ModelConvertor.toFormMapping(formMappingService.get(formMappingId), new FormRequiredAnalyzer(getTenantAccessor() .getProcessDefinitionService())); } catch (SBonitaReadException e) { throw new RetrieveException(e); } catch (SObjectNotFoundException e) { throw new FormMappingNotFoundException("no form mapping found with id" + formMappingId); } } }
public ProcessAPIImpl() { this(new ProcessManagementAPIImplDelegate(), new DocumentAPIImpl(), new ProcessConfigurationAPIImpl(), new TaskInvolvementDelegate(), new ProcessInvolvementDelegate()); }
public SearchResult<FormMapping> searchFormMappings(final SearchOptions searchOptions) throws SearchException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); FormMappingService formMappingService = tenantAccessor.getFormMappingService(); final SearchEntitiesDescriptor searchEntitiesDescriptor = tenantAccessor.getSearchEntitiesDescriptor(); final SearchFormMappings searchFormMappings = new SearchFormMappings(formMappingService, getTenantAccessor().getProcessDefinitionService(), searchEntitiesDescriptor.getSearchFormMappingDescriptor(), searchOptions); try { searchFormMappings.execute(); return searchFormMappings.getResult(); } catch (final SBonitaException sbe) { throw new SearchException(sbe); } }
@Override public FormMapping getFormMapping(long formMappingId) throws FormMappingNotFoundException { return processConfigurationAPI.getFormMapping(formMappingId); } }
@Override public SearchResult<FormMapping> searchFormMappings(SearchOptions searchOptions) throws SearchException { return processConfigurationAPI.searchFormMappings(searchOptions); }
public SearchResult<FormMapping> searchFormMappings(final SearchOptions searchOptions) throws SearchException { final TenantServiceAccessor tenantAccessor = getTenantAccessor(); FormMappingService formMappingService = tenantAccessor.getFormMappingService(); final SearchEntitiesDescriptor searchEntitiesDescriptor = tenantAccessor.getSearchEntitiesDescriptor(); final SearchFormMappings searchFormMappings = new SearchFormMappings(formMappingService, getTenantAccessor().getProcessDefinitionService(), searchEntitiesDescriptor.getSearchFormMappingDescriptor(), searchOptions); try { searchFormMappings.execute(); return searchFormMappings.getResult(); } catch (final SBonitaException sbe) { throw new SearchException(sbe); } }