Create connection definition

Goal

This packaging task goal is to create connection definition.

Packaging task configuration

<extension name="com.axemble.vdoc.update.connection.CreateConnectionDefinitionExtension" critical="true">
    <param name="systemName" value="MoovappsTeam"/>
    <param name="label" value="MoovappsTeam"/>
    <param name="categoryName" value="moovapps-workplace.team"/>
    <param name="organizationUri" value="uril://vdoc/organization/DefaultOrganization"/>
    <param name="file" value="connection_definition_team.xml"/>
</extension>
  • systemName : connection definition system name
  • label : connection definition display label
  • categoryName : connection definition category
  • organizationUri : organization that own this connection definition
  • file : located in custom/resources directory

connection_definition_team.xml is like this :

<connection-settings name="MoovappsTeam">
    <values>
        <string name="apiBaseUrl" value="https://moovapps-backend.preview.visiativsoftware.com" />
        <string name="authBaseUrl" value="https://moovapps-backend.preview.visiativsoftware.com" />
        <string name="userPassword" value="password" />
        <string name="userLogin" value="login" />
        <string name="clientSecret" value="secret" />
        <string name="teamBaseUrl" value="https://workplace-team.preview.visiativsoftware.com" />
        <string name="tenantName" value="workplace" />
        <string name="clientId" value="clientid" />
    </values>
</connection-settings>