Some checks failed
SonarQube / SonarQube (push) Failing after 5m28s
E2e test on main branch push / server and client test (map[name:admin port:8080]) (push) Failing after 3m33s
Server and lib tests / Library test (js) (push) Failing after 1m36s
Server and lib tests / Library test (vue) (push) Successful in 2m24s
Server and lib tests / Web client test (admin) (push) Successful in 2m52s
Server and lib tests / Web client test (compose) (push) Successful in 3m23s
Server and lib tests / Web client test (discovery) (push) Successful in 2m49s
Server and lib tests / Web client test (one) (push) Successful in 2m52s
Server and lib tests / Web client test (privacy) (push) Successful in 2m44s
Server and lib tests / Web client test (reporter) (push) Successful in 2m56s
Server and lib tests / Web client test (workflow) (push) Successful in 3m0s
Server and lib tests / Server tests (push) Failing after 4m55s
E2e test on main branch push / notify-failure (push) Failing after 9s
Server and lib tests / Send matrix testing notification (push) Successful in 2s
Mark stale issues and pull requests / stale (push) Successful in 40s
121 lines
3.2 KiB
YAML
121 lines
3.2 KiB
YAML
# 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"
|