From file to workflow variable
With the advanced utilities workflow component, From file to workflow variable you can extract the contents of a file in the file system and put that into the contents of a variable. A related component is: Resource to workflow variable.
This can e.g. be used to retrieve the contents of an XML file into a variable and the workflow can then insert the contents of the variable into another XML file with a transformation.
The From file to variable component has these parameters:
File path
The path to the file from which the contents is to be copied.
Variable name
The name of the workflow variable in which the file contents is to be written to.
Related Articles
Payload to workflow variable
The advanced, utilities workflow component, Payload to variable copies the current payload into a variable. This can e.g. be used, if you want to insert the payload into an output file via a variable in a transformation. The payload to workflow ...
Resource to workflow variable
With the workflow component, Resource to workflow variable (which is a shortcut component of the other category), you can read a resource from the library and store it in a workflow variable. A related component is: From file to workflow variable. ...
Workflow file types/payloads
The workflow of InterFormNG2 is able to handle many different file types. The file type is also referenced as the payload of the workflow. Another way to express it like so: When you call a workflow, then most workflow input types expects, that the ...
Set one workflow variable
The advanced set meta data workflow component, Set one workflow variable, sets/defines a workflow variable. This can be used later in the workflow and also in a template in the designer. The variable can be referenced in XPath expressions with a ...
Workflow variable element
You can define two kinds of variables in your templates: 1.A normal variable, which is defined and used only within the template. 2.A workflow variable, which can be used for e.g. for sending user defined variable information from the workflow to a ...