Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RRC Upload of word document artifacts using the API

I am trying to upload word document artifacts into RRC and the code works fine in CLM 3.0. However when I try to do the same for CLM 4.0.1 (M3) I made a couple of changes like modifying the url to make the readDocument work. The code snippet is as follows. In CLM 3.0 the variable urlset had the value

urlset = responseString.substring(locationURLIndex, responseString.indexOf("\",", locationURLIndex));
          urlset = taskURL.replaceAll("\\\\/", "/");

and now in CLM 4.0.1 (M3) it is as follows:

The point where it fails is where I try xpathNamespace.evaluate and resultPath = "//rm:taskResult/@rdf:resource".

The Node value comes up for CLM 3.0 but fails for M3.
Is there anything specific that works for CLM 4.0?


  String urlset="https://sowb-clm.dst.ibm.com:9443/rm/taskTracker/"+location;
        String taskURL=urlset;
          final int MAX_TRIALS = 20;
          for (int count = 0; count < MAX_TRIALS; count++) {
//              printResourceDoorsPrivate(taskURL);
              Document taskDoc = readDocumentDoorsPrivate(taskURL);
              String resultPath = "//rm:taskResult/@rdf:resource";
              XPath xpathNamespace = getXpathNamespace();
              Node resultNode = (Node) xpathNamespace.evaluate(resultPath, taskDoc, XPathConstants.NODE);

Please help me provide the resolution to the same and also if anything needs to be changed after this also for CLM 4.0 to work?

Thanks,
Samanwita

0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 45

Question asked: Oct 05 '12, 7:34 a.m.

Question was seen: 4,285 times

Last updated: Oct 05 '12, 7:34 a.m.

Confirmation Cancel Confirm