Functions - arunkumarrawat/Wexflow GitHub Wiki
You can use the following functions in your workflow:
-
$DateTime()
: returns the current Unix timestamp in milliseconds -
$Guid()
: returns a new Guid
You can place these functions wherever you want in your workflow, in your local variables or in task settings.
Here is a sample workflow that uses these functions:
<Workflow xmlns="urn:wexflow-schema" id="187" name="Workflow_Functions" description="Workflow_Functions">
<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>
<Variable name="folder1" value="C:\WexflowTesting\$DateTime()" />
<Variable name="folder2" value="C:\WexflowTesting\$Guid()" />
</LocalVariables>
<Tasks>
<Task id="1" name="Mkdir" description="Create folders" enabled="true">
<Setting name="folder" value="$folder1" />
<Setting name="folder" value="$folder2" />
</Task>
</Tasks>
</Workflow>