Resource to payload

Resource to payload

The shortcut workflow resource to payload can be used for exchanging the normal payload of the workflow with a resource found in the InterFormNG2 resource library.

This can e.g. be used for using an XML resource file instead of the XML file, that triggered the workflow.

 

Related workflow components are: Delete resourceSave in resources and Resource to attachment.

 

The parameters are:

NG2WorkflowResourceToPayload0001

 

 

Resource path

This is the path to the resource file from the resource root for the current tenant. The first folder in the path is the resource type of the Library. This path is e.g. valid: /documents/Demo/Demo_Invoice.xml. This path can be either a fixed value or an XPath expression - selected via the T icon on the right.

 

Here are some examples of how to refer to a resource:

 

Resource

Path

Example

Components

/templateComponent

/templateComponent/Common/Footer.icmp

Documents

/documents

/documents/Demo/Demo_Invoice.xml

Fonts

/font

/font/arial.ttf

Images

/image

/image/Demo/Leif1.jpg

Mail templates

/mailTemplate

/mailTemplate/defaultMailTemplate.vm

Other

/other

/other/Certificates/MOCES_gyldig.p12

Styles

/style

/style/header.style

Templates

/template

/template/Demo/InvoiceDemo.ift

Transforms

/transform

/transform/production/copyNode.xsl

Translations

/translation

/translation/Demo/translate.properties

Validation rules

/validationRule

/validationRule/Training/Validate_demo_xml.xsd

Workflow

/workflow

/workflow/KSE_test.wf

 

Input type

The file type of the resource, that is loaded. A drop list is provided, from which you can select the correct type of resource.

    • Related Articles

    • Payload to attachment

      With the Payload to attachment component you can set the payload of the workflow to be the contents of the email attachment. The name of the attachment is set in the workflow component, Set attachment name, which you should insert first in the ...
    • Payload to first attachment

      With the Payload to first attachment component you can copy the payload of the workflow to be the contents of the first email attachment. The name of the attachment is set in the workflow component, Set attachment name, which should be set before ...
    • Base64 XML node to payload

      If a resource is included as base 64 in an input XML file, then you can use this advanced utilities component to extract the resource from the input file into the payload. The base64 XML node to payload workflow component has these parameters: XPath ...
    • Delete resource

      This workflow component deletes a resource from the Library. Related workflow components are: List resources, Resource to payload, Resource to attachment and Save in resources. An example of how this can be used with the List resources can be found ...
    • 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. ...