Changelog Companion Twirl Templates
4.0.2
Released on 2024-02-06
Change
- Added new template:
Bug fixes
- Decompiling a bind of type EventQueueBinding that is not implemented was creating a BindOutBoundIntegrationEndpoint instead of returning an xml
4.0.1
Released on 2023-09-29
Change
The functionDependencies
parameter has been added for the following templates:
- GlobalBusinessAction
- GlobalBusinessCondition
- JavascriptGlobalBusinessAction
- JavascriptGlobalBusinessCondition
- LocalBusinessAction
- LocalBusinessCondition
- JavascriptLocalBusinessAction
- JavascriptLocalBusinessCondition
Update c4dSetup template to change TransactionType from STRICT
to CHAIN
Bug fixes
A few corrections have been made to the decompiler using template feature:
- Business libraries cannot be decompiled if the Referenced and Selected fields are present in the XML.
- Function Dependencies were taken into account in templates even though they were not managed at compile time.
- Fix missing parameter in the user binding
- Fix typo in BindOutboundIntegrationEndpoint and BindGatewayIntegrationEndpoint name
- Fix extraction of BindFunction parameters
- Fix unescaping of error messages
4.0.0
Released on 2023-08-31
Breaking changes
This version introduce several Breaking Changes:
onApprove
parameter has been removed for GlobalBusinessAction, you should now useapprove
parameter. If it was used with valuetrue
, use the valueTriggerAndApprove()
forapprove
.onApprove
parameter has been removed for GlobalBusinessCondition, you should now useapprove
parameter. If it was used with valuetrue
, use the valueValidateBefore()
forapprove
.onApprove
parameter has been removed for JavascriptGlobalBusinessAction, you should now useapprove
parameter. If it was used with valuetrue
, use the valueTriggerAndApprove()
forapprove
.onApprove
parameter has been removed for JavascriptGlobalBusinessCondition, you should now useapprove
parameter. If it was used with valuetrue
, use the valueValidateBefore()
forapprove
.
New feature
From this version onwards, Companion for Delivery can use Decompiler to generate files using the defined templates. All the templates defined in these two chapters are supported:
Change
The name
parameter has been made optional for the following templates by adding the default value ""
:
- GlobalBusinessAction
- GlobalBusinessCondition
- JavascriptGlobalBusinessAction
- JavascriptGlobalBusinessCondition
- LocalBusinessAction
- LocalBusinessCondition
- JavascriptLocalBusinessAction
- JavascriptLocalBusinessCondition
- BusinessLibrary
3.1.0
Released on 2023-07-28
New Features
- Add new templates to handle all types of approve business rules :
- The following templates have been modified to support all types of approval with the addition of the
approve
parameter. TheonApprove
parameter will be removed in the next major release : - Add new binding :
- Add setup templates :
3.0.2
Released on 2023-06-16
Bug fixes
- Fix onApprove behaviour when set to
false
(ApproveSetup must be set toNever
).
3.0.1
Released on 2023-03-17
New Features
- Add new binding template :
3.0.0
Released on 2023-03-02
Breaking changes
This version introduces several Breaking Changes:
- Template
GlobalBusinessAction
has been renamed inJavascriptGlobalBusinessAction
- Template
GlobalBusinessCondition
has been renamed inJavascriptGlobalBusinessCondition
- Template
LocalBusinessAction
has been renamed inJavascriptLocalBusinessAction
- Template
LocalBusinessCondition
has been renamed inJavascriptLocalBusinessCondition
- Parameter
runprivileges
has been removed, you should replace it byrunPrivileged
- Parameter
allTypeValid
has been removed, you should replace it byallTypesValid
New Features
- Add new business rule templates to support all plugins of business rules :
- Add some plugins for new templates :
- Add specific templates for javascript business rules to replace old templates :
- Add new bindings :
2.2.0
Released on 2023-01-10
Breaking changes
This version was compiled with Companion for Delivery version 5.1.0 which upgrades the scala version to 2.13. This version is not compatible with older versions of Companion for Delivery.
2.1.0
Released on 2022-11-04
New Features
Add new bindings templates :
Add support for business function :
- Base business function template BusinessFunction
- Preconfigured template to return a node from input parameter node BusinessFunctionToNode
2.0.0
Released on 2022-09-12
Breaking changes
Due to the renaming of packages in Companion for Delivery with version 5.0.0, we have made the same changes in Companion Twirl Templates. This version is only compatible with c4d version 5.0.0.
You must update your dependency on twirl-templates in the pom.xml file :
Before :
<dependency>
<groupId>fr.cantor.companion.templates</groupId>
<artifactId>twirl-templates</artifactId>
<version>${c4d.templates.version}</version>
</dependency>
After :
<dependency>
<groupId>fr.cantor.c4d.templates</groupId>
<artifactId>twirl-templates</artifactId>
<version>${c4d.templates.version}</version>
</dependency>
All template-related imports in the .companion.xml
files must be updated from fr.cantor.companion
to fr.cantor.c4d
. This update is managed by the migration tool
Change
Some option name have been updated to correct naming errors for GlobalBusinessAction, GlobalBusinessCondition, LocalBusinessAction and LocalBusinessCondition templates. The old option names still work.
- allTypeValid -> allTypesValid
- runprivileges -> runPrivileged
1.1.2
Released on 2021-01-14
Change
- Change default value for
runprivileges
option for GlobalBusinessAction, GlobalBusinessCondition, LocalBusinessAction and LocalBusinessCondition templates
See Developer -> Companion Twirl Templates -> BusinessRules Templates
Bug fixes
- Rename
additionnalBindings
option toadditionalBindings
for GlobalBusinessAction, GlobalBusinessCondition, LocalBusinessAction and LocalBusinessCondition templates
See Developer -> Companion Twirl Templates -> BusinessRules Templates
1.1.1
Released on 2020-10-06
New Features
- Add
defaultSubstitution
option to LookupTable and LookupTableFromFile templates
See Developer -> Companion Twirl Templates -> Configuration Templates
Bug fixes
- Fix
Premature end of file
error when deploying files using Business Rules Templates to Step
1.1.0
Released on 2020-09-14
New features
- Add following templates :
Bug fixes
- Fix bad id inside templates
plugin_applies_if_config
instead ofapplies_if_config
1.0.0
Released on 2020-06-24
New features
- Add following templates Developer -> Companion Twirl Templates -> BusinessRules Templates: