Custom Action to launch transformation Scenario

Post here questions and problems related to oXygen frameworks/document types.
cedporter
Posts: 10

Custom Action to launch transformation Scenario

Fri Aug 04, 2017 6:29 pm

In oXygen 17.1, I see the operation ro.sync.ecss.extensions.commons.operations.ExecuteTransformationScenariosOperation exposed for a custom action, but it doesn't appear to allow for me to set any parameters for the transformation.

Is there a way to pass parameters to the XSL when launching a transformation via custom action?
sorin_carbunaru
Site Admin
Posts: 111

Re: Custom Action to launch transformation Scenario

Mon Aug 07, 2017 11:51 am

Hello,

No, there is no way that I am aware of to pass parameter values when launching a transformation via a custom action. But is there a specific reason you want to pass values like that? You could just set the parameter values from the scenario and then invoke the action.

All the best,
Sorin Carbunaru
oXygen XML
cedporter
Posts: 10

Re: Custom Action to launch transformation Scenario

Mon Aug 07, 2017 2:49 pm

For our purposes, the values change. It drives things like volume and issue number in the header of a composed document. The intent was to create a more user friendly interface using the ask() editor variable to prompt the user for inputs and then launch the transformation with those values.
sorin_carbunaru
Site Admin
Posts: 111

Re: Custom Action to launch transformation Scenario

Mon Aug 07, 2017 3:30 pm

You can use the $ask() editor variable from the transformation scenarios' parameters -> https://www.oxygenxml.com/doc/versions/ ... parameters. Does this fit your needs?
cedporter
Posts: 10

Re: Custom Action to launch transformation Scenario

Tue Aug 08, 2017 3:20 pm

Ah, yes, that is helpful!

Just as a general feature request, it would be extremely useful to be able to design custom forms to collect multiple ask's at once or serve as an interface for performing various custom actions. Something similar to what XMetaL provides with their form builder tool. I'm aware it's possible via Java, but the coding competence required for that is fairly substantial. A robust form editor and some implementation of a scripting engine slightly less foreboding than Java would be a substantial improvement on o2!
sorin_carbunaru
Site Admin
Posts: 111

Re: Custom Action to launch transformation Scenario

Wed Aug 09, 2017 9:54 am

Thank you for the suggestion! I recorded a feature request for that on our side.

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests