Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Problem retrieving the attribute names at workflow initiation time with Java-based LAPI (v 9.0.0.1)
Renato_Corciulo
In the initiation of a workflow, the ?loadmap? function is called to initiate all of the parts of the work package associated with the new instance. When testing for the names of the attributes using ?AttrListNames?, no values are returned, and it seems that Array that supposedly contains the names is reinitialised. The steps in arriving at this problem are listed below in detail:1. The LAPI link to the instance is initialised and all of the necessary values necessary to execute ?LoadMap? are determined.2. LoadMap is executed, returning a valid RecArray for ?map?.3. A RecArray for the Work Package is created and loaded from the map.4. When stepping through the work package RecArray, the attachments folder, the comments List, the Attributes Assoc and the Forms List are successfully returned without error. (The objectID for the attachments folder can be accessed successfully.)5. In order to call AttrListNames, a null attrPath and a valid catVersion need to be supplied. This is done by invoking either FetchCategoryVersion or GetObjectAttributesEx (both have been tried).6.As an example, when calling FetchCategoryVersion the catVersion (type Assoc) is reset to 0, with the type also reset. For FetchCategoryVersion, the catID is initialised with ?Type? set to 2, ?ID? set to the objectID of the workflow, ?Version? set to 0. GetObjectAttributesEx has the same effect.This is how far I get, and the LAPI documentation?s references to categories and attributes seem to be specific to other types of objects. Have I missed a step during the initialisation?Are these deprecated ways of calling the attributes for Livelink 9, or do the new functions (as described in the appendix of the LAPI documentation) only apply to the management of the categories and attributes?The ideal would be to see some code examples that do this successfully.Any help is highly appreciated.ThanksRenato
Find more posts tagged with
Comments
There are no comments yet