Argomento precedente: ServiceDefinition Creation Methods

Argomento successivo: Repository Interface

CreateServiceDefinition

Description

This method creates a service definition from the input data.

Syntax

long CreateServiceDefinition (ServiceDefinitionData serviceDefinitionData, PortfolioContainerType ServiceDefinitionContainerType, long ServiceDefinitionContainerID);

Parameters

Name

Type

Description

serviceDefinitionData

ServiceDefinitionData

The data to use to create the new service definition.

ServiceDefinitionContainerType

PortfolioContainerType

The container type of the new service definition.

ServiceDefinitionContainerID

long

The container ID of the new service definition.

Return Value

The ID of the new service definition, as type long.

Remarks

The method validates the data sent to it and may throw a validation exception upon failure.

The ServiceDefinitionData object provided for this method should be filled with an ID for every sub-entity of which it consists (for example, the contract’s corresponding primary contract party).