CompanionCompanion
Companion for Delivery
Companion for Business
Companion for Integration
Contact us
Log out
Companion for Delivery
Companion for Business
Companion for Integration
Contact us
  • Companion for Delivery

    • Introduction
    • Installation
    • Project
  • Developer

    • Compiler
    • Decompiler
    • Diff
    • Incremental Build
    • Twirl
    • Companion Twirl Templates
    • Sheet to Xml
    • Tests
    • JSDoc
    • STEP API Autocomplete
    • Integrated Development Environment (IDE)
  • Devops

    • Continuous Integration (CI)
    • SonarQube
    • Maven configuration
  • STEPdoc
  • Example
  • FAQ

    • How to
    • Troubleshooting
  • Changelog

    • Changelog Companion for Delivery
    • Changelog Companion Twirl Templates
    • Changelog Companion Test Helpers

Changelog Companion Twirl Templates

4.0.2

Released on 2024-02-06

Change

  • Added new template:
    • BindEventQueue

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 use approve parameter. If it was used with value true, use the value TriggerAndApprove() for approve.
  • onApprove parameter has been removed for GlobalBusinessCondition, you should now use approve parameter. If it was used with value true, use the value ValidateBefore() for approve.
  • onApprove parameter has been removed for JavascriptGlobalBusinessAction, you should now use approve parameter. If it was used with value true, use the value TriggerAndApprove() for approve.
  • onApprove parameter has been removed for JavascriptGlobalBusinessCondition, you should now use approve parameter. If it was used with value true, use the value ValidateBefore() for approve.

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:

  • BusinessRules Templates
  • JavaScript specific templates

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 :
    • Never
    • Trigger
    • TriggerAndApprove
    • ValidateAfter
    • ValidateBefore
    • ValidateBeforeAndAfter
  • The following templates have been modified to support all types of approval with the addition of the approve parameter. The onApprove parameter will be removed in the next major release :
    • GlobalBusinessAction
    • GlobalBusinessCondition
    • JavascriptGlobalBusinessAction
    • JavascriptGlobalBusinessCondition
  • Add new binding :
    • BindCurrentEventType
  • Add setup templates :
    • c4dDocumentationSetup
    • c4dSetup
    • c4dTestsSetup

3.0.2

Released on 2023-06-16

Bug fixes

  • Fix onApprove behaviour when set to false (ApproveSetup must be set to Never).

3.0.1

Released on 2023-03-17

New Features

  • Add new binding template :
    • BindEventProcessorEventBatch

3.0.0

Released on 2023-03-02

Breaking changes

This version introduces several Breaking Changes:

  • Template GlobalBusinessAction has been renamed in JavascriptGlobalBusinessAction
  • Template GlobalBusinessCondition has been renamed in JavascriptGlobalBusinessCondition
  • Template LocalBusinessAction has been renamed in JavascriptLocalBusinessAction
  • Template LocalBusinessCondition has been renamed in JavascriptLocalBusinessCondition
  • Parameter runprivileges has been removed, you should replace it by runPrivileged
  • Parameter allTypeValid has been removed, you should replace it by allTypesValid

New Features

  • Add new business rule templates to support all plugins of business rules :
    • GlobalBusinessAction
    • GlobalBusinessCondition
    • LocalBusinessAction
    • LocalBusinessCondition
  • Add some plugins for new templates :
    • AssignedGeneratedValue
    • JavascriptBusinessActionPlugin
    • JavascriptBusinessConditionPlugin
    • ReferenceOtherBusinessAction
    • ReferenceOtherBusinessCondition
  • Add specific templates for javascript business rules to replace old templates :
    • JavascriptGlobalBusinessAction
    • JavascriptGlobalBusinessCondition
    • JavascriptLocalBusinessAction
    • JavascriptLocalBusinessCondition
  • Add new bindings :
    • BindBusinessAction
    • BindBusinessCondition
    • BindBusinessFunction
    • BindGatewayIntegrationEndpoint
    • BindImportChangeInfo
    • BindMailHome
    • BindQueryHome

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 :

    • BindCurrentTransition
    • BindAttributeValidatedParameter
    • ErrorMessage
  • 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 to additionalBindings 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 :
    • LookupTable Developer -> Companion Twirl Templates -> Configuration Templates:
      • LookupTable
      • LookupTableEntry
      • LookupTableFromFile
    • Bindings Developer -> Companion Twirl Templates -> BusinessRules Templates:
      • BindLookupTableHome
      • BindWebUiContext

Bug fixes

  • Fix bad id inside templates plugin_applies_if_config instead of applies_if_config

1.0.0

Released on 2020-06-24

New features

  • Add following templates Developer -> Companion Twirl Templates -> BusinessRules Templates:
    • Business Rules :
      • BusinessLibrary
      • GlobalBusinessAction
      • GlobalBusinessCondition
      • LocalBusinessAction
      • LocalBusinessCondition
      • Dependency
    • Bindings :
      • BindCurrentObject
      • BindCurrentWorkflow
      • BindDerivedEvent
      • BindEventBatch
      • BindEventProcessor
      • BindLogger
      • BindManager
      • BindOutboundIntegrationEndpoint
      • BindUser
Last Updated: 9/19/24, 9:03 AM
Prev
Changelog Companion for Delivery
Next
Changelog Companion Test Helpers