Publishing Service Objects

When the service object is finished and ready to be exposed as a SmartObject, it needs to be published to a location where the service object can be run against the SAP BAPIs to execute the service methods. When the service object is published, it is published to the connect Application server which hosts the service object. The person who created the service object and any other developers will be able to access the service objects from the Default Service object repository. Publishing the Service Object exposes the methods that were created as service object methods in K2 blackpearl and makes them available via the K2 connect service broker. This enables developers to create a SmartObject based on the Service Object. The SmartObject acts as an intermediary layer of sorts between the user and the Service Object as the methods are not exposed directly but need to be called via the service broker. Explained simply, the SmartObject enables the K2 Designer for Visual Studio to reference and leverage the methods available from the ServiceObject.

When the SmartObject is created, all existing or default methods are deleted. The default methods are replaced by the methods created for the Service Object that surface through the Service Broker and are leveraged by the SmartObject

Service Objects are only published to the default Service Object Repository as hosted by the Default K2 connect Service instance. When more than one K2 connect Service instance is listed in the Service Object Repository, publishing will always be to the one selected as default.