Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width20%
<call-object-method>
Column
Calls a Java object method using the given fields as parameters.
Info
titleProposed Changes
  • Deprecate and replace with <script>.
Section
Column
width20%
<script>
<call-service>
Column
Executes a script
Invokes an OFBiz service.

Attributes

locationservice-name

optional

The location name of the script file

Info
titleProposed Changes
  • Currently, the location attribute is optional. Require the location attribute.
  • Add a new attribute - script - that can be used for executing small scripts instead of requiring a file. Require the location or the script attribute.
  • Currently, the element behavior when used with Mini-language scripts is different than using the <call-simple-method> element. Make the behavior the same as the <call-simple-method> element.
  • Currently, Mini-language error messages/results are not updated from script error messages/results. Update Mini-language error messages/results from script error messages/results.
Section

service to invoke

in-map-name

optional

The name of the field that contains the service IN attributes

include-user-login

optional

If "true" the current UserLogin GenericValue is copied to the service IN attributes

break-on-error

optional

If "true" script execution stops if the called service returns an error

error-code

optional

 

require-new-transaction

optional

 

transaction-timeout

optional

 

success-code

optional

 


Child Elements

<error-prefix>

optional

<error-suffix>

optional

<success-prefix>

optional

<success-suffix>

optional

<message-prefix>

optional

<message-suffix>

optional

<default-

Column
width20%
<call-service>
Column
Invokes an OFBiz service.

Attributes

service-name

optional

The name of the service to invoke

in-map-name

optional

The name of the field that contains the service IN attributes

include-user-login

optional

If "true" the current UserLogin GenericValue is copied to the service IN attributes

break-on-error

optional

If "true" script execution stops if the called service returns an error

error-code

optional

 

require-new-transaction

optional

 

transaction-timeout

optional

 

success-code

optional

 

Child Elements

<error-prefix>

optional

<error-suffix>

optional

<success-prefix>

optional

<success-suffix>

optional

<message-prefix>

optional

<message-suffix>

optional

<default-message>

optional

<results-to-map>

optional

<result-to-field>

optional

<result-to-request>

optional

<result-to-session>

optional

<result-to-result>

optional


Info
titleProposed Changes
  • Currently, the service-name attribute is optional. Require the service-name attribute.
  • Currently, the in-map-name Map is passed directly to the service. Have the in-map-name attribute behave like the <set-service-fields> map attribute.

...

Section
Column
width20%
<call-simple-method>
Column
Invokes a Mini-language simple method.

Attributes

xml-resource

optional

The location of the <simple-method> file

method-name

optional

The name of the <simple-method> element


Info
titleProposed Changes
  • Currently, the method-name attribute is optional. Require the method-name attribute.
  • Add a new attribute - memory-model ("inline"/"function") - that can control variable scoping in the called method. When set to "inline" the behavior is the same as now - variables declared in the called method are accessible to the calling method. When set to "function" variables declared in the called method are local to that method, and only variables stored in the method result will be returned to the calling method.
Section
Column
width20%
<script>
Column
Executes a script.

Attributes

location

optional

The location of the script file


Info
titleProposed Changes
  • Currently, the location attribute is optional. Require the location attribute.
  • Add a new attribute - script - that can be used for executing small scripts instead of requiring a file. Require the location or the script attribute.
  • Currently, the element behavior when used with Mini-language scripts is different than using the <call-simple-method> element. Make the behavior the same as the <call-simple-method> element.
  • Currently, Mini-language error messages/results are not updated from script error messages/results. Update Mini-language error messages/results from script error messages/results.


Entity Operations

<clear-cache-line>

...