Michael Wohlfart [
http://community.jboss.org/people/mwohlf] created the discussion
"Some questions about the script execution code"
To view the discussion, visit:
http://community.jboss.org/message/556227#556227
--------------------------------------------------------------
I am currently going through the source code of jBPM4 because I am having some problems
with custom script execution in my process definitions. Unfortunately the code base is not
very well documented for my taste, some source files contain nothing more than copyright
and author comment, which leads me to ask here for the programmer's intention. I know
the lead devs left the project but hopefully there is someone who knows what's going
on, or at least we can have a discussion about how to handle things.
* As far as I understand the ScriptManager is the central component in executing scripts
but is also used for evaluating expressions, why is the method
"evaluateScript()" never called? To me its seems like Scripts are evaluated as
Expressions in the "evaluateExpression()" method thus the defaultScriptLanguage
is never used, is this intentional or just a bug?
* Why is the EnvironmentBindings not "storing" any variables in the put() method
, isn't this necessary for some scripting languages, couldn't this easily be
achieved by extending javax.script.SimpleBindings, or is this a wanted behavior for some
reason I don't understand?
* The Constructor for EnvironmentBindings has parameters for readContext and writeContext
but they are not used, is this not yet implemented or is this deprecated?
* I came across the TaskContext and basically what I try to do is having access to the
TaskContext in my scripts, unfortunately the TaskContext is only used in the MailListener.
Scripts seems to be executen within the ExecutionContext is there any reason for not
having the TaskContext when executing Scripts?
I am willing to do some work on this in the future because I think jbpm4 is a great
framework but I need some input before hacking along...
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/556227#556227]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]