Petals-SE-Flowable 1.5.0+

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (8)

View Page History
{warning}This version must be installed on [Petals ESB 5.4.0|petalsesb540:Petals ESB 5.4.0]+{warning}

{warning}Previous service units are no more compliant with this component version and must be migrated. See [Migrating service units developed for previous versions|#migrationguide]{warning}

{multi-excerpt-include:petalscomponents:Petals-SE-Flowable|name=features|nopanel=true}

This custom JUEL function retrieve the value as {{String}} of the given placeholder.

Arguments:
Required argument:
* the first argument is the placeholder name as {{String}}, required, {{String}}.
* the second argument is the default value, as {{String}}, to use if the given placeholder is not defined, optional. If this argument is not provided, a null value will be returned if the placeholder is not defined.

Returned value:
* the placeholder value as {{String}}, or {{null}} if the placeholder is not defined.

Example:
{code}
{code}

h3. petals:getPlaceholderWithDefault

This custom JUEL function retrieve the value as {{String}} of the given placeholder.

Required arguments:
* the first argument is the placeholder name as {{String}}.
* the second argument is the default value, as {{String}}, to return if the given placeholder is not defined.

Returned value:
* the placeholder value as {{String}}, or the given default value if the placeholder is not defined.

Example:
{code}
<serviceTask id="servicetask1" name="User Task"
flowable:class="org.ow2.petals.flowable.junit.tasks.DummyJavaDelegate">
<extensionElements>
<flowable:field name="param1">
<flowable:expression>${petals:getPlaceholderWithDefault('my-placeholder', 'my-placeholder-default-value')}</flowable:expression>
</flowable:field>
</extensionElements>
</serviceTask>
{code}

h1. Configuring the component

{code}
where SoapUI project files contains mock service definitions.

{anchor:migrationguide}
h1. Migration guide

h2. Migrating service units developed for previous versions

To be deployed on this version of the Petals SE Flowable, the Petals SE Flowable service units must be migrated. Please follow the following chapters to know which changes must be applied.

h3. From 1.4.x to 1.5.x

Please apply the following changes in your Petals SE Flowable service unit to migrate them from Petals SE Flowable 1.4.x to Petals SE Flowable 1.5.x:
* in your unit tests:
** move Java EE package to Jakarta EE 9+ package:
*** {{javax.activation}} -> {{jakarta.activation}}
*** {{javax.mail}} -> {{jakarta.mail}}
*** {{javax.xml.bind}} -> {{jakarta.xml.bind}}
*** ...
** JUnit 5 is now required for your unit tests,
** the JUnit rule '{{PetalsFlowableRule}}' is replaced by the annotation '{{PetalsFlowableTest}}'
** to generate your beans from an XSD or WSDL definition, use the Maven plugin '{{org.patrodyne.jvnet:hisrc-higherjaxb-maven-plugin}}' instead of '{{org.jvnet.jaxb2.maven2:maven-jaxb2-plugin}}'.

h3. From 1.3.x to 1.4.x

Please apply the following changes in your Petals SE Flowable service unit to migrate them from Petals SE Flowable 1.3.2 to Petals SE Flowable 1.4.x:
* in your process definitions and unit tests:
** the process variable '{{petalsPlaceholders}}' associated to the placeholders is now replaced by the custom JUEL functions '{{petals:getPlaceholder}}' or '{{petals:getPlaceholderWithDefault}}'.