From file to workflow variable

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:

 

NG2WorkflowFromFileToVariable01

  1. File path
    The path to the file from which the contents is to be copied.
  2. Variable name
    The name of the workflow variable in which the file contents is to be written to.
    • Related Articles

    • From variable to file

      With the advanced, utilities workflow component, From variable to file you can save the contents of a variable as a file. The parameters are: Variable name The name of the variable, that should be saved into a file. Decode base64 If the data in the ...
    • 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. ...
    • 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 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 ...