Page 1 of 1

Custom Action to launch transformation Scenario

Posted: Fri Aug 04, 2017 6:29 pm
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?

Re: Custom Action to launch transformation Scenario

Posted: Mon Aug 07, 2017 11:51 am
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

Re: Custom Action to launch transformation Scenario

Posted: Mon Aug 07, 2017 2:49 pm
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.

Re: Custom Action to launch transformation Scenario

Posted: Mon Aug 07, 2017 3:30 pm
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?

Re: Custom Action to launch transformation Scenario

Posted: Tue Aug 08, 2017 3:20 pm
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!

Re: Custom Action to launch transformation Scenario

Posted: Wed Aug 09, 2017 9:54 am
by sorin_carbunaru
Thank you for the suggestion! I recorded a feature request for that on our side.