Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »


doCronDailyeditor_Workflow_ActionsfinishOverduedTaskUserAssoc/Checks the deadine dates of a task assoc, if it is overdued, it'll be finished for all lectors, triggers normal workflow handlers if needed.
doCronPeriodicaleditor_Workflow_ActionsdeleteOldEndedTasks

Optional:

{"limit": 5, "workflowSteps": ["no workflow", "workflowEnded"]}

Delete all tasks where the task status is 'end', and the last modified date for this task is older than x days (where x is Zf_configuration property taskLifetimeDays)

Only X tasks are deleted at once. X defaults to 5 and can be set as parameter.

Additionally "workflowSteps" can be provided. In this case except from default end status of a task also tasks in one of workflow steps will be handled.  

doCronPeriodicaleditor_Workflow_ActionsdeleteOldEndedTasks

{

    "filesystem": "local",

    "targetPath": "/backup/task-{id}-{taskNr}-{taskName}.zip",

    "limit": 5 (optional),

    "workflowSteps": ["no workflow", "workflowEnded"] (optional)

}

Same as above deleteOldEndedTasks BUT makes an export (original format and XLF2 + task metadata as JSON file) to the location given in targetPath. Basically all values given in {curly braces} are replaced with the same named value from the task json, so the naming of the zip files can be controlled.

SFTP is implemented as target too, example:

{
    "filesystem": "sftp",
    "targetPath": "/backup/task-{id}-{taskNr}-{taskName}.zip",
    "host": "HOSTNAME_OR_IP",
    "port": 1234,
    "username": "USERNAME",
    "password": "PASSWORD"
}

Apart from the local filesystem and SFTP, WebDAV and several cloud services can be addressed. Get in contact with MittagQI to get more information here.

Port is optional, must be given as integer.

targetPath must contain the whole absolute path on the server. You get that after logging in with an ordinary sftp tool to your sftp server.

Only X tasks are deleted/backuped at once. X defaults to 5 and can be set as optional parameter limit in the config JSON.

  • No labels