Exporting JavaScript Files from the Repository
In a workflow, you can export JavaScript files from the repository using the Task Generator module. If all .js files are to be captured when exporting with the Task Generator, they must be specifically referenced.
Proceed as follows
-
In the INUBIT Workbench, display the Module Editor tab.
-
Open the module group Data Converter > Task Generator and select the respective Task Generator you want to export the repository JavaScript file with.
-
Add the element
Script
to the XML target tab at the same level as thePanel
element. -
Assign the attributes
language
andsrc
to theScript
element. -
Type
javascript
as value for thelanguage
attribute. -
For the
src
attribute, enter the internal repository URL to the file you want to export as a value. -
Click the right mouse button on the
Script
item, open the XSLT command assistant and select the elementvalue-of
. -
Click . → The XPath assistant opens.
-
Specify the respective Xpath to assign the variable.
-
Optionally, assign additional textnodes and variables.