Custom Action to launch transformation Scenario

Post here questions and problems related to oXygen frameworks/document types.
cedporter
Posts: 18
Joined: Thu Mar 16, 2017 8:44 pm

Custom Action to launch transformation Scenario

Post by cedporter »

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
Posts: 402
Joined: Mon May 09, 2016 9:37 am

Re: Custom Action to launch transformation Scenario

Post by sorin_carbunaru »

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: 18
Joined: Thu Mar 16, 2017 8:44 pm

Re: Custom Action to launch transformation Scenario

Post by cedporter »

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
Posts: 402
Joined: Mon May 09, 2016 9:37 am

Re: Custom Action to launch transformation Scenario

Post by sorin_carbunaru »

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: 18
Joined: Thu Mar 16, 2017 8:44 pm

Re: Custom Action to launch transformation Scenario

Post by cedporter »

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
Posts: 402
Joined: Mon May 09, 2016 9:37 am

Re: Custom Action to launch transformation Scenario

Post by sorin_carbunaru »

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