Add governed reusable workflow definitions
This commit is contained in:
@@ -24,7 +24,7 @@ WORKFLOW_NODE_TYPES = (
|
||||
type="workflow.start.manual",
|
||||
category="trigger",
|
||||
label="Manual start",
|
||||
description="Start an instance through an explicit user or API action.",
|
||||
description="Start an instance through an explicit user action.",
|
||||
icon="circle-play",
|
||||
default_config={"input_schema_ref": ""},
|
||||
config_fields=(
|
||||
@@ -36,6 +36,68 @@ WORKFLOW_NODE_TYPES = (
|
||||
),
|
||||
),
|
||||
),
|
||||
DefinitionNodeType(
|
||||
type="workflow.start.api",
|
||||
category="trigger",
|
||||
label="API start",
|
||||
description=(
|
||||
"Start through an authenticated API request with an explicit "
|
||||
"input contract."
|
||||
),
|
||||
icon="braces",
|
||||
default_config={
|
||||
"input_schema_ref": "",
|
||||
"authorization_policy_ref": "",
|
||||
},
|
||||
config_fields=(
|
||||
DefinitionConfigField(
|
||||
id="input_schema_ref",
|
||||
label="Input schema",
|
||||
kind="text",
|
||||
required=True,
|
||||
),
|
||||
DefinitionConfigField(
|
||||
id="authorization_policy_ref",
|
||||
label="Authorization policy",
|
||||
kind="text",
|
||||
required=True,
|
||||
),
|
||||
),
|
||||
),
|
||||
DefinitionNodeType(
|
||||
type="workflow.start.workflow",
|
||||
category="trigger",
|
||||
label="Parent workflow",
|
||||
description=(
|
||||
"Start as a pinned child or dependency of another Workflow "
|
||||
"instance."
|
||||
),
|
||||
icon="git-branch",
|
||||
default_config={
|
||||
"parent_definition_ref": "",
|
||||
"parent_outcome": "completed",
|
||||
"input_mapping": {},
|
||||
},
|
||||
config_fields=(
|
||||
DefinitionConfigField(
|
||||
id="parent_definition_ref",
|
||||
label="Parent definition",
|
||||
kind="text",
|
||||
required=True,
|
||||
),
|
||||
DefinitionConfigField(
|
||||
id="parent_outcome",
|
||||
label="Parent outcome",
|
||||
kind="text",
|
||||
required=True,
|
||||
),
|
||||
DefinitionConfigField(
|
||||
id="input_mapping",
|
||||
label="Input mapping",
|
||||
kind="mapping",
|
||||
),
|
||||
),
|
||||
),
|
||||
DefinitionNodeType(
|
||||
type="workflow.start.event",
|
||||
category="trigger",
|
||||
|
||||
Reference in New Issue
Block a user