# List of loggable service actions resource: automation:workflow service: workflow import: - github.com/cortezaproject/corteza/server/automation/types # Default sensitivity for actions defaultActionSeverity: notice # default severity for errors defaultErrorSeverity: error props: - name: workflow type: "*types.Workflow" fields: [ handle, ID ] - name: new type: "*types.Workflow" fields: [ handle, ID ] - name: update type: "*types.Workflow" fields: [ handle, ID ] - name: trigger type: "*types.Trigger" fields: [ eventType, resourceType, ID, stepID, ] - name: filter type: "*types.WorkflowFilter" actions: - action: search log: "searched for matching workflows" severity: info - action: lookup log: "looked-up for a {{workflow}}" severity: info - action: create log: "created {{workflow}}" - action: update log: "updated {{workflow}}" - action: delete log: "deleted {{workflow}}" - action: undelete log: "undeleted {{workflow}}" - action: execute # NOTE: only explicitly triggered workflow execution is logged log: "{{workflow}} executed" errors: - error: notFound message: "workflow not found" - error: invalidID message: "invalid ID" - error: disabled message: "disabled workflow or trigger" - error: invalidHandle message: "invalid handle" - error: missingName message: "missing name" - error: staleData message: "workflow was modified by someone else or by a workflow after you've opened it. Please refresh to see the latest updated version" severity: warning - error: notAllowedToRead message: "not allowed to read this workflow" log: "failed to read {{workflow.handle}}; insufficient permissions" - error: notAllowedToSearch message: "not allowed to search or list workflows" log: "failed to search or list workflow; insufficient permissions" - error: notAllowedToCreate message: "not allowed to create workflows" log: "failed to create workflow; insufficient permissions" - error: notAllowedToUpdate message: "not allowed to update this workflow" log: "failed to update {{workflow}}; insufficient permissions" - error: notAllowedToDelete message: "not allowed to delete this workflow" log: "failed to delete {{workflow}}; insufficient permissions" - error: notAllowedToUndelete message: "not allowed to undelete this workflow" log: "failed to undelete {{workflow}}; insufficient permissions" - error: notAllowedToExecute message: "not allowed to execute this workflow" log: "failed to execute {{workflow}}; insufficient permissions" - error: unknownWorkflowStep message: "unknown workflow step" log: "failed to execute {{workflow}}; unknown workflow step" - error: handleNotUnique message: "workflow handle not unique" log: "duplicate handle used for workflow ({{workflow}})" - error: notAllowedToExecuteCorredorStep message: "not allowed to run corredorExec function, corredor is disabled" log: "failed to execute {{workflow}} with corredorExec function step; corredor is disabled" - error: maximumCallStackSizeExceeded message: "maximum call stack size exceeded" log: "maximum call stack size exceeded"