Trigger ANT Scenario from AuthorAccess object

Post here questions and problems related to oXygen frameworks/document types.
Dinesh
Posts: 11
Joined: Mon Feb 24, 2025 12:19 pm

Trigger ANT Scenario from AuthorAccess object

Post by Dinesh »

Hi,

I am trying to trigger an ANT scenario that we have defined in Oxygen XML Editor from the doOperation Java code.

My question is: Given an AuthorAccess object, is it possible to trigger our defined scenario in Oxygen? For example, is there something like authorAccess.getScenario("buildTargetDB").run(), or are there any other solutions you would recommend?

Thanks,
Dinesh
Radu
Posts: 9519
Joined: Fri Jul 09, 2004 5:18 pm

Re: Trigger ANT Scenario from AuthorAccess object

Post by Radu »

Hi Dinesh,
The API is something like:

Code: Select all

authorAccess.getEditorAccess().runTransformationScenario
https://www.oxygenxml.com/InstData/Edit ... voker.html

The transformation scenario must be defined at framework level.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply