FileNotExist - arunkumarrawat/Wexflow GitHub Wiki
<?xml version="1.0" encoding="utf-8" ?>
<Tasks>
<!--
FileNotExist is a flowchart task that checks whether a file does not exist.
-->
<Task id="$int" name="FileNotExist" description="$string" enabled="true|false">
<!--
The file path to check. Example: C:\WexflowTesting\file1.txt
-->
<Setting name="file" value="$string" />
<!-- Optional. Samba computer name. -->
<Setting name="smbComputerName" value="$string" />
<!-- Optional. Samba domain name. -->
<Setting name="smbDomain" value="$string" />
<!-- Optional. Samba username. -->
<Setting name="smbUsername" value="$string" />
<!-- Optional. Samba password. -->
<Setting name="smbPassword" value="$string" />
</Task>
</Tasks>
Here is a sample workflow:
<Workflow xmlns="urn:wexflow-schema" id="185" name="Workflow_FileNotExist" description="Workflow_FileNotExist">
<Settings>
<Setting name="launchType" value="trigger" />
<Setting name="enabled" value="true" />
<Setting name="approval" value="false" />
<Setting name="enableParallelJobs" value="true" />
<Setting name="retryCount" value="0" />
<Setting name="retryTimeout" value="1500" />
</Settings>
<LocalVariables />
<Tasks>
<Task id="1" name="Wait" description="Wait 3 seconds" enabled="true">
<Setting name="duration" value="00:00:03" />
</Task>
<Task id="2" name="FileNotExist" description="Check if file-not-exist.txt does not exist" enabled="true">
<Setting name="file" value="C:\WexflowTesting\file-not-exist.txt" />
</Task>
</Tasks>
<ExecutionGraph>
<While id="100" parent="-1" while="2">
<Task id="1">
<Parent id="-1" />
</Task>
</While>
</ExecutionGraph>
</Workflow>