Action | ScriptFunction: Export LiveDoc to Word

Description
SteffPoint
Posts: 31
Joined: Wed Mar 07, 2018 1:06 pm

Action | ScriptFunction: Export LiveDoc to Word

Postby SteffPoint » Fri Aug 31, 2018 11:05 am

I am searching for a way to export a LiveDoc Document to Word (like the word round-trip does). I would like to have this as a workflow action, so that I can pick it in the action field of the LiveDoc Document.

What I found out so far is, that one can add functions to those actions based on .js or groovy.

What I don't know is, how Polarion can transfer a LiveDoc Document to a Word document (like the word round-trip does) using this "ScriptFunction" in the "actions". So I need a js- or groovy-based script which can create a word-document out of a LiveDoc Document.

I am grateful for any kind of help or API reference.

SteffPoint
Posts: 31
Joined: Wed Mar 07, 2018 1:06 pm

Re: Action | ScriptFunction: Export LiveDoc to Word

Postby SteffPoint » Mon Sep 17, 2018 12:55 pm

What I have so far:

JavaScript:

Code: Select all

var trackerService = workflowContext.getTrackerService();
var document = workflowContext.getTarget();
var exportdocument = document.trackerService.getExportManager.EXP_WORD_ROUND_TRIP.startExport;


But it is not working. Also I don't know if I used any API correctly :) I guess there are already a few mistakes in these 3 lines of code.

"EXP_WORD_ROUND_TRIP" is a field - should it be used differently as I did? Like getExportManager("EXP_WORD_ROUND_TRIP") or similar?


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests