Publishing Service Objects

When you have created the Service Object, publish it to a location where it can be run against the SAP BAPIs to execute the service methods. The Service Object is published to the connect Application server. You can 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 Five and makes them available via the K2 connect service broker. This enables you to create a SmartObject based on the Service Object. The SmartObject acts as an intermediary layer between a workflow or smartform and the Service Object, as the methods are not exposed directly but are called via the service broker. Explained simply, the SmartObject enables the K2 Designer to use the methods available from the Service Object.

When the SmartObject is created, all existing or default methods of a new SmartObject are replaced by the methods created for the Service Object.

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.