Conformation page Message Erro : bonitaConsoleUrl cannot be resolved. It may lead to runtime errors.

1
0
-1

From Travel Request exapmle of bonitasoft community : i copy and paste following code with my changes for conformation page

but still same code work on travel request but not working on my app how can i solve ? what i misstaken

if(is_promote == "Promoted"){
        return "Your travel request has been successfully submitted. The travel advance limit has exceeded, please modify the request to keep it within the limit"
}
return String.format("Your travel request has been successfully submitted and has been sent to the manager for approval <br/>" +
        "To continue, <a href=\"%s\">Click here</a>, logout (Settings -> Logout) and then login as william.jobs (bpm)", bonitaConsoleUrl); **<--- ALERT : bonitaConsoleUrl cannot be resolved. It may lead to runtime errors.**

Comments

Submitted by ttoine on Thu, 05/22/2014 - 16:06

hello, what version of Bonita Studio are you using ?

1 answer

1
0
-1
This one is the BEST answer!

Hi, you see the alert because you have copied the code but not the variable 'bonitaConsoleUrl'. As you process doesn't have this variable, it is notifying you that it can't resolve it.

So, two options : 1. Recreate the variable bonitaConsoleUrl in your process, just as the example 2. Remove the reference to the variable in the message to something like

return "Your travel request has been successfully submitted and has been sent to the manager for approval <br/>" +
"To continue,  logout and then login as william.jobs (bpm)";
Notifications