It's all about the answers!

Ask a question

Evaluate Execution Environment of an attribte script


Matthias Buettgen (23611926) | asked May 24 '13, 4:34 a.m.
Hi all,

I recognize a different behavior between Web and Eclipse Full Client related to the execution of attribute scripts, e.g., during the save process of the work item it seems that a script is executed once in in the Web and twice in the Eclipse Client.

Therefore I'd like to know if there exists the possibility to evaluate where the script is executed to trigger the right action.

Many thanks and cheers
Matthias

Comments
Matthias Buettgen commented May 24 '13, 4:50 a.m.

I forgot to mention that we are using 3.0.1.5

2 answers



permanent link
Ralph Schoon (59.0k23642) | answered May 24 '13, 6:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Matthias,

it depends on what type of script and potentially what type of dependent attributes, when and how often it is run as well as if it is run in the client or on a server (validation, condition).

 Using the Web UI you can debug scripts (best using Chrome), but since the scripts are run in an internal Script engine, I don not believe you can debug their environment.

permanent link
Dinesh Kumar B (4.0k413) | answered May 24 '13, 9:01 a.m.
JAZZ DEVELOPER
i usually take help of console.log and breakpoints.

from my observations, if the break point is hit, the script is executing on the client side and you would see the text from console.log recorded onto the firebug console window in case of web ui and into the eclipse workspace .metadata/.log file in case of eclipse client.

if the break point is not hit and then I would assume the script was run on the server

Your answer


Register or to post your answer.