Create a new asset

To create a new asset you can use RAMSession.createAsset(String version) will create a new asset with a new GUID and the version passed in. RAMSession.createAsset(String GUID, String version) will create a new asset with the GUID and version you pass in.

                // Create a new asset to submit to the server
                RAMAsset newAsset = session.createAsset("1.0");

                // Set asset metadata
                newAsset.setName("New Asset");
                newAsset.setCommunity(session.getCommunity("Rational Asset Manager Development"));
                newAsset.setAssetType(session.getAssetType("Documentation"));
                newAsset.setShortDescription("Sample upload asset");
                
                session.put(newAsset, new NullProgressMonitor());

Feedback