Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Topic-icon Question Stockage des erreurs d'execution d'un process

  • Aminatou
  • Aminatou's Avatar Topic Author
15 May 2017 13:57 - 15 May 2017 14:51 #1 by Aminatou
Bonjour,
Je voudrais gérer de manière globale les erreurs d'execution d'un process. J'arrive à récupérer le message d'erreur. Ce qui me cause des soucis est comment récupérer le nom du composant en erreur?
J'ai ajouté à mon process globale un composant "java native scripting" contenant le code ci dessous

errorsOnly = true;
err = __ctx__.getLstVariablesByName("CORE_STACK_TRACE",errorsOnly);
__ctx__.publishVariable("~/ErrorsFound", err.size());

// Build Error String
errorPath = "";
errorString = "";

if (err.size() > 0) {
errorPath = err.get(0).name;
errorString = err.get(0).value;
}

// Publish to variables on the root process
__ctx__.publishVariable("~/ErrorPath", errorPath);
__ctx__.publishVariable("~/ErrorString", errorString);


la variable "errorString" contient bien le message d'erreur
J'aimerais récupérer dans la variable "errorPath" le nom du composant en erreur
Last edit: 15 May 2017 14:51 by Aminatou.