Hide Forgot
Affects: Documentation (Ref Guide, User Guide, etc.) Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/501573 project_key: SOA http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/4.3.CP02/html-single/JBPM_Reference_Manual/index.html#script.element The description of "expression" === the beanshell script. If you don't specify variable[b] elements, you can write the expression as the content of the script element (omitting the expression element tag). === This description is a bit confusing for users who think "expression as the content of the script element" is the basic function of script element. So I'd like to add one sentence to it, though it might be verbose. === the beanshell script. If you don't specify variable[b] elements, you can write the expression as the content of the script element (omitting the expression element tag). If you use "expression as the content of the script element" with variable and/or expression elements, the content of the script element will be ignored. ===
Source code is easier to understand :) http://anonsvn.jboss.org/repos/jbpm/jbpm3/tags/jbpm-3.2.7.CR3/modules/core/src/main/java/org/jbpm/graph/action/Script.java public void read(Element scriptElement, JpdlXmlReader jpdlReader) { if (scriptElement.isTextOnly()) { expression = scriptElement.getText(); } else { this.variableAccesses = new HashSet(jpdlReader.readVariableAccesses(scriptElement)); expression = scriptElement.element("expression").getText(); } }
Release Notes Docs Status: Added: Not Required Writer: Added: dlesage
Modified paragraph and sample source code added to the document. Thanks.
I believe that Toshiya posted the source code here to demonstarte the functionality for you to provide enough information to fix the documentation. It is not a sample code, it shows internals of SOA-P that are likely to change. This code should not be present in the docs definitely!
Aha, Martin is correct. I just pasted the source code from actual jbpm source so that we can understand how script element works. Please remove it from the document :)
Link: Added: This issue Cloned to SOA-3638