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

RPE + DNG: Macros

Hi all, 


I'm returning from my previous question here: rpe-using-json-on-dng, where I was attempting to combine both JIRA and DNG data in one document. 

At first, I was contentedly informed by another user that DNG template files don't support authentication to JIRA. Fine, I can just execute a macro to parse the JSON.. Well, I've also discovered the troubling reality that executing macros at run-time is impossible because you can't post DSX files from RPE

The good news is that there is an alternative to using a DSX..something documented here at rpeactual, using this external variable "_runMacro" though it's unclear if you can even pass variables and it requires your server to have word installed. 

Am I understanding this correctly? You pretty much can't use macros with DNG Templates? If so, is there an RFE I can throw my lot in with? 

Thanks,
David

0 votes



One answer

Permanent link

It is not that DNG doesn't support JSON. Rather, we cannot run a template (report) from DNG that retrieves data from JIRA as authentication to JIRA doesn't work if document is generated through DNG.

0 votes

Comments

I've edited the sentence for clarity. 


Any pointers on the macro issue?

Edited the answer. The issue is with authentication to JIRA and not with JSON data.

Whatever the issue is, whether it be that separate schemas doesn't come through DTA file, or if a DNG template isn't capable of authenticating to alternate data sources at runtime--- the net result is the same. 


While I have your attention, do you have any response to this post's question?
"using this external variable "_runMacro" though it's unclear if you can even pass variables...You pretty much can't use macros with DNG Templates"

My workaround to the DTA problem is to execute my JIRA HTTP request in a macro upon document generation. Is this possible?
 
Thanks,
David

Macro execution takes place at the end (post processing). Though you manage to do HTTP request in a macro, the data returned from JIRA cannot be used for document generation.
The option for such templates is to use RPE Launcher or Document Builder for generating document.

Subramanya -


Please help me understand. 

I have Rational DOORS Next Generation. I also have Rational Publishing Engine. 

When I post my RPE Templates (.DAT) to RDNG, can those templates execute a macro?

What do you mean by post-processing? As in, after the documents have been generated and saved by the user?


Yes. You can execute a macro. But macro execution is the last step in document generation.

Is it the solution described at rpeactual? If so can I pass variables to the macro?

If not, can you elaborate please?


Exactly. Passing variables to macro is explained in the following blogs:

But note that the embedded RPE reports don't have all of the same functionality in CLM as they do from RPE. You cannot run RPE post-commands through DNG. I am afraid you cannot run macro with variables as well with DNG.

1 vote

Subramanya - 

So there it is. DNG users of RPE cannot execute macros post-processing.

That should probably be noted in the user guides, along with the mention that DNG isn't capable of integrating other data sources with RPE. 

Thanks for clearing that up. 

David

showing 5 of 9 show 4 more comments

Your answer

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
× 12,019

Question asked: Sep 24 '18, 2:50 p.m.

Question was seen: 2,729 times

Last updated: Sep 26 '18, 10:55 a.m.

Confirmation Cancel Confirm