ActionFlow
-
process-executor
-
file operation manager
-
controling action flow by conditions
Action flow project structure
Create action_flow project file and save it as .af file
project:
{
name:'template project',
desc:'project focuses on the correct using of commands ',
execution:
{
controlflow:
{
condition:'dialog',
dialogtext:'yer or no ?',
yes:
{
wait:'1000',
showdialog:'how are you doing ?'
execute:'||bin||/daily_remarks/daily_remarks.exe',
},
no:
{
execute:
{
filename:'||defaultbrowser||',
params:'www.aktuality.sk'
},
}
},
deletefile:'||mroot||/temp/tttt/gear_watch/connect.bat',
deletefiles:
{
source:'||mroot||/temp/tttt',
recursive:'false',
pattern:'^*(.bat)'
},
deletefiles:'||mroot||/temp/tttt',
zipfolder:
{
source:'||mroot||/test',
zipfile:'||mroot||/temp/ahoij.zip'
},
}
}
Example running actionflow file
set action_flow.exe as default app for .af files
or run
action_flow.exe testing_project_file.af
Available actions
wait
<action
type="wait"
name=""
desc="Slow down the process for millions of milliseconds"
duration_ms=""
/>
execute
<action
type="execute"
name=""
desc="Starting the process with the given parameters"
filename=""
params=""
/>
copyfolder
<action
type="copyfolder"
name=""
desc="recursively copying a directory with subdirectories and files that complete the copy pattern"
source=""
destination=""
copy_filepattern="(.)"
copy_dirpattern="(.)"
/>
copyfile
<action
type="copyfile"
name=""
desc="Copy the file"
source=""
destination=""
/>
deletefiles
<action
type="deletefiles"
name=""
desc="Deleting files from the specified directory that complete the delete pattern"
source=""
delete_filepattern=""
recursive="true"
/>
deletefolders
<action
type="deletefolders"
name=""
desc="Delete folders"
source=""
delete_folderpattern=""
/>
zipfolder
<action
type="zipfolder"
name=""
desc="Create a zip archive from the selected folder to the specified target file"
source=""
zipfile=""
/>
showdialog
<action
type="showdialog"
name=""
desc="Show dialog with message"
message=""
messagetype="info"
/>