Update and commit the package to the SVN in file system development mode
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:
-
Select the needed package in the
...\Terrasoft.WebApp\Terrasoft.Configuration\Pkg
directory. In this example, this issdkPackageInFileSystem
. -
Update the package (the SVN Update command).
As a result, the package edit date in the
descriptor.json
package descriptor file andUsrGreetingService
schema source code of the Source code type will be updated.UsrGreetingService schemanamespace 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!";
}
}
} -
Click to open the System Designer.
-
Click Advanced settings in the Admin area block.
-
Select Update packages from file system in the File system development mode group of the action menu.
-
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.
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:
-
Select the needed package in the
..\Terrasoft.WebApp\Terrasoft.Configuration\Pkg
directory. In this example, this issdkPackageInFileSystem
. -
Commit (the
SVN Commit
command) the directory to the repository.