Versions Compared

Key

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

...

Section
Column
width20%
<call-class-method>
Column
Calls a Java class method using the given fields as parameters.
Info
titleProposed Changes
  • Deprecate and replace with <script>.
Section
Column
width20%
<call-
object
map-
method>
processor>
Column
Calls a Java object method using the given fields as parameters.
Info
titleProposed Changes
  • Deprecate and replace with <script>.
Section
Invokes a Map processing element.

Attributes

xml-resource

optional

The location of the Map processor file

processor

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

Attributes

service-name

optional

The name of the service to invoke Map processor element

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.

Map to be processed

out-map-name

optional

The name of the field that will receive the processed Map

error-list-name

optional

The name of the field that will contain a list of error messages generated by the processor


Child Elements

<simple-map-processor>

optional


Info
titleProposed Changes
  • Deprecate and replace with a <call-simple-method> element.
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%
<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

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

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


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 attributeDeprecate and replace with <call-service> element. Add an async attribute ("true"/"false") to the <call-service> element.
Section
Column
width20%
<call-
map
service-
processor>
asynch>
Column
Invokes
a Map processing element.
an OFBiz service asynchronously.

Attributes

service

Attributes

xml-resource

optional

The location of the Map processor file

processor-name

optional

The name of the Map processor element

in-map-name

optional

The name of the field that contains the Map to be processedservice to invoke

inout-map-name

optional

The name of the field that will receive the processed Map

error-list-name

optional

The name of the field that will contain a list of error messages generated by the processor

Child Elements

contains the service IN attributes

include-user-login

optional

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

<simple-map-processor>

optional


Info
titleProposed Changes
  • Deprecate and replace with a <call-simple-method>service> element. Add an async attribute ("true"/"false") to the <call-service> element.
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.

...