Beginning in version 23.253, FileCloud supports expressions, special conditions based on user and path owner properties.
The workflow If a user's account is near its expiration date is available in FileCloud 23.251 and later.
Not all actions are compatible with all conditions.
When you create a workflow, you must select a condition to act as a trigger.
-
Depending on the trigger, additional parameters may be required.
-
Once a Condition is selected, compatible Actions can be selected.
Where do I set up the condition?
When you create a new Workflow, you will be able to select a condition.
Where do I add my parameters?
After you select a Condition, then you can enter any parameters, such as a date or time.
If you need more information about what parameters are required, look below the Required Parameters box.
Available Conditions
Client App Conditions
If any new client app connects
|
Workflow Condition |
Parameters |
Description |
|---|---|---|
|
If any new client app connects |
No parameters required |
This condition is triggered when an external (non-browser) client connects to FileCloud Server. For example, this condition will trigger for clients such as:
|
Available expression variables: User Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
File Conditions
If a file is created
|
Workflow Condition |
Parameters |
Description |
|
If a file is created |
{
|
This condition will be triggered if a file is created via any means (Browser, Clients, etc.) parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies how the folder path is validated.
exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If a file is updated
|
Workflow Condition |
Parameters |
Description |
|
If a file is updated. |
{
|
This condition will be triggered if a file is updated. parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies how the folder path is validated.
exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If a file is deleted
|
Workflow Condition |
Parameters |
Description |
|
If a file is deleted |
{
|
This condition will be triggered if a file is deleted. parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies how the folder path is validated.
exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If file is downloaded
|
Workflow Condition |
Parameters |
Description |
|
If a file is downloaded |
{
|
This condition will be triggered if a file is downloaded parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies how the folder path is validated.
exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If a file is added or updated
|
Workflow Condition |
Parameters |
Description |
|
If a file is added or updated |
{
|
This condition will be triggered if a file is added or updated parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies how the folder path is validated.
exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If file was not modified/created in specified days
|
Workflow Condition |
Parameters |
Description |
|
If a file was not modified/created in specified days |
|
This condition will be triggered if a file was not created [specified days] ago or has not been updated for [specified days].
parent_folder_path_string - required as a parameter for this condition to trigger.
number_of_days - required to specify the number of days before the current date that a file was last modified.
skip_recently_accessed - required to specify whether files that were viewed or downloaded during the number of days are considered modified. Default is false, viewed or downloaded files are not considered recently modified. When true, files viewed or downloaded within number_of_days are considered modified and will not be included in the Then action. exclude_recyclebin - (added in FileCloud version 21.3) optional (default is false) When true, files in recycle bin are not considered. exclude - (added in FileCloud version 22.1) optional - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). trigger_date - (added in FileCloud version 23.253) optional (default is BOTH) - specifies which field to use as the date the file was last modified.
|
Available expression variables: User Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If the file uploaded is bigger than the expected size
|
Workflow Condition |
Parameters |
Description |
|
If the file uploaded is bigger than expected size. |
{
|
This condition will be triggered when an uploaded file is bigger than the size specified. size - specifies the maximum expected file size in MB. |
Available expression variables: User Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If the file downloaded is bigger than the expected size
|
Workflow Condition |
Parameters |
Description |
|
If the file downloaded is bigger than expected size. |
{
|
This condition will be triggered when a downloaded file is bigger than the size specified. size - specifies the maximum expected file size in MB. |
Available expression variables: User Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
Folder Conditions
If a folder is created
|
Workflow Condition |
Parameters |
Description |
|
If a folder is created |
{
|
This condition will be triggered when a folder is created in the system parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies whether system uses an exact match for the parent folder path string ("use_regex": "0" or missing) or whether to use a regular expression match ("use_regex":"1") exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If a folder is deleted
|
Workflow Condition |
Parameters |
Description |
|
If a folder is deleted |
{
|
This condition will be triggered when a folder is deleted parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies whether system uses an exact match for the parent folder path string ("use_regex": "0" or missing) or whether to use a regular expression match ("use_regex":"1") exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
User Account Conditions
If a user's last login is older than...
|
|
Workflow Condition |
Parameters |
Description |
|
|---|---|---|---|---|
|
If a user's last login is older than ... |
|
|
If a user's last login is older than the specified number of days, then the THEN condition you configure will be run.
day_interval - the number of days between checks
skip_users_not_logged_in (optional): Skip users who have never logged in to the system. This enables you to only apply the action to users who are already using the system. Values are true and false. skip_admin_users (added in FileCloud 23.251) Optional. Do not include promoted admins.
|
Available expression variables: User Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If a new user is created
|
Workflow Condition |
Parameters |
Description |
|---|---|---|
|
If a new user is created ... |
None |
When a new user account is created, the THEN action you configure will be triggered. Optional Parameters auth-type - Type of authentication. This is optional and can be:
user_access_level: Account access level. This is optional and can be:
user_login_method: How user authenticates. This is optional and can be:
|
Available expression variables: User Context variables (_user.email, _user.username)
For instructions on including expressions, see Using Expressions in IF Conditions
If a user's account is older than
|
Workflow Condition |
Parameters |
Description |
|
|
If a user's create date is older than
|
|
This condition is triggered when a user's create date is older than the number of days specified in days. Parameters days - Required. When a user's create date is older than this number of days, the condition is triggered. |
Available expression variables: User Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
If a user's account is near its expiration date
|
Workflow Condition |
Parameters |
Description |
|
|---|---|---|---|
|
If a user's account is near its expiration date |
|
days_to_expiry - Number of days before account expiration days_interval - (optional) At what interval to perform the action again after it is performed the first time. During the last interval, the action is performed every day. Default is 5 days. For example:
An email is sent at 15 days before account expiration, 10 days before account expiration and 5, 4, 3, 2, and 1 days before account expiration. skip_admin_users Optional. Do not include promoted admins.
During the last interval, the action is executed every day. For example:
An email is sent at 15 days before account expiration, 10 days before account expiration and 5, 4, 3, 2, and 1 days before account expiration. |
Other Conditions
If a comment is added
|
Workflow Condition |
Required Parameters |
Description |
|
If a comment is added |
{
Available expression variables: User Context variables.
|
This condition will be triggered when a comment is added parent_folder_path_string - required as a parameter for this condition to trigger. If the condition needs to be triggered for all folders, then you can set it to be "/". For help specifying the path correctly, see Identifying a FileCloud Specific Path. use_regex (optional) - specifies whether system uses an exact match for the parent folder path string ("use_regex": "0" or missing) or whether to use a regular expression match ("use_regex":"1") exclude (optional) - specifies the system should only perform the action on non-matching paths (do not perform the action on matching paths). |
Available expression variables: User Context variables, Path Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions
Perform an action periodically at specified time and interval
|
Workflow Condition |
Parameters |
Description |
|---|---|---|
|
Perform an action periodically at specified time and interval |
{
|
This condition will be triggered when the current time on the FileCloud Server matches the supplied time. day_interval - number of days that passes after a THEN action before it is triggered again.
time_string - the time of day when you want the THEN action triggered
start-date - Date that FileCloud begins checking for the condition end-date - Last date that FileCloud checks for the condition. |
Available expression variables: None.
Perform an action on the specified date
|
Workflow Condition |
Parameters |
Description |
|---|---|---|
|
Perform an action on the specified date |
{
|
When the date matches the supplied date and time, the THEN action you configure will be run. date_string - date and time in a 24-hour format
|
Available expression variables: None.
Perform an action periodically
|
Workflow Condition |
Parameters |
Description |
|---|---|---|
|
Perform an action periodically |
None. The frequency depends on how you configure the cron or task scheduler frequency. |
This requires you to set up one of the following:
|
Available expression variables: None.
If share has not been accessed for specified days
|
Workflow Condition |
Parameters |
Description |
|
If a share has not been accessed for specified days |
{
|
This condition will be triggered when a shared file or folder has not been accessed for the specified number of days.
number_of_days - required to specify the number of days before the current date that a shared file was accessed.
|
Available expression variables: Share Context variables.
For instructions on including expressions, see Using Expressions in IF Conditions