1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
public class ExtATT {
public static String ExtATTBP8CaseID(VWAttachment Bp8CaseID,Document facture, String workflowNumber, int workSpaceId, int workClassId) throws Exception {
ResourceBundle bundleParam = null;
String flagFile = new String("");
String environnement = new String("");
String nomObjectStore = new String("");
/* Récupération du paramétrage dans le fichier de properties */
try {
bundleParam = ResourceBundle.getBundle(BundleKeyNames.filenetBundle);
flagFile = bundleParam.getString(BundleKeyNames.ENVIRONNEMENT);
environnement = FileFactory.environmentFile(new File(flagFile));
nomObjectStore = bundleParam.getString(BundleKeyNames.NOM_OBJECT_STORE + "." + environnement);
} catch (Exception e) {
throw new Exception("Erreur lors de la récupération des paramétrages du fichier de properties: " + e.getMessage(), e.getCause());
}
}
} |
Partager