Skip to main content
Version: 8.2

Update and commit the package to the SVN in file system development mode

Level: intermediate
note

The sdkPackageInFileSystem user-made package is installed into the Creatio configuration. Update the package in the file system development mode. After you change the contents, commit the package to the repository.

1. Update the package from the SVN repository

To get the latest package revision, use an SVN client, for example, TortoiseSvn.

To update the package from the SVN repository:

  1. Select the needed package in the ...\Terrasoft.WebApp\Terrasoft.Configuration\Pkg directory. In this example, this is sdkPackageInFileSystem.

  2. Update the package (the SVN Update command).

    As a result, the package edit date in the descriptor.json package descriptor file and UsrGreetingService schema source code of the Source code type will be updated.

    UsrGreetingService schema
    namespace Terrasoft.Configuration {
    using System.ServiceModel;
    using System.ServiceModel.Activation;
    using System.ServiceModel.Web;
    [ServiceContract]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class UsrGreetingService: System.Web.SessionState.IReadOnlySessionState {
    [OperationContract]
    [WebInvoke(Method = "GET", UriTemplate = "Hello")]
    public string TestHello() {
    return "Hello!";
    }
    }
    }

  3. Click to open the System Designer.

  4. Click Advanced settings in the Admin area block.

  5. Select Update packages from file system in the File system development mode group of the action menu.

  6. If object schemas or source code schemas were changed, take steps 3–6 in the Install an SVN package in the file system development mode article as well.

2. Modify the package contents

To modify the package contents, add the TestHelloWorld() method to the UsrGreetingService schema of the Source code type.

UsrGreetingService schema
namespace Terrasoft.Configuration {
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
public class UsrGreetingService: System.Web.SessionState.IReadOnlySessionState {
[OperationContract]
[WebInvoke(Method = "GET", UriTemplate = "Hello")]
public string TestHello() {
return "Hello!";
}

[OperationContract]
[WebInvoke(Method = "GET", UriTemplate = "HelloWorld")]
public string TestHelloWorld() {
return "Hello world!";
}
}

}

3. Commit the package to the repository

To commit the package to the repository:

  1. Select the needed package in the ..\Terrasoft.WebApp\Terrasoft.Configuration\Pkg directory. In this example, this is sdkPackageInFileSystem.

  2. Commit (the SVN Commit command) the directory to the repository.