Creating a new timer FillInstanceDataViaXMLManager is responsible This timer can be used for monitoring a designated folder within the file system to detect the addition of XML files. Upon identification of an XML file, the timer initiates processing, extracting the data and setting them as process variables for the process instance, based on the process instance ID given in the XML file.
This process instance ID is used to verify the existence of the instance on the correct node as defined in the timer configuration. Subsequently, the timer populates the identified instance's process variables with the extracted data and progresses to the specified wait state or node.
Additionally, error-handling mechanisms are implemented to manage instances where no matching process instances, process definitions, wait states, or nodes are found.
Class
...
Timer configuration
...
XML file path
...
XML file structure
...
When the timer is executed, we have two options:
...
Warning |
---|
If the file was not processed correctly, it is moved to the “error” subfolder and sends an email (see below) |
...
From the process instance report, you can see the process variables field from the XML.
...
If the timer has failed, you the owner of the workflow will also receive an email.
...