-
-
Notifications
You must be signed in to change notification settings - Fork 168
Functions
Akram El Assas edited this page Feb 25, 2025
·
1 revision
You can use the following functions in your workflow:
- $DateTime(): returns the current Unix timestamp in milliseconds
- $Guid(): returns a 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>
Copyright © Akram El Assas. All rights reserved.
- Installing
- Screenshots
- Docker
- Configuration
- Persistence Providers
- Getting Started
- Android App
- Samples
- Local Variables
- Global Variables
- REST Variables
- Functions
- Cron Scheduling
- Logging
-
Built-in Tasks
- File system tasks
- Encryption tasks
- Compression tasks
- Iso tasks
- Speech tasks
- Hashing tasks
- Process tasks
- Network tasks
- XML tasks
- SQL tasks
- WMI tasks
- Image tasks
- Audio and video tasks
- Email tasks
- Workflow tasks
- Social media tasks
- Waitable tasks
- Reporting tasks
- Web tasks
- Script tasks
- JSON and YAML tasks
- Entities tasks
- Flowchart tasks
- Approval tasks
- Notification tasks
- SMS tasks
- Custom Tasks
- Command Line Client
- RESTful API
- Run from Source